-->
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: how to add diffent products to one order?
PostPosted: Thu Sep 11, 2003 4:13 am 
Newbie

Joined: Wed Sep 10, 2003 11:41 pm
Posts: 7
I have some different products in several seperate tables:
book:
--- book_pk
--- title
--- price
--- author
....

CD:
--- cd_pk
--- subject
--- price
--- numOfSongs
...

etc..

And I use one order table to store all kinds of order:
order
--- order_id (pk)
--- product_type
--- product_id (refers book_pk and cd_pk)
--- order_time
....

Does hibernate support this? How to write the mapping file?
Many thks


Top
 Profile  
 
 Post subject:
PostPosted: Thu Sep 11, 2003 7:00 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Use an <any> mapping


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.