-->
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: mapping advice
PostPosted: Sun Jun 01, 2008 1:31 pm 
Beginner
Beginner

Joined: Mon Apr 07, 2008 12:49 pm
Posts: 33
Hey,

This is the current mapping i have:

Code:
class Supplier
List<Category> homeCategory;
List<Category> toysCategory;
List<Category> thirdCategory;
List<Category> fourthCategory;


I think for performance its better to have only one collection (in order to have 1 FK and one join), but from the OO (object oriented) point of view is better to have different category list for each category type.


What do you think?


Top
 Profile  
 
 Post subject: Does formula can be a solution?
PostPosted: Mon Jun 02, 2008 3:55 pm 
Beginner
Beginner

Joined: Mon Apr 07, 2008 12:49 pm
Posts: 33
I dont want to have 4 FK from the same table to same table


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.