Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.
Internal Website Search71-80 of 200 resultsRefresh
Hi, Is there a way to find the number of managed entities given an entity manager? My application has some memory leaks - I am doing clear() on the entity manager(s) but may be I forgot some - so if there is a way to know how many entities are managed by each my entity mgr - it would be helpful
Hello, it is possible to find out if a child entity is just referenced by other parent entity types. But the types of the parent entities are unknown. Is there a possibility to find out if an entity is referenced? best regards btc_es BTC EmbeddedSystems You can only find it (using a query
.8_06 All our entities are enhanced. There are nested entities in following hierarchy: @Entity ... here too? Could you please provide a test case as with the previous exception? support Support No, there are only entities
Here is the description of the problem we are facing: We have an entity DialogActionNew ... Hibernate When getting this entity from PostgreSQL with the key EntityManager.find(id), we receive another entity - DialogNew, which has an exception: ERROR [org.jboss.ejb3.invocation] (pool-18-thread-1
it to store, retrieve, update and delete database objects. Storing New Entity Objects The following ... a managed entity) by the persist method. The new Point objects are physically stored in the database only when the transaction is committed. The Storing Entities section in chapter 3 discusses
of entity instances in which for any persistent entity identity there is a unique entity instance. Within the persistence context, the entity instances and their lifecycle are managed. The EntityManager API is used to create and remove persistent entity instances, to find entities by their primary
Explains how to handle JPA/JDO database schema evolution in ObjectDB.
Explains how to store, retrieve, update and delete entity objects using JPA.
, are detected earlier. Optimistic Locking ObjectDB maintains a version number for every entity object. The initial version of a new entity object (when it is stored in the database for the first time) is 1. In every transaction in which an entity object is modified its version number
the persistence context, causing all managed entities to become detached. Clear the persistence context, causing all managed entities to become detached. Changes made to entities that have not been flushed to the database will not be persisted. Since: JPA 1.0 boolean contains(Object entity) Check