This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes Object Relational Mapping and the fly likes Hibernate Dirty checking not performing as expected Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "Hibernate Dirty checking not performing as expected" Watch "Hibernate Dirty checking not performing as expected" New topic
Author

Hibernate Dirty checking not performing as expected

Nickolas Case
Ranch Hand

Joined: Apr 26, 2008
Posts: 98
Hello all,

I have a threaded application that can make multiple changes to single rows/fields and the final change is not being persisted through dirty checking.


Examples:
Row 1 has change A made to it. Change A is not persisted
Row 2 has change A made to it, then change B. Only change A is persisted

This is a very heavy application, with changes numbering in the thousands per run. Could this be the culprit?


Unit tests pass which leads me to believe it is a concurrency issue, has anyone ran into this issue before?

some code:





All threads process similarly...


 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Hibernate Dirty checking not performing as expected
 
Similar Threads
Beginner needs help with Spring + JPA + Transactions
CopyOnWriteArrayList
Mockit problem for JPA
Struts 2 and JSF integration problem
How to Configure SSL over Database in Spring?