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

Reply via email to