-->
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: Entity with multiple list and Hibernate Mapping
PostPosted: Thu Mar 15, 2007 9:03 am 
Newbie

Joined: Wed Dec 20, 2006 6:19 am
Posts: 3
Hi i have a some doubt defining my relations into mapping files. My relations are:

Article (id,name)
|__ ArticleStock (inherit from Article, id_stock, series (List), stocks (List), lotes (List), ubications (List))

In some situations my app need only Article data, in other ArticleStock withs only STOCKS collection, and in others ArticleStock with SERIES collection.

How can i express this into HIbernate Mappings ?.

Thanks
Danny


Top
 Profile  
 
 Post subject:
PostPosted: Thu Mar 15, 2007 10:36 am 
Expert
Expert

Joined: Thu Sep 04, 2003 8:23 am
Posts: 368
Hibernate does not lead you to a special modelization. Just do as you would do without hibernate and map your classes after that.
If you just care about performances, hibernate lazy loading will help you just loading the objects you want.

_________________
Seb
(Please don't forget to give credits if you found this answer useful :)


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.