Top "Criteria" questions

Mechanism typical to ORM frameworks that allows the creation of queries against a database in a dynamic and object-oriented fashion.

How do I take the "top n" using NHibernate Criteria API?

How do I take the "top n" using NHibernate Criteria API? Ideally I'd like to use detached criteria.

c# nhibernate criteria icriteria
Find elements in a collection where an element has a field which is a list and a given value must belong to the list

I would like to query the objects in my collection such as a given value must belong to the values …

spring mongodb criteria mongotemplate
"IllegalArgumentException occurred calling getter of" while running criteria with SINGLE_TABLE Inheritance strategy

I have this error while trying to list objects from database with hibernate Criteria decorated with simple Restrictions Criteria criteria = …

java hibernate criteria single-table-inheritance
Hibernate criteria group by date without time

This code give me a list of two items Datetime and count. But I need group it by date without …

java hibernate criteria date-formatting
JPA: Predicate and expression both in QueryCriteria where clause

I have a situation where in my where clause I have single predicate and expression. And both needs to be …

java jpa expression criteria predicate
How to join two tables on three conditions?

hope someone can figure out what I'm doing wrong here. The task seems quite simple, but is apparently beyond me. …

sql join criteria database-table
Tuple result Criteria API subquery

I am trying to use subqueries in an application I am writing using JPA 2.0 type-safe criteria API, with Hibernate 3.6.1.Final …

jpa subquery criteria jpa-2.0 criteria-api
Is there any easy way to convert Criteria to HQL?

I have posted a question few days ago about Querying on collections with the Criteria API and after all the …

.net asp.net nhibernate hql criteria
Do you like the Criteria api of JPA 2.0? Do you use it with framework?

I'm used to work with Criteria API in Hibernate, and just watched how the Criteria in JPA 2.0 work. What i …

java hibernate jpa criteria jpa-2.0
JPA CriteriaBuilder Subquery multiselect

I have a question about Subquery class in jpa. I need to create subquery with two custom field, but subquery …

java jpa criteria criteria-api