-->
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: How to implement this scenario using Hibernate annotations
PostPosted: Thu Aug 25, 2011 5:14 am 
Newbie

Joined: Thu Aug 25, 2011 4:47 am
Posts: 1
Schema Diagram is as follows:

http://postimage.org/image/2d7q2pmo4/


As shown in the schema, the sample_product and sample_item table are referenced using sample_product_item table i.e. item_id and product_id together form a composite key.

Now there is a sample_product_item_pricelist table that has one to many relation with sample_product_item table
For e.g.
A product A belonging to an item A might have multiple prices.

Having specified the above information, I would like to know the way to implement the one to many relation using hibernate annotations.


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.