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: InstrumentTask - Property Lazy Loading
PostPosted: Mon Oct 23, 2006 2:07 pm 
Newbie

Joined: Tue Aug 02, 2005 1:24 pm
Posts: 5
[b]Hibernate version:[/b] 3.1.x

Hi.
Sorry for my broken english and my silly question, but I have a problem I can't solve by myself.

I have Java Bean having tow properties referencing other two beans, in a many-to-one association.
Since I would like to lazy load them configuring the lazy style equals to "no-proxy" I have used the <b>InstrumentTask</b> to enhance that.
I also have set fetch="select" for both associations.

What I see is as follows:
<b>Hibernate 3.1.2</b>: Even I don't call explicitly the property getter I see the property is fetched by the DB (got the SQL Query from the log), exactly as the lazy was set to "false", so the instrumentation seems to be ignored.
<b>Hibernate 3.1.3</b>: If I don't call the property getter everything is fine, no query is issued to the DB but, if I call one of the two getter methods, the result is an SQL Error:
17002 - Socket Reset.

I'm using Oracle 10.1.0.4 but i don't think it matters at all.

Could someone help me?

Thank you in advance.

_________________
Riccardo Palombella
Accenture S.p.a.
Milan
Italy


Top
 Profile  
 
 Post subject:
PostPosted: Tue Oct 24, 2006 5:38 am 
Hibernate Team
Hibernate Team

Joined: Tue Aug 26, 2003 6:10 am
Posts: 8615
Location: Neuchatel, Switzerland (Danish)
this is more a hibernate usage question, not a tool question.

_________________
Max
Don't forget to rate


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:
cron
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.