Internal Website Search

1-50 of 101 results

FROM clause (JPQL / Criteria API)

The FROM clause declares query identification variables that represent iteration over objects in the database. A query identification variable is similar to a variable of a Java enhanced for loop in a program, since both are used for iteration over objects. Range Variables Range variables

Paths and Types in JPQL and Criteria API

classes) are represented in JPQL by the following types of expressions: Variables - FROM identification variables and SELECT result variables . Parameters - when instances of these classes ... with an instance of a user defined class (represented by a variable , parameter or prefix path

JPA Query Structure (JPQL / Criteria)

declares one or more query variables (also known as identification variables ). Query variables are similar to loop variables in programming languages. Each query variable represents iteration over objects in the database. A query variable that is bound to an entity class is referred to as a range

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

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

Criteria Query From Elements

Variables The FROM clause  in JPA queries (as in SQL) defines the query variables . Query variables are represented in criteria queries by descendant interfaces of the From interface: Range variables (bound by an entity class) are represented by the Root subinterface: Join variables (bound by

WHERE clause (JPQL / Criteria API)

over all the Country objects in the database using the c range variable . Before passing these Country ... indexes are defined. WHERE Filter in Multi Variable Queries In a multi- variable query the FROM clause ... the WHERE clause are passed through to the SELECT. In multi- variable queries the number of tuples for iteration

DELETE Queries in JPA/JPQL

;     // no variable DELETE FROM Country c     // an optional variable DELETE FROM Country AS c  // AS + an optional variable ObjectDB supports using ... of SELECT queries. DELETE queries cannot include multiple variables and JOIN, and cannot include the GROUP

UPDATE SET Queries in JPA/JPQL

variable (with or without an explicit variable name) for iteration. Multiple variables and JOIN are not ... variable name - if defined). Multiple field update expressions, separated by commas, are also allowed

ORDER BY clause (JPQL / Criteria API)

currency, c.name AS name FROM Country c ORDER BY currency, name Alias variables are referred to as result variables to distinguish them from the identification variables that are defined in the FROM ... method takes a variable number of  Order instances as arguments (or a list of Order

GROUP BY and HAVING clauses

. Only identification variables and path expressions are currently supported in the GROUP BY clause by all the JPA ... a variable number of arguments specifying one or more grouping expressions (or a list of expressions in ... ; Expression argument and the other having form takes a variable number of Predicate  arguments

SELECT clause (JPQL / Criteria API)

variable in the FROM clause. Nested path expressions are also supported. For example, the following ... - multiselect , which takes a variable number of arguments representing multiple selections, and builds a 

JPA Persistable Types

no-arg constructor. cannot be final and cannot have final methods or final instance variables . ObjectDB ... are forbidden). Instance (non static) variables cannot be final, but classes and methods can be final

JPA Criteria API Queries

for representing the built query. Then a Root  instance is created to define a range variable in the FROM clause. Finally, the range variable , c , is also used in the SELECT clause as the query result

JPA Query Expressions (JPQL / Criteria)

/ Criteria Variables JPQL / Criteria Parameters JPQL / Criteria Literals Every query expression consists

JPA Queries

elements (representing range variables , join and fetch): Other criteria query expressions (for all the query clauses):

Obtaining a JPA Database Connection

by ObjectDB to be a database URL rather than a persistence unit name. The $objectdb variable

JPA Metamodel API

variables in the FROM clause: See the JPA Metamodel API page (in the ObjectDB manual) for more details and examples.

OEM Enhancer causing Jenkins job to freeze

.class$(Log4JLogger.java:55)     Local Variable : java.lang.String#20504 at org.apache ... .createLogFromClass(LogFactoryImpl.java:1081)     Local Variable : java.lang.String#20480     Local Variable : java.lang.Object[]#14005     Local Variable : sun.misc

OutOfMemoryError in a query with many variables

. Can you post the query? Does it have a large number of variables ( 20) ? support Support Hi, Yes ... doesn't handle well queries with a lot of variables , and complex navigation (e.g.  $1.postalAddresses.deliveryPoint.deliveryPointLocation.thoroughfare.name ) generates many variables

Weird issue with variable naming

hi, We've hit again against troubles with the variable naming when trying to get the query string ... us without ordering. The issue is that the name of the root variable is $1 as well as the name of our left join variable becomes $1. We're also adding a custom function expression in where clause

Query.declareVariables(variables) - JDO Method

JDO Method in javax.jdo.Query void declareVariables (   String  variables ) Declare the unbound variables to be used in the query. Variables might be used in the filter, and these variables must be declared with their type. The unbound variable declaration is a String containing

Concerning coding style of the example in the posting instructions

, package private instance variables are used and then accessed by external clients without accessors ... variables such as:     A a = new A();     a.list = new ... instance variables , which may correspond to Java- Beans properties. An instance variable

[ODB1] Chapter 7 - JDOQL Queries

can include other optional components, such as parameters, variables and import and order expressions ... all the elements that can be used in a JDOQL query filter, except for parameters and variables ... . This includes fields of parameter objects and variable objects (parameters and variables are discussed later

JPQL JOIN FETCH Error

with no variable (and maybe it is supported by Hibernate / HQL as an extension to JPQL). Try: SELECT doi ... may be related to this issue  (result of using many variables in the query, since every JOIN, including  JOIN FETCH defines a variable ). Until this issue is solved, try using no more than 10-15

Pre-detach loading: retrieval by navigation not working in if statement

; } } But this works, storing the test in a temporary variable : test = lz.getPresent().getValue() != null ... a variable that is eventually used OR just used for logging or output) [EDIT: confirmed using javap -c ... , but could not reproduce the problem. The following works WITHOUT storing the test in a temporary variable

Optimization of Map Queries

could do for shortening the query string? I guess there's no such thing as a "temporary" variable ... introducing a variable using JOIN that is bound to the expression could help (at least the method ... variable look like? And how to create it using criteria api? We do have heavy usage of maps so I'd

Post-compile enhancement fails when static Log4j 2.5 based logger used in Entity

a non-static logging variable holder can be used in an @Entity.     ObjectDB 2.6.3 ... ; } If I use that in an @Entity for a static logger variable : @Entity public class Element extends ... comment out that static LOGGER variable init line, the error vanishes and post-compile enhancement

