About find

21-30 of 200Refresh
Forum
18

Finding out the JPA provider

Do you have any preferred way of finding out whether ObjectDb is my EntityManager's JPA Provider? I know there are problems with using getDelegate ( http://weblogs.java.net/blog/ss141213/archive/2009/05/be_careful_whil.html ) but on the other hand unwrap is not very portable ( https://forums.oracle
Forum
18

Query to find object from element of a contained collection

I have an OrderData class, containing an OrderItemData collection, i would like to find OrderData elements by OrderData.items.itemId. I cant get a proper query with MEMBER OF or IN. Does anyone have an idea on how i could formulate that as Typed or CriteriaBuilder query? Thanks.   @Entity public
Manual
18

Retrieving JPA Entity Objects

whose primary key is 1: Employee employee = em.find(Employee.class, 1); Casting of the retrieved object to Employee is not required because find is defined as returning an instance of the same class ... is returned. A similar method, getReference, can be considered the lazy version of find: Employee
Forum
18

finding post-persist pre-commit objects

finding post-persist pre-commit objects
Forum
18

How find out ObjectDB version at runtime (in a web app)

How find out ObjectDB version at runtime (in a web app)
Manual
14

Locking in JPA

one atomic operation. For example, the find method has a form that accepts a lock mode: Employee employee = em.find( Employee.class, 1, LockModeType.PESSIMISTIC_WRITE); Similarly, the refresh ... ", 2000); Employee employee = em.find(       Employee.class, 1, LockModeType.PESSIMISTIC_WRITE
Manual
11

Shared (L2) Entity Cache

and primary key: em.find(MyEntity2.class, Long.valueOf(1),      Collections.find(MyEntity2.class
Manual
11

Index Definition

AND p.x <= 80 By using an index on field x, ObjectDB can find the results using a range scan ... is specified first, the BTree is ordered by y values, so a full BTree scan is required to find