About entity

121-130 of 200Refresh
Forum
10

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
10

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
10

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
Issue
10

Eager Fetch of Map with Entities as Keys

Loading eagerly a map that uses entity objects as keys is currently unsupported, if the equals and hashCode methods of the keys are based on the key entity persistent content, since that content ... .createEntityManager();         em.getTransaction().begin();         MyEntity entity = new MyEntity
Forum
10

Insert a new entity class in a class hierarchy does not work

Hello, we have an entity class hierarchy and we want to insert a new entity in this hierarchy ... , because the class hierarchy had already always existed and the "new" entity class needed still only the @Entity annotation, all remaining fields got null as a value. Only if the new entity
Issue
10

New entity objects are duplicated on merge cascading

When merge is cascaded to a new entity object that has not been persisted ... .persistence.*; @Entity public class T595 {     public static void main(String[] args ... ();     }         @Entity     public static class Book {         @Id         @GeneratedValue(strategy
Issue
10

Remove an entity which attributes were changed

We use an OSGi environment and we have three OSGi plugins.   In plugin A an entity is loaded and the entity is passed to plugin B. Plugin B changes an attribute on the entity. Plugin C removes the entity from the database. After commit the transaction an exception is caused with optimistic lock
Forum
10

Entity with java.util.Date column gives ClassCastException in BIRT

Copied a straightforward entity class from my coleague. Using Eclipse Kepler (Reporting) and stored ... JPQL query to select the fields. Entity looks like this: package entity; import java.util.Date; import java.util.List; import javax.persistence.*; /** * Entity class for a patient
Forum
10

Extending model by "common entity"

Hi, I have a question about extending working model with one, common entity, that all other entities will inherit from. For example I have 2 different entities in database with some data: @Entity ... ;     // (getters and setters here) } and the second one: @Entity public class Entity2
Forum
10

How prevent post-compile enhancement of non entity classes

the enhancer on entity files. For full project build the following works, by grouping entities ... .platform.classpath}">