Monday, November 24, 2008

Serialization

Serialization is not just about implementing the java.io.Serializable interface, I learned. Thanks to this article pointed by my colleague, Ben. Hope it helps you too.

Retreiving Stored Objects Using Hibernate

This one is relatively simple. 
  1. Use org.springframework.orm.hibernate3.support.HibernateDaoSupport to manage data (add or retrieve)
  2. Refer to the official hibernate documentation to see how you can use Criteria to narrow your result set by clicking here
  3. use getSession() from HibernateDaoSupport to get the hibernate session and fire away using what you learned in step 2