About entity

81-90 of 200Refresh
Forum
18

can removing an entity throw an exception if the entity is in use?

Suppose you have an entity @Entity class A { ... } and other entities with references to A.   e.g. @Entity class B { A a; // explicit reference to A List list; // list of A's Set ... (@Entity and/or @Embedded) that include any reference to a specific Entity? You can try
Forum
18

The exception "Attempt to remove a detached entity object" have no information about the entity

Hello, the exception "Attempt to remove a detached entity object" have no information about the detached entity. It is very hard, especially if the involved entities uses cascading, to find the removed call for the detached entity.   It would be very helpful if you can add a few information
Forum
18

List managed entities for a given entity manager

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
Forum
18

An ArrayIndexOutOfBoundsException with nested entities and enhanced entities

.8_06 All our entities are enhanced. There are nested entities in following hierarchy: @Entity ... with the previous exception? No, there are only entities involved. Have you an idea why this issue
Forum
18

find out if an entity is refered by other entities

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 You can only find it (using a query) for a specific relationship
Manual
16

Paths and Types in JPQL and Criteria API

Instances of user defined persistable classes (entity classes, mapped super classes and embeddable ... . For example - c.capital, where c represents a Country entity object uses the capital persistent field in the Country class to navigate to the associated Capital entity object. Path expression whose type
Manual
16

Locking in 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
Manual
16

Database Schema Evolution

Modifications to entity classes that do not change their persistent field definitions (their schema ... of an entity class are detected by ObjectDB. New entity objects have to be stored in the new class schema, and old entity objects, which were stored previously in the old class schema
Forum
15

Entity is not related to ObjectDB, but i get exception from ObjectDB

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
Result
15

Apache License, Version 2.0, January 2004

of this document. "Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License. "Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity