ObjectDB ObjectDB

Internal Website Search

151-160 of 200 resultsRefresh
54

IN expression in a Criteria Query

, it is written that ObjectDB is 100% compatible with JPA. However, I have problem with this JPQL query ... .employeeEntity = e) ORDER BY e.name with Hibernate, there was no problem with this query, but ObjectDB throws exception: com.objectdb.o.UserException: Unexpected query token 'EXISTS' Second problem
52

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

When using the CriteriaBuilder to query, the loaded list are not refreshed according to the latest updates. But, when using the JPQL Query, the list are refreshed, and, when I querying for primitive ... side does not any diference. The problem is only solved when changing the query mode, from
51

How to convert a boolean to an int in the query?

How to convert a boolean to an int in the query? I have five parameters of type boolean in ... , approvePhoneNumber, .... because the parameters equivalent. I want to sort them in the query by their sum ... queries. It is possible to add this to ObjectDB in future versions, but using a pre-calculated
11

javax.persistence.criteria.Subquery

a subquery root correlated to a root of the enclosing query. Create a subquery root correlated to a root of the enclosing query. Parameters: parentRoot - a root of the containing query Returns: subquery ... correlated to a join object of the enclosing query. Create a subquery join object correlated to a join object
10

Retrieving JPA Entity Objects

of an entity object. Retrieval by Query The most flexible method for retrieving objects from the database is to use queries. The official query language of JPA is JPQL (Java Persistence Query Language). It enables retrieval of objects from the database by using simple queries as well as complex, sophisticated
10

javax.persistence.EntityManager

key, and to query over entities. The set of entities that can be managed by a given EntityManager ... database. Since: JPA 1.0 See Also: Query TypedQuery CriteriaQuery PersistenceContext Learn how to use ... on the EntityManager instance and any Query and TypedQuery objects obtained from it will throw
10

JPA Reference (JavaDoc)

Java/JPA API Reference (based on the JPA 3 JavaDoc)
2

Step 3: Add a Main Class

the database: Query q1 = em.createQuery("SELECT COUNT(p) FROM Point p ... : Query q2 = em.createQuery("SELECT AVG(p.x) FROM Point p"); System.out.println("Average X ... : TypedQuery<Point> query =  em.createQuery("SELECT p FROM Point p", Point.class
2

Step 3: Add a Main Class

of Point objects in the database: Query q1 = em.createQuery("SELECT COUNT(p) FROM Point p ... value: Query q2 = em.createQuery("SELECT AVG(p.x) FROM Point p ... the database: TypedQuery<Point> query = em.createQuery("SELECT p FROM Point p", Point
1

JDO Reference (JavaDoc)

Java/JDO API Reference (based on the JDO 2.2 JavaDoc)

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