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 OCM Java EE 6 Enterprise Architect Exam Guide this week in the OCMJEA 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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to get latest object from database instead of changed object.