About named queries

api-jpa

javax.persistence.NamedQueries

Specifies multiple named Java Persistence query language queries.(Annotation of JPA)

 
api-jpa

setParameter(name, value, temporalType)

Bind an instance of java.util.Date to a named parameter.(Method of javax.persistence.TypedQuery)

 
api-jdo

addSubquery(sub, variableDeclaration, candidateCollectionExpression, parameters)

Add a subquery to this query.(Method of javax.jdo.Query)

 
forum_thread

Query results are not up to date for entities, not primitives

When using the CriteriaBuilder to query, the retrieved list are not refreshed according to the latest updates. But, when using the JPQL Query, the list are refreshed. What is the problem? ... the cache. There is no difference between criteria queries and string based JPQL queries regarding the cache (and actually every criteria query it converted by ...

 
forum_thread

java 8 LocalDateTime is not working in query

My entity class has a field of type java.time.LocalDateTime. I'm able to persist entities and I'm able to query without datetime field in where clause, but with datetime in where clause doesn't return anything and not exception.   #1 2014-08-25 00:19 My entity class has a field of type java.time.LocalDateTime. I'm able to persist entities and I'm able to ...

 
release

2.3.7

... ). Improved  toString of criteria queries to use aliases ( issue #12 7). Fixed automatic variable naming in criteria queries ( issue #128 ). Fixed a bug in handling mapped super ...

 
api-jdo

javax.jdo.PersistenceManager

PersistenceManager is the primary interface for JDO-aware application components.(Interface of JDO)

 
forum_thread

Query vs Extent for retrieving data

I'm running into a problem where data that is retrieved via a Query comes out null, but when I retrieve it using an Extent everything is present. We have a very simple class: public class PositionReportManagerBean implements InstanceCallbacks { private int maxReports; private List<PositionReportBean> reports; } I have a test file with 5 instances of PositionReportManagerBean, each with maxReports set to 10 and 5 PositionReportBeans in reports. I can verify with the ObjectDB explorer that all of the data is there. If I call ... The difference between using Extent and queries in this case is unclear. Could you please post a complete ...

 
api-jdo

javax.jdo.PersistenceManagerFactory

The PersistenceManagerFactory is the interface to use to obtain PersistenceManager instances.(Interface of JDO)

 
release

2.3.5

... Added support of DATE(...) and TIME(...) methods in queries. Added new Explorer and Server exe (for Windows 7 and ... Fixed handling a Calendar parameter value in criteria queries. Fixed using type operator and literals in client server ...