-->
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: list and joined-class
PostPosted: Wed Dec 03, 2003 11:57 pm 
Newbie

Joined: Wed Dec 03, 2003 11:42 pm
Posts: 7
Location: Singapore
Hi, All

I have a parent-children relationship. I am going to use list rather than set or other types of collection for the mapping.

It seems that child class does not need a surrogate key as Hibernate will use parent id and index as composite primary key to identidy a child.

My child is a super class for a group of sub classes. I am going to use table-per-subclass mapping strategy rather than the table-per-class-hierachy strategy, as I don't want to change table schema when new sub classes being added.

A joined-subclass needs a key to link to its super class data row. As the super class has a composite primary key, I don't know how to specify the key in the joined-subclass.

I am learning Hibernate at this moment. Your answer will be much appreciated.


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.