-->
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: only one object but two selects
PostPosted: Thu Dec 11, 2003 5:57 pm 
Newbie

Joined: Sat Oct 11, 2003 6:34 am
Posts: 9
Hello,

i have 3 classes

1. Baseobject
2. User
3. Room

User and Room extends Baseobject
In Baseobject is the native id of the objects, that runs fine.
There are 3 tables for the 3 classes.

Now i have a one to many between room and user with lazy = true but when i select a user, after that hibernate selects the room of the user to.
But i do not need any of the room parameter.

Why is hibernate doing two selects when getting only the user?
How can i stop this?

Thanks Jaraz


Top
 Profile  
 
 Post subject:
PostPosted: Thu Dec 11, 2003 7:09 pm 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 12:50 pm
Posts: 5130
Location: Melbourne, Australia
Please read the Hibernate documentation (all of it) before posting in the user forum. TIA.


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.