ObjectDB ObjectDB

Internal Website Search

101-110 of 111 resultsRefresh
7

How to pass a list in query for a list field of entity.

a where a.SocialMedias in (:so)"); qry.setParameter("so", soList); List<Agent> ents = qry
7

fetch by enum

I have Entity named Fruits with a column Type which is a enum. I want to fetch the based on Type Eg. Query qry= em.createQuery("Select f from Fruits f where f.Type =: t "); qry.setParameter("t",Type.Sweet); But it return a null result list. Manoj Manoj Kumar Maharana It should work. Please provide
7

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
7

Should derived fields of an EmbeddedId be manually maintained by app code?

.setParameter("container", this); q.setFlushMode(FlushModeType.AUTO); try { long l = (Long) q
7

Object comparation never matches

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

JBOSS AS7 7.1.1 - Entity not persisted and createNamedQuery fire exception

.createNamedQuery( "Guest.findByName", Guest.class )     .setParameter( "name", name.toLowerCase
7

Restrict by class in query

I have the following bit of code: public List<Folder> findFolderByName(String folderName) { TypedQuery<Folder> byNameQuery = this.entityManager.createQuery("SELECT f FROM Entry f WHERE f.name=:name", Folder.class); return byNameQuery.setParameter("name", folderName).getResultList(); } I
1

Feature Request: Subclassed PersistenceException for Type Not Found in DB Schema

<Integer> query = manager.createQuery(queryString, Integer.class); query.setParameter("chain", Integer
1

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
1

JPQL support for mapped by (inverse) collections

", A.class)             .setParameter("list", new ArrayList(list1)).getResultList

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