-->
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: Lazy loading = true does not work as I hope
PostPosted: Fri Jul 11, 2008 4:55 am 
Newbie

Joined: Fri Jul 11, 2008 4:31 am
Posts: 1
Advance thanks and forgiveness for my sad English

selects secondary are executed for entity associate. in this case Org

The query that is executed is as follows :



List usuarios = getHibernateTemplate().findByNamedParam("from User u where upper(u.name)=:name", new String[]{"name"}, new String[]{name.toUpperCase()});


the mapping for this entity is as follows :


<hibernate-mapping>
<class name="User" table="USER">
<comment></comment>
<id name="mat" type="string">
<column name="MAT" length="10" />
</id>

<property name="PUT" type="string">
<column name="PUT" length="50" />
</property>


<many-to-one name="orgi" column="NODO" update="false" insert="false" not-null="true" property-ref="nodo" class="pyuge.model.estructura.Orgi"/>




</class>
</hibernate-mapping>




The result is the following :


two Selects are executed. One for user and one for orgi



it is possible that the entity orgy behave like lazy = true


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.