About entity

111-120 of 200Refresh
Forum
10

Problem with entities detection

, one with PostgreSQL, and another with ObjectDB. My problem is with some entities ... is that ObjectDB seems to be ignoring the class fields on the persistence.xml file. Entities need to be in the same package when I called my DAO to be stored successfuly. If the entity is in another package
Issue
10

Schema-Update: Deactivation of automatic entity class removing and introduction of a new class remove in the schema config

works correctly we add ALL entity classes to this product. Because we will prevent a data loss ... and to provide for the ProfileMigration application also a plugin which contains the entity classes ... an exception in a use case in which we removed an entity. Exception in thread "main" java.lang
Forum
10

Extra uninitialised entities spawned on merge()

In the following, Element is a base entity class, with a bi-directional @ManyToOne-@OneToMany relationship Element owner - List ownedElements, and Example is a subclass entity ... ();     }     @Entity     public static class Element {         private String name
Forum
10

Merge on detached entities

Hello, it is possible to merge detached entities? There are some attached entities which load from the database. The transaction is finished and the entities become detached. In a new transaction the fields of the detached entities will be changed and a merge by em.merge(entity) will be saved
Forum
10

Is it possible to remove parent/child entities without refresh?

We have a big entity object tree in our project. If I use the entityManager.remove(childEntity) method to remove a child entity a entityManager.refresh(parentEntity) is necessary in order ... . Do you know a way to remove a child entity from a parent entity without a entityManager.refresh
Forum
10

Is it ok to put list or map of embeddable objects in entity ?

Hi, Is it ok to put list or map of embeddable objects in entity? I mean, for example : @Entity public class Entity_A {     (...)     @Embedded     List bList;     @Embedded ... entity. And what happens if I do operation like : entA.setBList(new ArrayList
Forum
10

Package name for persisted entities

Hi, I have a question about package name and searching for entities. As for now we were using ... for both systems. After merging entities from two different projects, we get single jar with all entities. Unfortunately some of the names are the same for entities: - homplex.model.dbobject.Inspiration
Forum
10

Updating Entities

with Entities not sending their updates to each other. I have two Entities in question at the moment: Employee and Paygrade. @Entity public class Employee { private String id; private String fName; private String lName; private Department dept; private Paygrade pay; ... } @Entity
Forum
10

Method Invocation On All Entities

Deleting or changing a field of all the entities of some type is fairly easy, using the DELETE ... method on all persisted entities of some type? For instance, suppose every entity object should do some operations before it gets deleted, and at some point we want to delete all those entities
Forum
9

"Attempt to lock a non entity object" error

and then doCancelEdit works fine. Second time I doEdit produces the error "Attempt to lock a non entity ... ------------------------------------------------------------- Attempt to lock a non entity object ... persistence context and detach all managed entity objects: ... Rolling back a transaction - either by