-->
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: Why does the Hibernate update a not changed collection?
PostPosted: Tue Apr 22, 2008 11:39 pm 
Newbie

Joined: Tue Apr 22, 2008 11:14 pm
Posts: 3
I have a list of employees (1560 to be exact).

I iterate through the list of Employees in my web-application and then in the log fiel I see that Hibernate issues UPDATE statements to database on Employees! But the epmloyees did not change - I was just reading the collection and outputing the values to a web-page

Do I understand smth wrong?


Top
 Profile  
 
 Post subject:
PostPosted: Wed Apr 23, 2008 12:24 am 
Beginner
Beginner

Joined: Wed Mar 05, 2008 4:57 am
Posts: 22
Location: Bangalore,India
You retrieved the list of employees through a query or it was behaving as a collection for some other object that you retrieved.

Can you provide the code which retrieves the employees?

_________________
Naresh Waswani
+91-9986461501


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.