[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
|