Do you have a common base class for Hibernate entities?

后端 未结 5 501
面向向阳花
面向向阳花 2021-02-01 05:51

Do you have a common base class for Hibernate entities, i.e. a MappedSuperclass with id, version and other common properties? Are there any drawbacks?

Example:



        
5条回答
  •  心在旅途
    2021-02-01 06:26

    You can find some samples here

    http://blogsprajeesh.blogspot.com/2010/01/nhibernate-defining-mappings-part-4.html

提交回复
热议问题