ObjectDB ObjectDB

Internal Website Search

71-80 of 200 resultsRefresh

Multi selection and distinct in a criteria query

hi, How can I realize multi selection with the criteria api concerning distinct? I.e. doing something like SELECT DISTINCT $1, $2 wouldn't work because I do only have something like criteria.multiselect(...) and nothing like builder.distinct(selection) so that I could do something like criteria

Criteria query error: Unexpected query token

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

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 dmoshal David Moshal Nothing was changed ... , without the separate jar, ie: without: javax.persistence:persistence-api:1.0.2 dmoshal David Moshal

Internal exception: NPE on criteria query with IN clause and empty collection

already narrowed the cause to the fact that I use JPA criteria query API, and I pass an empty collection to IN ... to see support for static metamodel in ObjectDB implementation of both JPA criteria API and JDO typed queries

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

Is ObjectDB better than competing object databases?

: ObjectDB is unique in supporting the standard APIs. It is the only object database with built in support for the Java Persistence API (JPA). It also supports a more recent and advanced version of the Java Data Objects (JDO) API than competing object databases. By using a standard API such as JPA


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<X> setLockMode( LockModeType lockMode) Set the lock mode ... - if the query is found not to be a Java Persistence query language SELECT query or a Criteria API

Why does ObjectDB duplicate classes from javax.jdo:jdo-api?

Hello, I'm using the Java Persistence API (JPA) in a library to not lock myself in to using ... the @Index annotation, I had to add a dependency to the JDO API version 3.1. The code works just ... out that both ObjectDB and the JDO API expose the same classes. I was wondering: is there was a reason

No Entity Class API

and should not be bound to specific entity classes and persistent fields. Therefore, an API for accessing ... database with no original classes: Use the Metamodel API to find details on the entity classes in ... exists in the database and missing from the classpath. Use Java reflection API with information from


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

Getting Started

ObjectDB is very easy to use. Follow the Getting Started Tutorial and the Quick Tour manual chapter and in minutes you may be able to write and run first Java programs against ObjectDB.

Prior knowledge or experience in database programming (SQL, JDBC, ORM, JPA, etc.) is not required, but some background in using the Java language is essential.

Need Help?

  1. Search ObjectDB website
  2. Read the FAQ
  3. Follow the Tutorials
  4. View or post in the forum
  5. Search or file an issue
  6. Contact support