wood burning stoves 2.0*
The moose likes Object Relational Mapping and the fly likes how to get latest object from database instead of changed object. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Databases » Object Relational Mapping
Bookmark "how to get latest object from database instead of changed object." Watch "how to get latest object from database instead of changed object." New topic
Author

how to get latest object from database instead of changed object.

ambar patil
Ranch Hand

Joined: Nov 29, 2005
Posts: 226
If I retrive object say O1.
then do some modification on O1.
then retrive again through DAO O2 then it will return me the O1 not the one stored in DB.
How can I get one from DataBase?
Paul Sturrock
Bartender

Joined: Apr 14, 2004
Posts: 10336

Load it in a different session.


JavaRanch FAQ HowToAskQuestionsOnJavaRanch
 
 
subject: how to get latest object from database instead of changed object.
 
Similar Threads
CLOB field....
Difference between class level lock and object lock
How to display questions in several pages?
storing and retriveing image through Ms-sql
How to retrive data from database using Ajax without submit