Thanks guys, all working now. Build time enhancement resolves the
entity dirty problems.
The message:-
12263 [main] INFO openjpa.Runtime - The Entity
uk.me.baylishome.homeaccounts.jpa.Account was enhanced at level 2,
but the current level of enhancement is 1,055,128.
was caused by
Hi Folks,
I am experiencing an oddity that I can't google my way out of.
I am running OpenJPA 2.1.1 under Tomcat 7.0.23 by using my own
EntityManager object that I create when the application starts.
What I am noticing is when I update a field in an entity and then commit
the
Michael -
How are you enhancing your Entities?
I have performed further testing by amending a query to be surrounded by
a begin() and commit() and the commit causes the db records to be updated
even though I know that no updates have taken place.
What fields are being updated? All of them? Are
Rick,
As I am developing I am relying on runtime enhancement, however
I have to have
property name=openjpa.RuntimeUnenhancedClasses value=supported/
set.
Cheers,
Michael
On 01/17/2012 03:20 PM, Rick Curtis wrote:
Michael -
How are you enhancing your Entities?
I have performed
Michael -
I'm nearly certain that is your problem. I'd recommend getting build time
enhancement[1] working.
[1] http://openjpa.apache.org/entity-enhancement.html
Thanks,
Rick
On Tue, Jan 17, 2012 at 9:22 AM, Michael Baylis
maill...@baylishome.me.ukwrote:
Rick,
As I am developing I am
Ok, switched to buildtime enhancement and getting different problems
now!! Switched to working with a basic java project to resolve all the
problems.
When attempting to use :-
Account account = em.find(Account.class, JL);
I get:-
Exception in thread main openjpa-2.1.1-r422266:1148538
shows that Account.class had been enhanced before (possibly with a different
version of openjpa library).
Simply delete the Account.class file, recompile Account.java and run
org.apache.openjpa.enhance.PCEnhancer on it.
-
Pinaki Poddar
Chair, Apache OpenJPA Project
--
View this message in