Home » Search

About entities

101-110 of 200Refresh
Result
11

Posting to ObjectDB Website - Important Instructions

. Whenever possible: Use a single Java file with one main class + static inner classes for entity / embeddable ... ();     }     @Entity     public static class MyEntity {         private String name;         MyEntity(String ... its strict JPA warnings (There is no ID defined for this entity hierarchy, The class
Forum
11

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
11

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
11

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
11

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