About entities

91-100 of 200Refresh
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
12

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
12

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
12

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
Manual
11

FROM clause (JPQL / Criteria API)

identification variables that iterate over all the database objects of a specific entity class hierarchy (i.e. an entity class and all its descendant entity classes). Identification variables ... of an entity class in a JPQL query is the unqualified name of the class (e.g. just Country with no package
Forum
11

Remove an entity which attributes were changed - OptimisticLockException

We use an OSGi environment and we have three OSGi plugins.   In plugin A an entity is loaded and the entity is passed to plugin B. Plugin B changes an attribute on the entity. Plugin C removes the entity from the database. After commit the transaction an exception is caused with optimistic lock
Forum
10

Persist error @ManyToMany how to define correct entities relationships

I have Product entities containing a list of Category enties. Each product can have multiple Category but they are all refering to same limited set of Category entities (via ID). There is not changes ... too). @Entity public class Product implements Serializable { @Id @GeneratedValue
Forum
10

Object DB vs EclipseLink/TopLink: Unloaded relationships in detached entities

ObjectDB support, while the entities in a result set list from a JPQ query are initially managed ... to use the entity in a transaction it will have to be properly merged. From chris_delahunt at http ... as the Entity is not serialized, and the connections are still available, you should still be able