About object

41-50 of 200Refresh
Manual
12

UPDATE SET Queries in JPA/JPQL [2011-11-22]

Existing entity objects can be updated, as explained in chapter 2, by: Retrieving the entity objects into an EntityManager. Updating the relevant entity object fields within an active transaction ... an alternative way for updating entity objects. Unlike SELECT queries, which are used to retrieve data from
Manual
12

JPA Lifecycle Events

class is also invoked for entity objects of the subclasses unless that callback method is overridden ... call EntityMan­ager or Query methods and should not access any other entity objects. If a callback method ... MyListener { @PrePersist void onPrePersist(Object o) {} @PostPersist void onPostPersist(Object
Forum
12

Soft Reference Object Cache Recommendation

size limit being exceeded before the post attempt.  =(  ) I desire to have my persistent objects ... objects before more recently accessed ones.  I attempted to use Java SoftReference to my large byte[] and instruct ObjectDB to use soft reference for its Level One (L1) object data cache.  I disable the L2
Manual
11

JPA Query Structure (JPQL / Criteria)

classes and objects. For example, a JPQL query can retrieve and return entity objects rather than just field values from database tables, as with SQL. That makes JPQL more object oriented friendly ... JPQL Query The following query retrieves all the Country objects in the database: SELECT c FROM
Issue
11

new objects not available in mappedBy associations

> employees;   creating a new mapped class, e.g. new Employee, won't result in this object being available in the same transaction: ie: for (Employee e : department.employee) won't include the new object ... when the object is retrieved from the database again. Try to refresh the department object
Forum
11

Speed of queries that return many objects

and tuning it could be in the range of 1-2 seconds. The overhead of preparing entity objects is more than you may expect and much slower than just reading the data from the disk. Using embedded objects or report queries (which return fields rather than entity objects) may help. If you can load the data
Forum
11

Entity listener - event instead of object

in updated entity. There is a problem however with accessing "old" version of object stored in ... @ElementCollection private Set activities; This way I can add events to given object without using EM to persist new object. What I want to accomplish is to log difference between new and old values
Forum
11

ClassCastException of same object type

I have ObjectDB partially working with my project. At the moment it seems to be saving objects and retrieving objects ok in the main project. However, when I make a plugin for the project, the new objects are persisted but not retrieved. I get the following error: java.lang.ClassCastException: org
Manual
11

Setting and Tuning of JPA Queries

since the setter methods in Query and TypedQuery support method chaining (by returning the query object ... uses automatic optimistic locking to prevent concurrent changes to entity objects by multiple users ... that has to be applied on all the result objects that the query retrieves. For example, the following query
Forum
11

Time Sequence Object Command DB

We (www.s2ssystems.com) have a time-sequential object command database.  I would like ... ) are create object, change object (fields), delete object, and object-method execution commands.   Method commands are generally used to trigger creation of transient objects.  The database can be branched