About Criteria API

71-80 of 200Refresh
Forum
15

Criteria query error: Unexpected query token

is expected) A query with no SELECT may be valid in Hibernate HQL but not in JPQL and JPA Criteria API. My apologies, in my eagerness to test I think I need to do an audit on all criteria queries. Works ... however. Is there anything glaringly wrong with my code I'm failing to see? Or is Criteria a W.I.P?   Cheers
Forum
15

java.lang.NoClassDefFoundError: javax/persistence/criteria/AbstractQuery

Updating from 2.7.1_02 to 2.7.2_02 I now get this error, did something change? java.lang.NoClassDefFoundError: javax/persistence/criteria/AbstractQuery   Nothing was changed, this class ... went back to java 8, from java 9. am using gradle, without the separate jar, ie: without: javax.persistence:persistence-api:1.0.2     dmoshal
Result
15

ObjectDB - Object Database for Java (JPA/JDO)

API (JPA). It is the first persistence solution that combined a powerful database with JPA support in ... your investment. Use a standard Java API. ObjectDB became the first Object Oriented Database with built in support for the two standard Java database APIs: Java Persistence API (JPA) Java Data Objects (JDO
FAQ
13

Where can I learn how to use ObjectDB?

All about Where can I learn how to use ObjectDB? in Java/JPA database - explanations, examples, references, links and related information.
JPA Doc
12

javax.persistence.TypedQuery

SELECT query or a Criteria API query Since: JPA 2.0 int getMaxResults() The maximum number of results ... a Criteria API query Since: JPA 2.0 TypedQuery setLockMode( LockModeType lockMode) Set the lock ... - if the query is found not to be a Java Persistence query language SELECT query or a Criteria API
JPA Doc
11

javax.persistence.Query

a Criteria API query Since: JPA 2.0 int getMaxResults() The maximum number of results the query ... Persistence query language SELECT query or a Criteria API query Since: JPA 2.0 Query setMaxResults(int ... : IllegalStateException - if called for a Java Persistence query language SELECT statement or for a criteria
JPA Doc
10

javax.persistence.EntityManager

. The EntityManager API is used to create and remove persistent entity instances, to find entities by their primary ... ( CriteriaQuery criteriaQuery) Create an instance of TypedQuery for executing a criteria query. Create an instance of TypedQuery for executing a criteria query. Parameters: criteriaQuery - a criteria query
JDO Doc
9

javax.jdo.JDOEntityManager

> createQuery(CriteriaQuery criteriaQuery) Create an instance of TypedQuery for executing a criteria query. Create an instance of TypedQuery for executing a criteria query. Parameters: criteriaQuery - a criteria query object Returns: the new query instance Throws: IllegalArgumentException - if the criteria
Issue
9

No Entity Class API

and should not be bound to specific entity classes and persistent fields. Therefore, an API for accessing ... the Metamodel API to find details on the entity classes in a database. Obtain Class representation ... the classpath.  Use Java reflection API with information from the Metamodel API to access fields
Forum
9

Enhancement API - NullPointerException

Hi! I am trying to use the Enhancement API from within my application like this: com.objectdb.Enhancer.enhance("my.package.Foo"); However, I get the following NullPointerException: [ObjectDB 2.7.1 ... , the class exists and trying the API with a non-existent class gives me the expected "is not found by