-->
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: Child table linked to a parent table column which is not PK
PostPosted: Tue Oct 19, 2010 11:42 am 
Newbie

Joined: Tue Oct 19, 2010 11:24 am
Posts: 1
Hello,

I'm quite sure the solution to that is really simple but i can't find which one to use in the documentation.
I'm using JPA annotations and hibernate 3.5

Here is the situation:
2 tables: product_version and product_issue, both tables have a "version" column (which is a String/VARCHAR).

in table product_version, multiple records can exist with the same version but in table product_issue only one combination can exist. I need to link children table to a parent table column which is not a PK and not unique, i also need to be able to retrieve children from the parent using the version.

Any ideas?
thanks


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.