-->
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: Disable Two Phase load
PostPosted: Thu Oct 25, 2012 3:34 am 
Newbie

Joined: Thu Oct 25, 2012 3:31 am
Posts: 3
Hi All,


I have a class/entity 'Department'.

It don't have any references to any other class or entities.

When I fetch it using hibernate like below

Code: [Select all] [Show/ hide]
Query query = session.createQuery( "from Department" );
List<EObject> listObj= query.list();


It's taking time in resolving associations as I am seeing below in log

Code: [Select all] [Show/ hide]
DEBUG org.hibernate.engine.TwoPhaseLoad - resolving associations for [Department#Dept-1]


Why is this happening even though I don't have associations.

Is there anyway I can tell hibernate to avoid this so that I get quicker turnaround time.


Thanks,
Appasamy


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.