Criteria « MySQL « JPA Q&A





1. Hibernate Criteria - Novice Question II    stackoverflow.com

What is the best way to add some sql to the select part of a Criteria object? (I want to add SELECT myFunction AS distance so that I can later order ...

2. hibernate criteria putting a contains / does not contain restriction on a set of elements    stackoverflow.com

Hi I'm trying to migrate my old sql based query framework to be Hibernate Criteria based, currently I'm using Hibernate version 3.2. and mysql v 5.0.54 My question is I want to ...

3. Hibernate & MySQL: Create a NOT IN restriction using the Criteria API    stackoverflow.com

I am using Hibernate connected to MySQL and I want to create a restriction using the Hibernate Criteria API to filter records where the id is not in a list. The documented ...

4. MySql function with hibernate criteria    forum.hibernate.org

Hi All, I'm using MySQL, I have a table in which one column is of time type and I have a requirement to find out the sum of that column. The problem is column is of time type and if i am using sum method of projections then the result is not correct. The following query returns the desired result: SELECT ...