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: Composite key and lazy loading
PostPosted: Wed Apr 09, 2008 4:43 pm 
Newbie

Joined: Sat Jul 01, 2006 3:37 pm
Posts: 7
Hi everyone,

I'm working on something that looks like this :

Code:
Object 1
===========
int ID (PK)
String Name


Object 2
===========
String Name (composite PK) (FK of Object 1)
String Name2 (composite PK)



Object2.Name is based on Object1.Name.

My question is what configuration should I need in order to be able to:

1- Load Object2 using "Session.Get<Object2>("Name", "ABC");
2- Be able to lazy load Object1 using "Object2.Object1.ID";

Thanks


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.