Hello!
Im using OpenJPA with Spring transactional management and EntityManager
injection to DAO under Postgresql 8.2.1
Seems when new EntityManager is created those queries are executing to
database
SELECT t.typlen FROM pg_catalog.pg_type t, pg_catalog.pg_namespace n WHERE
20.09.07 в 12:02 Patrick Linskey в своём письме писал(а):
Hi,
Can you post your current persistence.xml file?
?xml version=1.0 encoding=UTF-8?
persistence xmlns=http://java.sun.com/xml/ns/persistence; version=1.0
persistence-unit name=pu1 transaction-type=RESOURCE_LOCAL
Hello !
Is there any way to disable SELECT query to database when merging detached
entity into EntityManager ?
Im doing smth like
... getting user entity and closing EntityManager
user.setFirstName(222);
em = emf.createEntityManager();
em.getTransaction().begin();
user =
The idea is that Toplink JPA supports that feature. OpenJPA - no.
Maybe this can be done as some configurable behaviour ?
They do, but really, all that they are doing is hiding the open EM. In
other words, the objects are not actually really detached yet.
What type of application are you