Top "Criteria" questions

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

Hibernate, getting duplicate values

I am writing a very simple query, but I am getting duplicate values for some reason. Criteria cr = session.createCriteria(…

java hibernate criteria jbpm hibernate-criteria
Grails: Projection on many tables?

I have some problems with projection in Grails. Could you please help me review them and suggest solutions for me? …

grails criteria gorm projection
Jpa QueryBuilder Multiple expressions in where clause not working

I am having an issue with creating queries with javax.persistence.criteria.CriteriaBuilder. I am using EclipseLink 2.1 and an Oracle 10…

criteria jpa-2.0 eclipselink query-builder
Search multiple fields access using findfirst criteria in VBA

The following code is populating values on a form after it finds a match in a Mobile phone records table, …

vba ms-access-2010 criteria findfirst
JPA Criteria: Convert int to String then select from substring of resulting String

I have a String as parameter (which is in fact a valueOf(an Integer) and want to compare it to …

java hibernate jpa criteria criteria-api
Count of the result of a Hibernate Criteria group by - total grouped records returned

I have a Criteria-based query with the following grouping: Projections.projectionList() .add(Property.forName("xyz").group())); The SQL generated is (…

hibernate count group-by criteria scrollableresults
Querying on Collection with Nhibernate Criteria Api?

I have an "Estate" entity, and this entity has a collection "EstateFeatures"(type:EstateFeature) and EstateFeature has a property "MyFeatureValue". …

c# .net nhibernate criteria icriteria
When to use the select clause in the JPA criteria API?

Without using CriteriaQuery#select() : public List<Address> getAddressOfManager(String designation, String name, String orderByColumn) { Boolean ascending = false; CriteriaBuilder …

hibernate jpa criteria criteria-api
In scrum, is changing acceptance criteria during a sprint OK?

My organization is currently implementing Scrum. While working on a product backlog item to change the way some business logic …

agile criteria scrum sprint acceptance
Hibernate -- Criteria vs named query

I'm trying to compare Hibernate Criteria to named queries for performance. i'm aware it all depends on the actual query …

hibernate orm criteria named-query