How many .hbm files are needed for a Hibernate Inheritance view?

To represent inheritance, how many hbm files are needed?

How can I represent the relationship between base and subclasses in the subclass hbm file?

I want hbm class and pojo super and subclass.

0


source to share


1 answer


http://docs.jboss.org/hibernate/core/3.6/reference/en-US/html/mapping.html#mapping-declaration-subclass



Use the "extends" attribute for subclass, join-subclass, or union-subclass members. You can put all the classes in the same .hbm file, or split them into separate files if you like.

+2


source







All Articles