Home » Search

About entities

91-100 of 200Refresh
Forum
12

Remove an entity which attributes were changed - OptimisticLockException

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
11

Persist error @ManyToMany how to define correct entities relationships

I have Product entities containing a list of Category enties. Each product can have multiple Category but they are all refering to same limited set of Category entities (via ID). There is not changes ... too). @Entity public class Product implements Serializable { @Id @GeneratedValue
Forum
11

Object DB vs EclipseLink/TopLink: Unloaded relationships in detached entities

ObjectDB support, while the entities in a result set list from a JPQ query are initially managed ... to use the entity in a transaction it will have to be properly merged. From chris_delahunt at http ... as the Entity is not serialized, and the connections are still available, you should still be able
Forum
11

Entity listener - event instead of object

Hi, Currently I'm playing with entity listener to implement auditing with difference between values in updated entity. There is a problem however with accessing "old" version of object stored in ... store separate entity for given event. Right now I'm using BaseEntity which contains
Forum
11

Optimistic locking: prevent version increment on entity collection attribute

Hello, I have an entity E with an attribute which is a collection of entities (one to many ... the increment of the version of entity E when entities are added to or removed from the collection ... If it is a bidirectional relationship that is owned by the entities in the collection (i.e. the collection
Forum
11

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