Home » Search

About entities

121-130 of 200Refresh
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}">
Forum
10

How Should I Configure objectdb.conf to Obtain 256KB Disk IO Requests and Maximize Shared PersistenceManager Entity Cache?

persisted entity objects or fields of arbitrary objects (like key-value store)? Does ObjectDB access ... ?  Entire persisted entity objects?   Fields of arbitrary objects (like key-value store)?   To optimize ... asks for an entity object, will arbitrary entity objects around it in that datastore file location
Forum
10

Removing entity class

the 10 entities limit and got exception: com.objectdb.o.UserException: Too many persistable types (>10) - exceeds evaluation limit Among the 10 entities in the project there are 2 entities I added long ... , but there are still in ObjectDB database. The 2 tables for these entities are empty, but the tables exist, so they count