-->
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: Lazy one-to-one relationships with two objects
PostPosted: Thu Apr 27, 2006 6:19 am 
Regular
Regular

Joined: Fri Feb 18, 2005 3:34 am
Posts: 88
Location: Poland/Wrocław
Hello,

I have a data model as specified in the following diagram:

http://rolandz.fm.interia.pl/model.emf

What would be best mapping of classes. I have some doubts about one-to-one relationships, since usualy I put sequence id in the class that needed to be lodaed lazily.

But until now I always have had only one such property and now I need two: Miniature and Large - each of type PictureData. But where do I put a sequence id and where foreign-key?

My preferred place for sequence id is Picture class not PictureItem as I used to do before due to simplicity...

Please help me :) TIA

_________________
Please rate this post if you've found it helpfull
Roland


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.