An InternalException occurs when gets an result list

more information, including details about the query? The stack trace indicates an unexpected query variable . Are there non entity variables in the query or an entity class with no instances in the database ... is thrown during query compilation in checking the variable type. Could you please check if 

how to query by properties of onetomany relations? (Error 990)

a variable that will iterate over the collection elements. This specific query should be rewritten ... . Every navigation through collection is replaced internally by defining an implicit JOIN variable ... variable , so this should be taken into consideration (since the meaning of the above JPQL queries

Multiple joins did not return expected result

an error? The event variable is defined twice. You should use a unique name for every query variable ... )? There are more WHERE clauses which must be doubled if I use 2 variables . Thanks Markus doppelrittberger Markus Ritter

Exception on creation when running multithreaded

="1" prm="0" reg="1" variable ="$$owner" / [2011-08-09 01:51:47 #39 query.compiler] :1:notNull]))" eval="4.3054" var="1" prm="0" reg="1" :1:notNull])" eval="3.0043" var="1" prm="0" reg="1" variable

combined index not used

(a.objectsInCharge))" eval="4.9675" variable ="v$1" 3_3_0:notNull])) v$1:bound(a.objectsInCharge)" eval="2.9675" 3_3_0:notNull]))" eval="2.9675" variable ="a" 3_3_0:notNull])" eval="0.9675" variable ="a" / '(TC)'_1 ... :and((v$2.objectNameUpper='SETUP'),notNull)])" eval="0.991" variable ="v$2" / 3_3_0:notNull])) v$1:bound

Path.get(attributeName) - JPA Method

variables . For example: CriteriaQuery q = cb.createQuery(Person.class); Root p = q.from(Person.class

javax.persistence.Basic

JPA Annotation Basic Target: METHOD, FIELD Implemented Interfaces: Annotation The simplest type of mapping to a database column. The Basic annotation can be applied to a persistent property or instance variable of any of the following types: Java primitive types, wrappers of the primitive types

javax.persistence.criteria.From

order to avoid the use of Path variables . For example: CriteriaQuery q = cb.createQuery(Person.class

javax.persistence.criteria.Path

the get operation in order to avoid the use of Path variables . For example: CriteriaQuery q = cb

[ODB1] Chapter 8 - ObjectDB Server

are inherited except the name attribute. The $user variable (in the path attribute of $standard

[ODB1] Chapter 9 - ObjectDB Explorer

the candidate collection of the query. Optional JDOQL components, such as filter, parameters, variables

[ODB1] Chapter 5 - JDO Connections

on how to accomplish this. It is mainly a matter of style whether or not to use a separate variable

javax.jdo.Query

of instances, and the filter. There are optional elements: parameter declarations, variable declarations ... variables of a method setFilter and setOrdering correspond to the method body There are two namespaces ... , variables and parameters. The method setClass introduces the name of the candidate class in the type

Multiple MEMBER OF query

OF is implemented using JOIN with a new synthetic variable for iteration over the collection. In your query  item.label  appears twice,  but the same synthetic variable  for iterating over that collection is used for both occurrences, and that variable cannot match both sides

Issue with DISTINCT Select

any variable named $3!!! And even worse.. when debugging in eclipse which calls the .toString ... is again a full show stopper for us we cannot work around :(( thanks for fast help!! Alex quasado Alexander Adam $n variables are used for both: Explicit variables in criteria queries. Implicit variables that are generated as

JPQL support for Maps (JPA 2.0)

JPQL 2.0 introduces the ability define FROM variables for map keys and values. Currently ObjectDB supports FROM variables for collection elements. FROM variables for map keys and values are expected to be supported in future versions. support Support Any updates on this issue ? markminnoye Mark

Query.addSubquery(sub,variableDeclaration,candidateCollectionExpression,parameters) - JDO Method

the candidate class, filter, parameter declarations, variable declarations, imports, ordering ... of the variable containing the results of the subquery execution. If the same value of variableDeclaration ... variable . If the subquery parameter is null, the variable is unset, effectively making the variable named

Query.setFilter(filter) - JDO Method

to the candidate Class of the Query ; and for all variables there exists a value for which the filter ... if the filter expression returned false for the evaluation of the current set of variable values. Other values for variables might still qualify the candidate instance for inclusion in the result set

Query.executeWithArray(parameters) - JDO Method

. The filter, import, declared parameters, declared variables , and ordering statements are verified ... . The element passes the filter if there exist unique values for all variables for which the filter

Query.declareImports(imports) - JDO Method

JDO Method in javax.jdo.Query void declareImports (   String imports ) Set the import statements to be used to identify the fully qualified name of variables or parameters. Parameters and unbound variables might come from a different class from the candidate class, and the names

Query.addSubquery(sub,variableDeclaration,candidateCollectionExpression,parameter) - JDO Method

: sub - the subquery to add to this Query variableDeclaration - the name of the variable to be used

Query.addSubquery(sub,variableDeclaration,candidateCollectionExpression) - JDO Method

- the name of the variable in the outer query to bind the results of the subquery

Query.addSubquery(sub,variableDeclaration,candidateCollectionExpression,parameters) - JDO Method

- the name of the variable to be used in this Query candidateCollectionExpression - the candidate