About @Query

api-jpa

javax.persistence.criteria.AbstractQuery

The AbstractQuery interface defines functionality that is common to both top-level queries and subqueries.(Interface of JPA)

 
forum_thread

JPA query of a Set of terms

Hi, Is it possible to write a JPA query to select objects that contain a collection of elements? For example, suppose I have a table that maps a search terms to pages: @Entity public class SearchIndex { @Index SearchTerm term; @Index Page page; } Now suppose I have an array of SearchTerm objects. ie. #1 2011-02-24 18:43 Hi, Is it possible to write a JPA query to select objects that contain a collection of elements? ...

 
release

2.3.6

Release date: 2012-01-09 Download (5.38 MB) Binary:  objectdb-2.3.6.zip You should start by following a  tutorial or reading the manual ...

 
release

2.3.0

Release date: 2011-09-21 Download (5.32 MB) Binary:  objectdb-2.3.0.zip You should start by following a  tutorial or reading the manual ...

 
release

2.3.5

Release date: 2011-12-21 Download (5.38 MB) Binary:  objectdb-2.3.5.zip You should start by following a  tutorial or reading the manual ...

 
release

2.3.7

Release date: 2012-02-06 Download (5.38 MB) Binary:  objectdb-2.3.7.zip You should start by following a  tutorial or reading the manual ...

 
forum_thread

Query becomes slower on moving from ObjectDB 1.x to ObjectDB 2.x

Hi, I upgraded the odb file using converter.jar which is having 15943 entry. Previously, with object 1.x, the same query was getting executed within an seconds and now the same is taking around 40 seconds in object db 2.x I have build the query using the follwoing Query query = persistanceManager.newQuery("LogEntryAttrebuteImpl.calss", "typeIndexes.contains(this.type) && logEntryIdList.contains(this.logEntryId)"); #1 2012-09-07 15:06 Hi, I upgraded the odb file using converter.jar which is having 15943 entry. Previously, with object 1.x, ...

 
forum_thread

Entity has be persistended,but query not fetched?

I create a new entity T newT and persistend it,then I create a query "select t from T t" to fetch all T entities.But  then the newT is not contain in the query result. Why? #1 2011-04-24 01:51 I create a new entity T newT and persistend it,then I create a query "select t from T t" to fetch all T entities. ...

 
api-jpa

getSingleResult()

Execute a SELECT query that returns a single untyped result.(Method of javax.persistence.Query)

 
api-jdo

javax.jdo.annotations.Query

Annotation for a named query.(Annotation of JDO)