openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Georgi Naplatanov <go...@oles.biz>
Subject Re: How to detect whether there are any dirty objects?
Date Fri, 11 Apr 2008 21:38:44 GMT
Hello, David.

In your case EntityTransaction.isActive() should do the job.

Best regards
Georgi

David Goodenough wrote:
> Is there a way to detect whether there are any modified/dirty objects
> that need to be written to the datastore?  I do not need to know which 
> objects are dirty, just whether there are any.
> 
> I am trying to add the kind of functionality that puts up a question
> when someone tries to terminate the program without saving to 
> point out that they need to save.
> 
> Thanks,
> 
> David


Mime
View raw message