About entities

81-90 of 200Refresh
Forum
14

Update Entity references if we change the type of an entity

Hello, we must change (extend) our entity model and therefor we convert the type of some entities ... . But now we introduced as example a new Entity NewKindOfEntityB. And we have a defined logic how we detect the existing EntityB instances they must be converted to the new Entity. With the same ID
Manual
14

JPA Metamodel API

to retrieve sets of types: // Get all the managed classes: // (entity classes, embeddable classes ... (); // Get all the entity classes: Set allEntityTypes = metamodel.getEntities ... instance: // Get a managed type (entity, embeddable or mapped super classes): ManagedType
Issue
14

ODB-FileWriter holds unecessary entity reference after transaction and entity manager are closed

a transaction (including the entity manager) the ODB file writer still holds a reference to entities. Performing similar calls repeatedly hence increases the number of references to entities not longer needed in ... are enhanced. The screenshot indicates using some entity objects (MappingImpl?) in reflection mode. Reflection
Forum
13

Type ... is not defined as an entity (@Entity is missing) (error 302)

.epimss.lab.data.bacti.CultureRqst is not defined as an entity (@Entity is missing) (error 302) at com ... . The class definition looks fine (@PersistenceCapable and @Entity are equivalent - but you may try adding also @Entity). This might be a class loading issue - i.e. PersistenceCapable is available in
Forum
13

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
13

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
13

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
13

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
13

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

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