I'm using openjpa, with a jta-data-source.
public String createNewUser(){
Utilisateur uti = new Utilisateur();
uti.setUtiIdentifiant(UUID.randomUUID().toString());
uti.setUtiMotDePasse("xxxx");
em.persist(uti);
}
after a call to this method, the entity is not persisted in the database.
public String createNewUser(){
Utilisateur uti = new Utilisateur();
uti.setUtiIdentifiant(UUID.randomUUID().toString());
uti.setUtiMotDePasse("xxxx");
em.persist(uti);
* em.flush() ---> really persist*
}
Why the entity manager does'nt flush automatically at end of java
transaction ?
(there is no property to flush at commit in openjpa).
Has someone this problem with JTA - OPENJPA ?
--
View this message in context:
http://karaf.922171.n3.nabble.com/JPA-JTA-tp4034133.html
Sent from the Karaf - User mailing list archive at Nabble.com.