Hello, everybody.

Is the update on unchanged entities within transaction the right behavior ?

It's very important for my applications.

I wrote the following example and all selected entities were updated :

factory = Persistence.createEntityManagerFactory("....",System.getProperties()) ;
em = factory.createEntityManager() ;
em.getTransaction().begin() ;
Query q = em.createQuery("SELECT ......... ");
List l = q.getResultList() ;
System.out.println(l.size()) ;
em.getTransaction().commit() ;
em.close() ;
factory.close() ;

My environment is :
OpenJPA 1.0.2
PostgreSQL 8.3.0

Best regards
Georgi

Reply via email to