-->
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: many-to-one on only a single column in join table
PostPosted: Tue Jun 03, 2008 10:06 am 
Regular
Regular

Joined: Tue Apr 01, 2008 5:39 pm
Posts: 61
Need help with Hibernate? Read this first:
http://www.hibernate.org/ForumMailingli ... AskForHelp

Hibernate version:
3.2.5. GA

Hi I am stuck here.

Right now I have a parent class call CategoryItem and CategoryOrder (following the composite design from java persistance with hibernate book) join table with additional column section.

Now i have a class cal CategoryMarketing

and it has item_id referencing CategoryItem
and order_id referencing CategoryOrder
and it has category_id reference Category.

How would you map this?
Whats the best solution (table redesign?)


Thanks a lot


Top
 Profile  
 
 Post subject:
PostPosted: Wed Jun 04, 2008 10:08 am 
Regular
Regular

Joined: Tue Apr 01, 2008 5:39 pm
Posts: 61
bump for some help.


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.