Home » Search

About Entity

101-110 of 200Refresh
Forum
12

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
12

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
12

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
12

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
12

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
11

"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
Forum
11

Duplicate Entity class names causes Exception in Query

I have two Entities which have the same class name but reside in different packages ... of one of these entities. If I execute that query I get an exception;   Caused by: com.objectdb.o ... .... @Entity @NamedQueries({ @NamedQuery(name = "objdbTest.Singleton.getItem", query = "SELECT o
Forum
11

Entity Update - Is the documentation up to date?

suggests should not work. First, I've been modifying managed entities from outside an active ... automatically. Second, I'm using an array of entities inside another entity, and setting the elements ... is always expected to be up to date with the last ObjectDB version. > First, I've been modifying managed entities
Forum
11

Help understanding Entity behavior with JPA

Hi Support,   We have a entity with an @Id entity which we then put into a list and store in an different entity inside a field defined as:   @OneToOne(orphanRemoval=true, cascade=CascadeType ... .ArrayList and it contains multitple entities with an the same id.  the behavior we are seeing
Forum
11

Items in list are doubled, when the entity class is not enhanced

Dear all, I have a problem with adding items (entities) into other entity list. When the classes are not enhanced, added items are doubled. Here is an example: @Entity public class Customer ... and setters } @Entity public class Item implements Serializable { private static