ObjectDB Database Search

1-50 of 91 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 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

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

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 the java.lang.Object  class in queries (as an extension to JPA ... to the structure of SELECT queries. DELETE queries cannot include multiple variables and JOIN

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.

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

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

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

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

Query all objects that implements a given interface - is that possible?

variable ('bk') of type Signals.Signal_Interface (error 737) at com.objectdb.jpa.JpaQuery ... unbound variable ('bk') of type Signals.Signal_Interface EKK Emmanuel Keskes Try:    

TypedQuery implementation problems

have tried to make a new module, it does not work, it indicates that the variables have not been declared ... , budget.budgetCode, budget.name, "//where the issues start, the variables are not defined

ODB with Netbeans

time errors "Instance variable for persistent attribute must not be public" How does one switch ... ObjectDB . "Instance variable for a persistent attribute must not be public." This is another JPA

On ensuring ID available after persist

); // then do something that relies on Java variable e having e.getId() defined (like wiring ... entity wiring code assumed that the Java variable passed to persist becomes endowed with an id (the same

Clarification on free license restrictions

an instance variable of class Person, which in turn has a user defined instance variable of type Name

Externalising persistence.xml properties in Glassfish?

get that to your ejb. That is the easiest solution.  Another way might be by setting a system variable ... string variable name PERSISTANCEUNIT with the property value. In your persistance.xml define

Type ... is not defined as an entity (@Entity is missing) (error 302)

projects to use objectdb. I tried placing objectdb as a variable and then all projects refer to this variable but then this does not work.   The only solution it seems is to: 1. Package objectdb as

Can a Set be a foreign key?

I have two classes, Cell and Character.  Basically, the cell is like a room, and contains a variable (private Set cellHeldCharacters;) which holds the IDs of the characters within the cell (The IDs are Primary Keys).  Can I use the Foreign Key annotation for the variable , or

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

AnnotationRef jakarta.persistence.Basic

JPA Annotation Basic Target: METHOD, FIELD Implemented Interfaces: Annotation The simplest type of mapping of a persistent field or property to a single database column. The Basic annotation may be applied to a property or instance variable whose type is any one of the following: a Java primitive

InterfaceRef jakarta.persistence.criteria.From

to specify the type resulting from the get operation in order to avoid the use of Path variables

InterfaceRef jakarta.persistence.criteria.Path

the type resulting from the get operation in order to avoid the use of Path variables . For example

AnnotationRef jakarta.persistence.Embeddable

with no parameters, unless it is a record type, and have no final methods or persistent instance variables

AnnotationRef jakarta.persistence.Entity

persistent instance variables . An enum, record, or interface may not be designated as an entity

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

queries under 2.7.6_4 significantly slower than under 2.7.6

;         '(OP)':notNull]))" eval="8.4168" variable ="o"                 '(OP)':notNull])" eval="6.4168" variable ="o" /        

@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

ObjectDB 2.4.0

Added support of entity collections as query parameters. Added support of running ObjectDB within Eclipse 3.7 wrapper jar . Added support of sharing an identifier name for a variable and a parameter ... indexes . Improved processing of queries with a large number of variables ( issue #607 ). Improved