About Criteria API

issue

ArrayIndexOutOfBounds with Critera API and function call

Hello, This is getting really frustrating sorry but we're close before delivering our app to our customer and went against a show-stopper again. We're building a simple query with the criteria api. What we have is something like (pseudo code) ... again. We're building a simple query with the criteria api. What we have is something like (pseudo code) class TestEntity ...

 
forum_thread

Threading Problem (maybe with Criteria)

Hi all I found some threading problems I do not understand: here is the the link to the testcase http://www.advolux.de/weblink%20forum/test.zip ... the test opens the Database, start some queries with criteria in several threads (maybe 10) and close the Database. Each thread ... class ) ; instead of Criteria API CriteriaBuilder cbuilder = manager. getCriteriaBuilder ...

 
forum_thread

Multi selection and distinct in a criteria query

hi, How can I realize multi selection with the criteria api concerning distinct? I.e. doing something like SELECT DISTINCT $1, $2 wouldn't work because I do only have something like criteria.multiselect(...) and nothing like builder.distinct(selection) so that I could do something like criteria.multiselect(builder.distinct($1), $2)... ?? Alex ... hi, How can I realize multi selection with the criteria api concerning distinct? I.e. doing something like SELECT DISTINCT ...

 
forum_thread

Criteria query error: Unexpected query token

Using JPA2, I can save entities now in JBoss, and also fetch them uniquely by id. However, if I try to fetch it by getting back all instances (e.g. findAll, I get the following error:   ... glaringly wrong with my code I'm failing to see? Or is Criteria a W.I.P?   Cheers ... be valid in Hibernate HQL but not in JPQL and JPA Criteria API. ObjectDB Support ObjectDB - Fast Object ...

 
api-jpa

javax.persistence.criteria.CriteriaBuilder

Used to construct criteria queries, compound selections, expressions, predicates, orderings.(Interface of JPA)

 
api-jpa

javax.persistence.criteria.CriteriaQuery

The CriteriaQuery interface defines functionality that is specific to top-level queries.(Interface of JPA)

 
issue

JPA Metamodel (JPA 2.0)

The JPA Metamodel API enables examining the classes, fields and properties of the persistent object model, similarly to the Java reflection API. The JPA Metamodel API has a major role in defining queries using the JPA Criteria API.... The JPA Metamodel JPA Metamodel API Reference (JavaDoc) of the JPA Metamodel API, including all the type ... API has a major role in defining queries using the JPA Criteria API. ObjectDB Support ObjectDB - Fast ...

 
release

2.2.9

... Fixed a bug in using LIKE in AND/OR in criteria queries . Fixed a bug in AND/OR grouping in criteria ... JOIN FETCH with DISTINCT. Fixed Metamodel API's getTypeId  method to support single ID field . ...

 
release

2.5.4

... conflict (missing synchronization) in the JPA metamodel API. Fixed implementation of casting ( as ) in criteria queries. Version 2.5.2 Added automatic ...

 
release

2.5.3

... conflict (missing synchronization) in the JPA metamodel API. Fixed implementation of casting ( as ) in criteria queries. Version 2.5.2 Added automatic ...