Details
-
Type:
New Feature
-
Status:
Closed
-
Priority:
Minor
-
Resolution: Fixed
-
Affects Version/s: 3.1-RC1
-
Fix Version/s: 3.1-RC1
-
Component/s: None
-
Labels:None
Description
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;
}
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;
}