Same error with this code:
emf =
Persistence.createEntityManagerFactory("person",System.getProperties());
EntityManager em = emf.createEntityManager();
em.getTransaction().begin();
Person p1 = new Person();
p1.setIdPerson(1);
p1.setMail("mail1");
p1.setName("p1");
em.persist(p1);
em.getTransaction().commit();
Person fx = em.find(Person.class, 1);
em.getTransaction().begin();
if (fx!=null){
fx.setMail("ea");
em.merge(p1);
}
em.getTransaction().commit();
em.close();
--
View this message in context:
http://openjpa.208410.n2.nabble.com/tomcat6-openjpa-jsf-tp5120836p5122147.html
Sent from the OpenJPA Users mailing list archive at Nabble.com.