-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 
Author Message
 Post subject: Inheritance mapping
PostPosted: Thu Apr 06, 2006 12:30 pm 
Beginner
Beginner

Joined: Mon Feb 13, 2006 8:34 pm
Posts: 27
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version: 3.0

Hi,
I have a question about mapping inheritance. I want to map my inheritance hierarchy using mapping all inheritance hierarchy to the single table (in fact it doesn't matter what strategy in this case). I always use XDoclet to create *.hbm.xml files, so I put hibernate tags in my doman classes definitions. And I really don't know how (and what tags exacly) needs to be use in my classes to map inheritance. I don't want to write it manually in hbm.xml files. Can anybody show me some example of inheritance mapping tags that I'm supposed to use in my domain classes. I hope it is clear enough what I'm looking for:-)
thx...


Top
 Profile  
 
 Post subject: Discriminator
PostPosted: Thu Apr 06, 2006 1:34 pm 
Beginner
Beginner

Joined: Mon Feb 13, 2006 8:34 pm
Posts: 27
I have this in my class definition
Code:
/**
    * @hibernate.discriminator column="DISC" type="string"
*/

but when I use XDoclet this tag is no resolved, I don't have discrimanator tag in appropriate hbm.xml file:(


Top
 Profile  
 
 Post subject:
PostPosted: Sun Apr 16, 2006 12:00 pm 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Wrong forum, this is about EJB3 here

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 3 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.