About @Query

api-jpa

JPA Exceptions

Reference (JavaDoc) of the JPA exception classes, including PersistenceException, EntityExistsException, EntityNotFoundException, LockTimeoutException, NonUniqueResultException, NoResultException, OptimisticLockException, PessimisticLockException, QueryTimeoutException, RollbackException, TransactionRequiredException. JPA exceptions are represented by a hierarchy of unchecked exceptions: java.lang.Object java.lang.Throwable java.lang.Exception java.lang.RuntimeException javax.persi ...

 
forum_thread

Spring and packagesToScan

Hi i am trying to configure ObjectDB using Spring JavaConfig but packageToScan is not working. I am getting Type XXX is not found   #1 2014-04-04 16:54 Hi i am trying to configure ObjectDB using Spring JavaConfig but packageToScan is not working. I am getting ...

 
forum_thread

Using of Second Level Cache

In our use case we want to find some entity types always again very quickly by primary key or query in many short transactions. The entity MyEntity1 and its relationships to MyEntity2/MyEntity3 was load and the entity MyEntity1 is taken in the second level cache, the other entity types not. Are the relationships to MyEntity2/MyEntity3 still always referenced although the entity manager is closed, so that the memory for MyEntity2 and MyEntity3 can never be released by garbage collector? #1 2016-06-22 08:04 In our use case we want to find some entity types always again very quickly by primary key or query in many short ...

 
forum_thread

use of Singleton into tomcat

hi all. i would write a class singleton that encapsulate the entitymanagerFACTORY    into it.(the entitymanagerFactory  IS A property of the only instance of class singleton. (the class singleton is not a Ejb!!!!!!!!!). into tomcat it not possible  use ejbs............. i have to manage the concurrency for the operations on db............... with a method static i can get the only instance of singleton for manage all operation on database. I get a instance of it into multiple servlet. #1 2011-10-04 20:34 hi all. i would write a class singleton that encapsulate the entitymanagerFACTORY    into ...

 
forum_thread

Detaching objects after JOIN FETCH

Hi, I have a question about detaching objects after issuing query with JOIN FETCH. Let's say I have two classes: public class A { @ManyToOne B bClass } public class B { @OneToMany(fetch = FetchType.LAZY, cascade = CascadeType.ALL) List<A> aClasses; } Now, I want to fetch all B classes with all A classes skipping lazy loading: #1 2012-07-11 07:50 Hi, I have a question about detaching objects after issuing query with JOIN FETCH. Let's say I have t ...

 
api-jpa

get(tupleElement)

Get the value of the specified tuple element.(Method of javax.persistence.Tuple)

 
api-jpa

ColumnResult.name

(Required) The name of a column in the SELECT clause of a SQL query(Annotation Element of javax.persistence.ColumnResult)

 
api-jpa

getOrderList()

Return the ordering expressions in order of precedence.(Method of javax.persistence.criteria.CriteriaQuery)

 
forum_thread

Navigation through Path to evaluate collection

Hello, I need to evaluate a field ("identifier") which is situated in a collection, within an entity. As stated in the documentation it is not possible to navigate there with the dot operator since its a collection. Is it there a way to evaluate this field? Here is the query, the entity and the related embeddable class. Thanks #1 2016-09-04 09:17 Hello, I need to evaluate a field ("identifier") which is situated in a collection, within an entity. As ...

 
api-jdo

setMultithreaded(flag)

Set the Multithreaded flag for this PersistenceManager.(Method of javax.jdo.PersistenceManager)