ObjectDB ObjectDB

Internal Website Search

151-160 of 200 resultsRefresh

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

Queries are slow on a large database

and there are performances issues. I am doing small queries and they take much longer than I expect, i.e.: Get the total number of entries Get 25 consecutive entries (i.e. 0-25) Get one specific entry On average each query ... use such query: Query query = pm.newQuery(MessageImpl.class,     "this.logTestRunId

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

query hint

some years ago there was a chat around query hints http://www.objectdb.com/issue/2417 we are currently trying that with the latest version but we do not see that our hint is used this is the query ... )) [[objectdb.query-plan-text=index(ctso['(TC)'->'(TC)']] but the index that is in the hint is not

query on calendar class

Hello! I'm looking for help to build query on calendar class. I need to get objects where Calendar ... String A;     @Temporal(TemporalType.TIMESTAMP) private Calendar start; I tested: Query query=em.createQuery("SELECT c FROM Cdr c where c.start.DAY_OF_WEEK = ?1",Cdr.class); query.setParameter(1

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

Is ObjectDB a NoSQL Database?

of NoSQL technology, which are weak query capabilities and lack of ACID (atomicity, consistency, isolation, durability). Unlike other NoSQL solutions, ObjectDB provides full support of rich complex queries, using two standard Java query languages: JPQL (Java Persistence Query Language) and JDOQL (JDO


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

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

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

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