About entity

101-110 of 200Refresh
Forum
10

Weird behaviour with enhanced classes and embedded entities

entries of my ArrayLists with embedded entities are missing. I've hunted the problem down to an enhanced/proxied list in my entity which contains embedded entities and some .add(obj) are simply failing ... .CascadeType; import javax.persistence.Embeddable; import javax.persistence.Entity; import javax
Forum
10

List of Enum Values in an entity

Entity with an ArrayList of Enums: private ArrayList flags; The flags are stored into ... wrong? Joachim Arrays of enum values are expected to be supported by ObjectDB. If the entity ... changed in the whole application: package .model.entity; import java.io.Serializable; import java
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
9

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
9

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
9

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