About hints
Setting and Tuning of JPA Queries
Explains various JPA query settings - result range, flush and lock.... Lock Mode (setLockMode) Query Hints Result Range (setFirstResult, setMaxResults) ... See JavaDoc Reference Page... . Query Hints Additional settings can be applied to queries via hints. ...
NamedQuery.hints
(Optional) Query properties and hints.(Annotation Element of javax.persistence.NamedQuery)
NamedNativeQuery.hints
Query properties and hints.(Annotation Element of javax.persistence.NamedNativeQuery)
setProperty(propertyName, value)
Set an entity manager property or hint.(Method of javax.persistence.EntityManager)
Is 2 level cache in use?
Hi, Is there any way to check, if 2 level cache is in use? Right now I've done two things: 1. objectdb.conf with cache size is placed in WEB-INF directory of my web application. 2. persistence.xml was modified with: ... regarding this feature was added to the Query Hints section. It is now supported in all scopes (e.g. also globally ...
javax.persistence.TypedQuery
Interface used to control the execution of typed queries.(Interface of JPA)
NULL prefered in ORDER BY?
Hi! Is there a way to NOT prefer NULL in Order BY? I.e. assume this: @Entity class Hint { private String name; } @Entity class Test { private Hint hint; } I've got a few Test entries, some do have a hint assigned, some do not (NULL). Now when I do something like SELECT FROM Test ORDER BY hint.name #1 2011-12-06 01:18 Hi! Is there a way to NOT prefer NULL in Order BY? I.e. assume this: @ Entity class ...
javax.persistence.EntityManager
Interface used to interact with the persistence context.(Interface of JPA)