aspose file tools*
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 Java 8 in Action this week in the Java 8 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.
 
Similar Threads
How to retrive data from database using Ajax without submit
storing and retriveing image through Ms-sql
How to display questions in several pages?
CLOB field....
Difference between class level lock and object lock