Hide
Adding a method for easily getting all objects of a class. Suggestions for the templates:
SpringDao.vsl:
/**
* Loads all instances of $entity.fullyQualifiedEntityName from the persistent store.
*/
public java.util.List loadAll();
SpringHibernateDaoBase.vsl:
/**
* @see ${entity.fullyQualifiedDaoName}#loadAll()
*/
public java.util.List loadAll()
{
try
{
return this.getHibernateTemplate().loadAll(
${entity.fullyQualifiedEntityImplementationName}.class);
}
catch (org.springframework.orm.hibernate3.HibernateObjectRetrievalFailureException ex)
{
}
return null;
}