About entities

81-90 of 200Refresh
Manual
20

Index Definition

Querying without indexes requires iteration over entity objects in the database one by one. This may take a significant amount of time if many entity objects have to be examined. Using proper indexes ... a standard method for declaring indexes, but JDO does. The following entity definition uses JDO’s
Manual
20

SELECT clause (JPQL / Criteria API)

The ability to retrieve managed entity objects is a major advantage of JPQL. For example ... > results = query.getResultList(); Because the results are managed entity objects they have all the support that JPA provides for managed entity objects, including transparent navigation to other database
Forum
19

Entity is not related to ObjectDB, but i get exception from ObjectDB

Here is the description of the problem we are facing:
We have an entity DialogActionNew ... Hibernate
When getting this entity from PostgreSQL with the key EntityManager.find(id), we receive another entity - DialogNew, which has an exception: ERROR [org.jboss.ejb3.invocation] (pool-18-thread-1
Manual
19

CRUD Database Operations with JPA [2011-02-11]

it to store, retrieve, update and delete database objects. Storing New Entity Objects The following ... a managed entity) by the persist method. The new Point objects are physically stored in the database only when the transaction is committed. The Storing Entities section in chapter 3 discusses
Manual
19

CRUD Database Operations with JPA

it to store, retrieve, update and delete database objects. Storing New Entity Objects The following ... a managed entity) by the persist method. The new Point objects are physically stored in the database only when the transaction is committed. The Storing Entities section in chapter 3 discusses
Forum
18

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
18

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
18

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
18

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
18

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