ObjectDB ObjectDB

Internal Website Search

31-40 of 111 resultsRefresh
14

Catching exceptions from online backup

); backupQuery.setParameter("start", false);     Thread backupThread = backupQuery.getSingleResult ... .createQuery("objectdb backup", Thread.class);     backupQuery.setParameter("target", "/someNotExistingPath/withoutCreateAccess");     backupQuery.setParameter("name", "20231012");     backupQuery
14

Possible issue with timestamps

(2012, Calendar.MARCH, 29, 0, 0);         query.setParameter("startdate", startDate);         Calendar endDate = new GregorianCalendar(2012, Calendar.MARCH, 29, 1, 0);         query.setParameter ... (2012, Calendar.MARCH, 29, 11, 0);         query.setParameter("startdate", startDate
14

JPA JPQL WHERE clause for IN :variable not working if variable is a list of Enums

:     public enum MyEnumType { VALUE1, VALUE2, VALUE3, VALUE4 } and I call:     query.setParameter ... ) OR (enumField = :enumField2)" with:     query.setParameter("enumField1", MyEnumType.VALUE1);     query.setParameter("enumField2", MyEnumType.VALUE2); Then the matching objects are returned. I
14

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

"      + " WHERE person.personID == :personID")   .setParameter(     "personCode",     personData       .getPersonCode())   .setParameter(     "personName",     personData       .getPersonName())   .setParameter(     "personEmail",     personData       .getPersonEmail())   .setParameter(     "personID
12

Problem of query With an aggregate function

')"); listClassRepHost.setParameter("host",choix.getHost() ); listClassRepHost.setParameter("startDate", convert.convertDateTime(choix.getStartdate()) ); listClassRepHost.setParameter("endDate
12

General Performance Issues Illustrated with a Specific Method

(); if (paramValue instanceof Date) { qry.setParameter(paramName, (Date) paramValue, TemporalType.DATE); } else { qry.setParameter(paramName, paramValue
12

Strange behaviour with ORDER BY and IN

Location l where l.id IN :ids order by l.id desc", Location.class)             .setParameter("ids ... )             .setParameter("towns", locations.stream().map(l -> l.getTown()).collect(Collectors.toList ... ", Location.class)             .setParameter("towns", locations.stream().map(l -> l.getTown
12

Geospatial functions

",             Location.class);         List<Location> resultList = query             .setParameter("latitude", location.getLatitude())             .setParameter("longitude", location.getLongitude())             .setParameter("radius", radius)             .getResultList();         System.out.println
2

user defined backup file

: backupQuery.setParameter("targetfile", new java.io.File("/User/Backup/test.objectdb ... .setParameter("targetdir", new java.io.File("/User/Backup/")); wich should create a backupfile ... .setParameter("target", "/User");     backupQuery.setParameter("name", "Backup"); backupQuery
2

Update query bug

"); query.setParameter("code", personalCode); List<List<Transport>> list = query.getResultList ... SET p.transports = :list WHERE p.personalCode = :code", Person.class); query2.setParameter("list", list); query2.setParameter("code", personalCode); query2.executeUpdate

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