ObjectDB ObjectDB

Internal Website Search

21-30 of 107 resultsRefresh
19

Online Backup

query:     Query backupQuery = em.createQuery("objectdb backup");     backupQuery.setParameter ... : Query backupQuery = em.createQuery("objectdb backup"); backupQuery.setParameter("target
17

javax.persistence.TypedQuery

- if the argument is negative Since: JPA 2.0 Query setParameter(int position, Object value) Bind an argument ... Since: JPA 1.0 Query setParameter( Parameter<T> param, T value) Bind the value of a Parameter object ... correspond to a parameter of the query Since: JPA 2.0 Query setParameter(String name, Object value) Bind
16

JPA query of a Set of terms

FROM SearchIndex si WHERE si.term MEMBER OF :terms",     Page.class); query.setParameter("terms ... .setParameter("t1", t1).setParameter("t2", t2); By the way, since ObjectDB supports indexed collections ... " + "WHERE :t1 MEMBER OF p.terms AND :t2 MEMBER OF p.terms", Page.class); query.setParameter("t1", t1
15

Database is locked when in use

.setParameter("target", new java.io.File("c:\\backup")); And i want all the odb files to be placed in ... parameter that you may try:     query.setParameter("name", "your-dir-name"); support Support Just to confirm for the usage of query.setParameter("name", "your-dir-name"); Is the second agruement
13

UPDATE SET Queries in JPA/JPQL

" +       "WHERE population < :p");   int updateCount = query.setParameter(p, 100000).executeUpdate();
13

DELETE Queries in JPA/JPQL

= em.createQuery(       "DELETE FROM Country c WHERE c.population < :p");   int deletedCount = query.setParameter(p, 100000).executeUpdate();
13

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
12

javax.persistence.Query

Throws: IllegalArgumentException - if the argument is negative Since: JPA 1.0 Query setParameter(int ... of the query or if the argument is of incorrect type Since: JPA 1.0 Query setParameter( Parameter<T ... Query setParameter(String name, Object value) Bind an argument to a named parameter. Bind an argument
4

UPDATE statemen crash when i put the WHERE clause.

=:prenume and n.student.grupa=:grupa and n.cours.numeCurs=:curs") .setParameter("nume", linie.get(1).split(" ")[0]).setParameter("prenume", linie.get(1).split(" ")[1]) .setParameter("grupa",linie.get(2)).setParameter("curs","Programare avansata").getSingleResult
4

javax.persistence.NamedQuery

") .setParameter("custName", "Smith") .getResultList(); Since: JPA 1.0 Learn how to define and use

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