ObjectDB Database Search
51-100 of 200 results"Unexpected query expression" using CriteriaQuery FetchParent Interface: Unexpected query expression end (non keyword identifier is expected)] with root cause com.objectdb.o.UserException: Unexpected query expression end (non keyword identifier is expected) at com.objectdb.o ... thread "main" [ObjectDB 2.5.6_05] javax.persistence.PersistenceException Unexpected query expression | |
JPA CriteriaQuery -- Iterate Expression | |
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' == , | |
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.UserException: Attempt to store an instance of a non persistable type java.lang.Class at com.objectdb.o.MSG.d | |
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. Note: It doesn' t work with SIZE(): SELECT e FROM MyEntity e | |
IN expression in a Criteria QueryIN expression in a Criteria Query | |
JPA Queries elements (representing range variables, join and fetch): Other criteria query expressions (for all the query clauses): | |
JPA Class Enhancer and enhanced: $ java com.objectdb.Enhancer -s "*.class" The "*.class" expression above is enclosed in quotes | |
Eclipse Distribution License - v 1.0 HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED | |
ObjectDB Website - Terms and Conditions of Use Software's web site are provided "as is". ObjectDB Software makes no warranties, expressed or implied | |
Chapter 4 - JPA Queries (JPQL / Criteria) BY, HAVING, ORDER BY): Then the expressions that are used for building JPQL and criteria query | |
InterfaceRef jakarta.persistence.criteria.Subquery: AbstractQuery , CommonAbstractCriteria , Expression , Selection , TupleElement The Subquery interface defines functionality that is specific to subqueries. A subquery has an expression as its selection item. Since: JPA 2.0 Public Methods Expression as (Class type) Perform a typecast | |
InterfaceRef jakarta.persistence.criteria.ParameterExpression JPA Interface ParameterExpression Type Parameters: - the type of the parameter expression Super Interfaces: Expression , Parameter , Selection , TupleElement Type of criteria query parameter expressions . Since: JPA 2.0 Public Methods Expression as (Class type) Perform a typecast | |
InterfaceRef jakarta.persistence.criteria.CriteriaBuilder$Coalesce JPA Interface Coalesce Super Interfaces: Expression , Selection , TupleElement Interface used to build coalesce expressions . A coalesce expression is equivalent to a case expression that returns ... otherwise. Since: JPA 2.0 Public Methods Expression as (Class type) Perform a typecast upon the expression | |
InterfaceRef jakarta.persistence.criteria.CriteriaQuery: AbstractQuery Since: JPA 2.0 List getGroupList () Return a list of the grouping expressions . Returns empty list if no grouping expressions have been specified. Modifications to the list do not affect the query. Return: the list of grouping expressions Inherited from: AbstractQuery Since: JPA 2.0 Predicate | |
@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 WHERE clause for IN :variable not working if variable | |
Issue with TYPE expression in Criteria APIIssue with TYPE expression in Criteria API | |
InterfaceRef jakarta.persistence.criteria.CriteriaBuilder$SimpleCase JPA Interface SimpleCase Super Interfaces: Expression , Selection , TupleElement Interface used to build simple case expressions . Case conditions are evaluated in the order in which they are specified. Since: JPA 2.0 Public Methods Expression getExpression () Return the expression to be tested | |
InterfaceRef jakarta.persistence.criteria.AbstractQuery a list of the grouping expressions . Returns empty list if no grouping expressions have been specified. Modifications to the list do not affect the query. Return: the list of grouping expressions ... AbstractQuery groupBy ( Expression ... grouping) Specify the expressions that are used to form | |
InterfaceRef jakarta.persistence.criteria.CriteriaBuilder$Case JPA Interface Case Super Interfaces: Expression , Selection , TupleElement Interface used to build general case expressions . Case conditions are evaluated in the order in which they are specified. Since: JPA 2.0 Public Methods Expression otherwise ( Expression result) Add an "else" clause | |
InterfaceRef jakarta.persistence.criteria.Path JPA Interface Path Type Parameters: - the type referenced by the path Super Interfaces: Expression ... " expression . Since: JPA 2.0 The Paths and Types in JPQL and Criteria API article explains how to use Path . Public Methods Expression get ( MapAttribute map) Create a path corresponding | |
CriteriaBuilder.substring(x,from,len) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression substring ( Expression x, Expression from, Expression len ) Create an expression for substring extraction. Extracts a substring of given length starting | |
InterfaceRef jakarta.persistence.criteria.From: Expression , FetchParent , Path Represents a bound type, usually an entity that appears in the from clause ... of the given name does not exist Inherited from: FetchParent Since: JPA 2.0 Expression get ( MapAttribute ... -valued attribute Return: expression corresponding to the referenced attribute Inherited from: Path | |
CriteriaBuilder.locate(x,pattern,from) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression locate ( Expression x, Expression pattern, Expression from ) Create expression to locate the position of one string within another, returning position of first | |
InterfaceRef jakarta.persistence.criteria.MapJoin key - the type of the target Map value Super Interfaces: Expression , FetchParent , From , Join ... .Map . Since: JPA 2.0 Public Methods Expression entry () Create an expression that corresponds to the map entry. Return: expression corresponding to the map entry Since: JPA 2.0 MapAttribute getModel | |
CriteriaBuilder.nullif(x,y) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression nullif ( Expression x, Expression y ) Create an expression that tests whether its argument are equal, returning null if they are and the value of the first expression if they are not | |
AnnotationRef jakarta.persistence.IdClass JPA Annotation IdClass Target: TYPE Implemented Interfaces: Annotation Specifies a composite primary key type whose fields or properties map to the plain fields or properties of the annotated entity class. The specified primary key type must: be a non- abstract regular Java class, or a Java record | |
InterfaceRef jakarta.persistence.criteria.CriteriaBuilder$In JPA Interface In Super Interfaces: Expression , Predicate , Selection , TupleElement Interface used to build in predicates. Since: JPA 2.0 Public Methods Expression getExpression () Return the expression to be tested against the list of values. Return: expression Since: JPA 2.0 List getExpressions | |
CriteriaBuilder.replace(x,substring,replacement) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression replace ( Expression x, Expression substring, Expression replacement ) Create an expression replacing every occurrence of a substring within a string | |
CriteriaBuilder.notLike(x,pattern,escapeChar) - JPA Method; Expression x, Expression pattern, Expression escapeChar ) Create a predicate for testing whether the expression does not satisfy the given pattern. Parameters: x - string expression pattern - string expression escapeChar - escape character expression Return: not-like predicate Since: JPA 2.0 | |
CriteriaBuilder.substring(x,from) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression substring ( Expression x, Expression from ) Create an expression for substring ... position is 1. Parameters: x - string expression from - start position expression Return: expression corresponding to substring extraction Since: JPA 2.0 | |
CriteriaBuilder.concat(x,y) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression concat ( Expression x, Expression y ) Create an expression for string concatenation. Parameters: x - string expression y - string expression Return: expression corresponding to concatenation Since: JPA 2.0 | |
CriteriaBuilder.trim(ts,t,x) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression trim ( CriteriaBuilder.Trimspec ts, Expression t, Expression x ) Create expression to trim character from a string. Parameters: ts - trim specification t | |
CriteriaBuilder.like(x,pattern,escapeChar) - JPA Method; Expression x, Expression pattern, Expression escapeChar ) Create a predicate for testing whether the expression satisfies the given pattern. Parameters: x - string expression pattern - string expression escapeChar - escape character expression Return: like predicate Since: JPA 2.0 | |
CriteriaBuilder.coalesce(x,y) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression coalesce ( Expression x, Expression y ) Create an expression that returns null ... : x - expression y - expression Return: coalesce expression Since: JPA 2.0 | |
CriteriaBuilder.trim(t,x) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression trim ( Expression t, Expression x ) Create expression to trim character from both ends of a string. Parameters: t - expression for character to be trimmed x - expression for string to trim Return: trim expression Since: JPA 2.0 | |
CriteriaBuilder.locate(x,pattern) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression locate ( Expression x, Expression pattern ) Create expression to locate the position ... . Parameters: x - expression for string to be searched pattern - expression for string to be located | |
CriteriaQuery.groupBy(grouping) - JPA Method; Expression ... grouping ) Specify the expressions that are used to form groups over the query results. Replaces the previous specified grouping expressions , if any. If no grouping expressions are specified, any previously added grouping expressions are simply removed. This method only overrides | |
CriteriaBuilder.right(x,len) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression right ( Expression x, Expression len ) Create an expression for the rightmost substring of a string, Parameters: x - string expression len - length of the substring to return Return: expression for the rightmost substring Since: JPA 2.0 | |
CriteriaBuilder.left(x,len) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression left ( Expression x, Expression len ) Create an expression for the leftmost substring of a string, Parameters: x - string expression len - length of the substring to return Return: expression for the leftmost substring Since: JPA 2.0 | |
CriteriaBuilder.replace(x,substring,replacement) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression replace ( Expression x, String substring, Expression replacement ) Create an expression replacing every occurrence of a substring within a string. Parameters: x | |
CriteriaBuilder.replace(x,substring,replacement) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression replace ( Expression x, Expression substring, String replacement ) Create an expression replacing every occurrence of a substring within a string. Parameters: x | |
CriteriaBuilder.diff(x,y) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression diff ( Expression x, Expression y ) Create an expression that returns the difference between its arguments. Parameters: x - expression y - expression Return: difference Since: JPA 2.0 | |
CriteriaBuilder.prod(x,y) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression prod ( Expression x, Expression y ) Create an expression that returns the product of its arguments. Parameters: x - expression y - expression Return: product Since: JPA 2.0 | |
CriteriaBuilder.quot(x,y) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression quot ( Expression x, Expression y ) Create an expression that returns the quotient of its arguments. Parameters: x - expression y - expression Return: quotient Since: JPA 2.0 | |
CriteriaBuilder.sum(x,y) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression sum ( Expression x, Expression y ) Create an expression that returns the sum of its arguments. Parameters: x - expression y - expression Return: sum Since: JPA 2.0 | |
CriteriaBuilder.between(v,x,y) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Predicate between ( Expression v, Expression x, Expression y ) Create ... value. Parameters: v - expression x - expression y - expression Return: between predicate Since: JPA 2.0 | |
AbstractQuery | |
CriteriaBuilder.mod(x,y) - JPA Method JPA Method in jakarta.persistence.criteria.CriteriaBuilder Expression mod ( Expression x, Expression y ) Create an expression that returns the modulus (remainder under integer division) of its arguments. Parameters: x - expression y - expression Return: modulus Since: JPA 2.0 | |
InterfaceRef jakarta.persistence.criteria.ListJoin of the target List Super Interfaces: Expression , FetchParent , From , Join , Path , PluralJoin , Selection ... Expression index () Create an expression that corresponds to the index of the object in the referenced ... an association or element collection for which an order column has been defined. Return: expression |