subclass « HBM « JPA Q&A





1. Splitting Hibernate configuration files (hbm.xml files) when using subclasses    stackoverflow.com

we have a hibernate mapping file (hbm.xml file) that maps a part of our domain to the database. This part contains a inheritance hierarchy. I.e. we have a parent class 'Parent' ...

4. How to map subclasses in hbm.xml?    forum.hibernate.org

Hi everyone, I have to map a subclass in my hbm.xml file. There is a father called Person and a child, called User: public class Person{ } public class User extends Person{ } How to map User in Person.hbml.xml? Should I use tag? Can anybody ...

5. hbm2ddl creating incorrect column in joined-subclass    forum.hibernate.org

Newbie Joined: Fri Mar 17, 2006 12:54 pm Posts: 10 I am trying to create a generic Audit class and a generic RecordAudit subclass so that I can keep track of how my objects are manipulated. When I declare RecordAudit as a joined-subclass, the column record_id is incorrectly put on the superclass Audit table when using hbm2ddl. I have verified this ...

6. Using subclass and join in hbm files.    forum.hibernate.org

In the hibernate Mapping documents I want to create a join with a subclass and want to have some set or list under it as per the requirement. i.e I have a tag hierarchy like this and under here I want a or attribute. Can someone tell me the feasibility of this.Any other alternative to ...