Home » Archive

Articles tagged with: hibernate

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 December 17, 2009 3 Comments
Hibernate Error : exception setting property value

Been playing around with Hibernate and mapping classes with Java. A reason why Hibernate is useful is so to facilitate users to stop writing pure SQL for queries and reduce code redundancy. A slight note, Hibernate also works well with the .NET platform.

Though there was this error which TechieDan experienced

org.springframework.orm.hibernate3.HibernateSystemException: [...]

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