Internal Website Search

41-50 of 200 resultsRefresh

Update is ignored by ObjectDB

Hi! Sorry for my bad english skills. When I execute fulfilOrder, only Order entity ... (unitName = "SMShop") private EntityManager shopdb; ... public Order fulfilOrder(Long orderID, Long userID, int itemID) { Order order = shopdb.find(Order.class, orderID); if (order == null

Pre-detach loading: retrieval by navigation not working in if statement

-loading-why-retrieval-by-navigation-and-access">https://stackoverflow.com/questions/35359676/java-jpa-objectdb-pre-detach-loading-why-retrieval-by-navigation-and-access webel Dr Darren ... that can be referenced by ID, and meets a uniform and powerful IElement interface.

Should derived fields of an EmbeddedId be manually maintained by app code?

for maintaining a "map" of items, of type ECompoundKeyMapItem, identified by their "key ... " of subitems, of type "ECompoundKeyMapSubItem", identified by their keys. The embeddedId ... ; this.parent = parent; } [ObjectDB 2.3.0_01] Unexpected exception (Error 990) Generated by Java

Locking in JPA

to the same data by two concurrent users. Locking in ObjectDB (and in JPA) is always at the database ... of a database object, for which another update has already been committed by another transaction.enabled by default and fully automatic. Optimistic locking should be the first choice

CRUD Database Operations with JPA

), sort the results (using an order">ORDER BY clause) and even group ... ) by the persist method ... >We can get the number of Point objects in the database by using a simple query:

JPA / JDO Class Enhancer

ObjectDB Enhancer is a post compilation tool that improves performance by modifying ... required by JPA but not enforced by ObjectDB) to avoid accessing persistent fields of other classes directly.  Rather, the accessor and mutator methods of the desired class should be used (e.g. by

Storing JPA Entity Objects

New entity objects can be stored in the database either explicitly by invoking ... > An IllegalArgumentException is thrown by EntityExistsException is thrown. The exception is thrown either by

Removed entities can be found by query in the same transaction

this entity by em.remove(). Afterwards the entity can be load again by query ... >ObjectDB uses snapshots in order to isolate transactions, i.e. to hide uncommitted flush changes ... . Every snapshot represents a picture of the database as seen by a particular transaction. When changes

[ODB1] Chapter 3 - Persistent Classes

as reflected by its persistent fields is stored. Persistent fields, by default ... > Some of the persistent types above are defined as optional by JDO (arrays ... classes. For example, the class java.awt.Image is not supported by JDO. You can store

[ODB1] Chapter 2 - A Quick Tour

JDO portable application, step by step. Both sample programs are contained in ObjectDB's samples ... the database by its name: 20 list = (ArrayList)pm.getObjectById("Hello World", true); 21 ... ArrayList instance is expected to be retrieved from the database by its name "Hello