Home » Archive

Articles tagged with: hql

Written By: techieDan on June 1, 2010 2 Comments
Using DetachedCriteria get Result with another Table

How to use Hibernate’s DetachedCriteria to get result by using Join for a class. As of newest Hibernate, the type Expression is deprecated and that’s where Restrictions come into place. What’s the difference then by using HQL and Criterias?

Written By: techieDan on January 21, 2009 3 Comments

For those Java like programmers, they will be using pure SQL statements to get the whole of a table by typing the typical SQL query statement.

String SQL = “select * from tablename where condition = ?”;

From then onwards it can be passed to a POJO to be declared but everything has to be done one [...]

Tags: [, , ]
  Copyright © 2009 TechieDan, All rights reserved.| Powered by WordPress