openjpa-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ognjen Blagojevic <ogn...@etf.bg.ac.yu>
Subject Re: Inconsistent getReference + setSomeText depending on -javaagent
Date Thu, 27 Sep 2007 10:35:16 GMT
Should I open JIRA issue on this one?

Regards,
Ognjen


Ognjen Blagojevic wrote:
> Hi all,
> 
> I think I found an inconsistent behavior in OpenJPA 1.0.0 when using it 
> in JavaSE:
>     1. with javaagent option
>     2. without javaagent option
> 
> The following code:
> 
>     em = emf.createEntityManager();
>     em.getTransaction().begin();
>     MyEntity e = em.getReference(MyEntity.class, 3);
>     x.setSomeText("Something");
>     em.getTransaction().commit();
>     em.close();
>     System.out.println(x.getSomeText());
> 
> prints "Something" in case 1, and old value of field SomeText in case 2.
> 
> Regards,
> Ognjen
> 


Mime
View raw message