openjpa-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Boblitz John <John.Bobl...@BERTSCHI.com>
Subject AW: entity is not available in memory-repost
Date Fri, 18 May 2012 06:27:03 GMT
 

> -----Urspr√ľngliche Nachricht-----
> Von: pbt123 [mailto:prabhash@in.ibm.com] 
> Gesendet: Mittwoch, 16. Mai 2012 23:56
> An: users@openjpa.apache.org
> Betreff: Re: entity is not available in memory-repost
> 
> Thanks for reply
> 
> First, the 5 records were not committed into database yet, 
> these are still in memory as the transaction has not 
> completed and I need to get the same 5 record for some 
> business validation purpose.
> 
> I am using application-managed persistence. My EMF starts as 
> soon as someone login to the GUI and EM will create whenever 
> we start a new transaction and close after committing the transaction.
> 
> I think, I am missing some basic property which hands this 
> condition. Could you please point me to the properties?
> 
> Thanks
> 
> 
> --
> View this message in context: 
> http://openjpa.208410.n2.nabble.com/entity-is-not-available-in
> -memory-repost-tp7562678p7562793.html
> Sent from the OpenJPA Users mailing list archive at Nabble.com.
> 

That is your problem  -  you can not retrieve something from the Database that is not
In the Database yet!

However, inside your transaction, you should still have the references to the previously
created "C" Objects and you can still use them / change them ...


John
Mime
View raw message