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 Criteria and multiple join

is possible with Hibernate criteria do it? select A.something, B.something, C.something, D.something from A JOIN B …

java hibernate join criteria
Hibernate criteria projection distinct

Hi i want to write a query using criteria : The following query has to be created using criteria: "Select Distinct(…

hibernate criteria
Cannot be cast to java.io.Serializable

I am currently using criteria to retrieve the details of a user, but when trying to query the details object …

java hibernate criteria
Hibernate query a foreign key field with ID

For example, I have two entities: Employee and Address. Of these enitities, Employee has a foreign key AddressID references the …

hibernate criteria
Using Hibernate's Criteria and Projections to Select Multiple Distinct Columns

Using Hibernate's Criteria, I want to execute the equivalent of: select distinct uspscity, state from citycomplete where USPSCITY = 'HOUSTON' I …

sql hibernate criteria distinct hibernate-criteria
How to return an entity with chosen columns using Criteria

I'm really new with Hibernate. I want a List<User> using hibernate criteria, but only with fields User …

hibernate criteria
Hibernate Criteria Order By

I have a table called Gift, which has a one-to-many relationship to a table called ClickThrough - which indicates how …

java hibernate criteria
(Lazy) LEFT OUTER JOIN using the Hibernate Criteria API

I want to perform a LEFT OUTER JOIN between two tables using the Criteria API. All I could find in …

hibernate criteria outer-join
JPA - FindByExample

Does anyone have a good example for how to do a findByExample in JPA that will work within a generic …

java jpa criteria dao
Hibernate Criteria: Left Outer Join with restrictions on both tables

I am doing a LEFT OUTER JOIN, but I am only able to apply Restrictions on the first table. Is …

hibernate join criteria hibernate-criteria