-->
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(table per subclass) with different types of PK
PostPosted: Mon Sep 12, 2005 5:35 am 
Newbie

Joined: Thu Apr 28, 2005 3:12 pm
Posts: 7
I want to make an inheritnace(table per subclass) like on the picutere.

Image

The problem is, that School and City have different types of primary keys. How to solve this problem?


Top
 Profile  
 
 Post subject:
PostPosted: Mon Sep 12, 2005 10:27 am 
Beginner
Beginner

Joined: Mon Mar 28, 2005 12:58 pm
Posts: 27
I think you should use InheritanceType.JOINED instead of TABLE_PER_CLASS so that you can use separate primary keys.


Top
 Profile  
 
 Post subject:
PostPosted: Tue Sep 13, 2005 3:45 am 
Newbie

Joined: Thu Apr 28, 2005 3:12 pm
Posts: 7
wich way is it in the manual http://www.hibernate.org/hib_docs/v3/reference/en/html/inheritance.html ?


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.