-->
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.  [ 2 posts ] 
Author Message
 Post subject: One-to-many relationship question
PostPosted: Tue Jul 10, 2007 6:31 pm 
Newbie

Joined: Mon Jul 02, 2007 6:25 pm
Posts: 3
Hibernate version: 3.2
Spring 2.0
Database: Sybase 12.5


We have to tables, exactly the same as Parent and Child, one-to-many relationship. My problem is, the Child table has no primary key, only foreign key (which of course can be duplicated). How will I write my hibernate XML mapping for these tables?

Many thanks


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jul 11, 2007 3:31 pm 
Newbie

Joined: Fri Mar 30, 2007 5:23 pm
Posts: 16
Location: New York, NY
Does your child have any combination of columns which is:
a) unique
b) not null

?


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 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.