-->
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.  [ 1 post ] 
Author Message
 Post subject: Hibernate inheritance mapping
PostPosted: Thu Mar 18, 2010 5:01 pm 
Newbie

Joined: Wed Jan 20, 2010 3:43 pm
Posts: 3
I have a class mapping with composite id mapping of 2 properties. I extended it into another class which has one additional (primary-key) which makes it to have composite id of 3 properties. I need to do this coz subclass shares rest of the properties from super class but values coming from a different table.

Both super and sub class are based off of different tables altogether and there is no relationship between them. just that they share the same field names.

Its a perfect case of java inheritance, but how do I achieve it in Hibernate.


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

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.