Top "Hibernate-criteria" questions

The Criteria interface of Hibernate ORM , represents a query against a particular persistent class.

Why is criteria query deprecated in Hibernate 5?

As we already know, criterion query is deprecated in Hibernate 5. It was such a useful feature in the previous versions …

java hibernate hibernate-criteria
Mapping Java boolean to Oracle Number column with JPA and Hibernate

I have a property created like this in my model: public class Client { private Boolean active; } My RDBMS is Oracle …

java database oracle hibernate hibernate-criteria
How to pass value to sqlRestriction of hibernate?

I need to retrieve items based on a few different restrictions, one is to have code of 234 the other is …

mysql hibernate hibernate-criteria
Hibernate Criteria With Property Not In (Subquery)

I want to execute query something like Select id, name from information where name not in (select firstname from contact …

hibernate subquery hibernate-criteria
Pagination with Hibernate Criteria and DISTINCT_ROOT_ENTITY

I've have already implemented pagination using the following code: public Paginacao<Anuncio> consultarPaginado(int pagina, Integer cidadeId) { Criteria …

hibernate hibernate-criteria
Criteria subquery with not null

I want to convert the following subquery to use hibernate subquery: getCurrentSession().createQuery("from Employee where id in (select adminId …

hibernate hibernate-criteria detachedcriteria
Using Projections in JPA 2

I need to convert a Hibernate criteria query like the following curList = session.createCriteria(Islem.class) .createAlias("workingDay", "d") .setProjection(…

hibernate jpa-2.0 projection criteria-api hibernate-criteria
Hibernate Criteria Transformers.aliasToBean is not populating correct values

I am trying to create BO by joining my entity classes Criteria criteria = session.createCriteria(Report.class,"r"); criteria .createAlias("…

hibernate hibernate-criteria
How to order result of hibernate based on a specific order

I need to send a query to retrieve values that has a specific group of characters as following: Lets say …

java hibernate hibernate-criteria
Hibernate criteria with restrictions on children

I have a Hibernate criteria call that I want to execute in one SQL statement. What I'm trying to do …

java hibernate orm hibernate-criteria