ObjectDB ObjectDB

Internal Website Search

11-20 of 44 resultsRefresh
27

JPA Criteria API Queries

expressions are provided in the following page sections: Literals and Dates (literal, nullLiteral
25

java.sql.Date equals comparison not working with CriteriaAPI

(root.get("eintritt"), builder.literal(myDate)); Doing exactly the same on the same DB in the DB ... the date literal with a date parameter. support Support After further investigation of this issue, it seems that criteria queries work well with literal dates, including in version 2.4.5. The following
21

TYPE Expression

.equal(e.type(), cb.literal(Country.class)); results in the error: Caused by: com.objectdb.o ... );         cq.select(e);         cq.where(cb.equal(e.type(), cb.literal(A.class ... static class B {     } } There is still a problem with parsing class literals in query strings, as
19

JPA Query Structure (JPQL / Criteria)

addition, string literals are also case sensitive (e.g. "ORM" and "orm" are different values). A Minimal
19

JPA Named Queries

A named query is a statically defined query with a predefined unchangeable query string. Using named queries instead of dynamic queries may improve code organization by separating the JPQL query strings from the Java code. It also enforces the use of query parameters rather than embedding literals
19

IN operator syntax

Hi, what is the correct syntax for IN operator when list of literals ia used instead of parameter ... ; } } } Maruta M Sedlakova Your query is fine, but list literal is one of the few JPA query elements ... .setParameter("list", Arrays.asList(4, 5)); support Support Are you planning to support literal list in near
16

javax.persistence.criteria.CriteriaBuilder

expression Returns: like predicate Since: JPA 2.0 Expression<T> literal(T value) Create an expression for a literal. Create an expression for a literal. Parameters: value - value represented by the expression Returns: expression literal Throws: IllegalArgumentException - if value is null Since: JPA 2.0
10

nullLiteral(resultClass)

Method javax.persistence.criteria.CriteriaBuilder Expression<T> nullLiteral( Class<T> resultClass ) Create an expression for a null literal with the given type. Parameters: resultClass - type of the null literal Returns: null expression literal Since: JPA 2.0
5

Entity.name

Annotation Element javax.persistence.Entity String name (Optional) The entity name. Defaults to the unqualified name of the entity class. This name is used to refer to the entity in queries. The name must not be a reserved literal in the Java Persistence query language. Default value: "" Since: JPA 1.0
5

javax.persistence.Entity

to the entity in queries. The name must not be a reserved literal in the Java Persistence query language. Default value: "" Since: JPA 1.0

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