-->
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: 1-0..1 mapping
PostPosted: Thu Nov 06, 2003 6:52 am 
Newbie

Joined: Wed Oct 22, 2003 12:01 pm
Posts: 6
What is the best way to create a 1-0..1 mapping?
I have an object of type servicecategory, which contains a collection (1-m) of servicetypes, which have a 1-1 with a service, which can be of any derived service type, one of which has a 1-0..1 relationship to a path. (Don't ask, no way to make it any simpler).

I have currently mapped this last relationship as a 1-1, but the session.find("ServiceCategory sc where serviceCat.code=?") falls over if there was no path. It works fine if there is a path.


Top
 Profile  
 
 Post subject:
PostPosted: Thu Nov 06, 2003 7:16 am 
Newbie

Joined: Wed Oct 22, 2003 12:01 pm
Posts: 6
I actually call the session.find on the services separately, but story with the 1-0..1 is the same


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.