Internal Website Search

41-50 of 200 resultsRefresh

Possible issue for JPQL IN expression

Possible issue for JPQL IN expression with a set of more than one string literals values in the path expression. Error: Exception in thread "main" [ObjectDB 2.3.7_10] SELECT e FROM MyEntity e WHERE e.country IN ('US' ==> , <==  'SP', 'UK') javax

TYPE Expression

Hi there! Trying to add a simple type expression with the criteria api like in your sample: cb.equal(e.type(), cb.literal(Country.class)); results in the error: Caused by: com.objectdb.o

Possible issue for JPQL IS EMPTY expression

Possible issue for JPQL IS EMPTY comparison expression: SELECT e FROM MyEntity e WHERE e.collection-valued IS EMPTY throws javax.persistence.PersistenceException: Invalid operand type  for operator IS EMPTY (error 756) Thanks.

JPA Annotations for Value Generation

Automatically generated values are mainly useful for primary key fields, but are supported by ObjectDB also for regular (non primary key) persistent fields. At the field level, the @GeneratedValue with an optional GenerationType strategy

@Enumerated(EnumType.STRING) annotation inhibits proper execution of IN expressions.

When the following annotation is present on an enum type entity field: @Enumerated(EnumType.STRING) Queries using JPQL IN expressions on this field won't work correctly anymore. This issue has been described in forum post 1254 (JPA JPQL

Issue with TYPE expression in Criteria API

Issue with TYPE expression in Criteria API

javax.persistence.criteria.MapJoin

="/api/java/jpa/criteria/Expression" title="Interface in javax.persistence.criteria">Expression ... ="header"> Expression" title="Interface in javax.persistence.criteria">Expression<X>

javax.persistence.criteria.ListJoin

="/api/java/jpa/criteria/Expression" title="Interface in javax.persistence.criteria">Expression< ... ="header"> Expression" title="Interface in javax.persistence.criteria">Expression<X>

javax.persistence.criteria.Path

/java/jpa/criteria/Expression" title="Interface in javax.persistence.criteria">Expression<X> ... a bound type or collection, and is a "primitive" expression. Expression" title

javax.persistence.criteria.Join

/java/jpa/criteria/Expression" title="Interface in javax.persistence.criteria">Expression<X ... "> Expression" title="Interface in javax.persistence.criteria">Expression<X>