ObjectDB ObjectDB

Internal Website Search

91-100 of 107 resultsRefresh

Problems down-casting in WHERE clause

).val4 LIKE :search");         query.setParameter("search", "");         query.getResultList

Query with FETCH JOIN returns multiple results instead of one.

") .setParameter("demand", demand).getResultList(); I want this query to find one and only Demand object

createQuery method error

Hello, I am learning ObjectDB now. I create a simple Dao method as below: public boolean isJobExist(String name) { TypedQuery<Long> query = em.createQuery( "SELECT count(j) FROM MFJob j WHERE j.jobName = :name", Long.class); return query.setParameter("name", name

IN expression in a Criteria Query

(:bindVar)");         query.setParameter("bindVar", "a");         List<MyEntity> results = query

Help with 'not like/lower' query

= em.createQuery(c);         query.setParameter(stringProp, "test");             List<MyEntity

Object comparation never matches

)                 .setParameter("principal", authentication.getPrincipal()).getSingleResult(); According

Wrong type on SUM function

Hello, I have a problem when I run this aggregation query: Query q = em.createQuery(         "SELECT cc.totalCC.moneda, SUM(cc.totalCC.importe) FROM ComprobanteContable cc " +         "WHERE cc.cuenta=:cuenta GROUP BY cc.totalCC.moneda"); List<Object[]> resultList = q.setParameter("cuenta

InternalException when using MEMBER OF on a large list in a query

= em.createQuery(query, String.class); q.setParameter(1, scopeIDs); //scopeIDs is a Set<String

NullpointerException at a normal select

When I run the following code: EntityManager em = getEm(); Customer result = null; try {     logger.debug("Ident: "+ident);     result = em.createQuery("Select c from Customer c where c.identifier=:id", Customer.class).setParameter("id", ident).getSingleResult(); } catch (javax.persistence

Blocked by find

.createQuery("DELETE FROM DataHolder d WHERE d.containerId = :containerId"); query.setParameter

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