About entities

101-110 of 200Refresh
Forum
21

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
21

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
21

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
21

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
Forum
21

Need help to make this test work and define proper annotations for entities Lists

annotations on entities list, could anyone help me to define them? NB in this test case I didn't set all entities methods for the sake of clarity, also in actual application no field are public nor static and no entity is static.    package testodb; import java.io.File; import java.io.Serializable
Issue
21

Removed entities can be found by query in the same transaction

Hello, we opened a transaction, load an entity from database and removed this entity by em.remove(). Afterwards the entity can be load again by query although the resulted entity have an attribute __odbtracker/m (type STA, value=Persistent-Deleted-Flushed) which shows that the entity is deleted
Forum
21

Accessiblity of attributes in entities in several OSGi-Bundles

Hello, we have a problem with enhanced entities. It is very important to solve this issue. There are three entities in two OSGi-Bundles and we execute importRequirements() in RequirementServiceImpl: __________________________________________________________ Bundle A: @Entity class
Forum
21

IDs of Entities suddenly became UUIDs?

, others a String UUID. Our Base-Entity everything inherits from is declared as usual with Long ... !?? How could that have happened and what are we supposed to do now to fix this as when quering those entities ... we use are affected by this. Many of them having mixed Long and UUID String ids in the same entity type
Forum
21

Does ObjectDB create one instance of each entity class on (web app) load ?

web app with the NetBeans 8.2 Profiler. I can see that exactly one instance of each entity ... also checked am not loading any entities using JPA callbacks.) If I take a heap dump and inspect ... reason create an instance of each entity (and if so, under what circumstances) ?   I
Issue
21

Query in nested transaction returns detached entity if lazy-loaded

!= null); The entity is detached and data is not loaded lazily from the database. We've also found ... . We worked on enhanced classes. We activated the entity listeners for pre persisted and post persisted in order to check the entity version number. For example a new entity is created (entity version