We are preparing to move this Jira installation to codehaus. Please wait and don't use this version for some days.

The AndroMDA project

loadAll() method within DAO´s

Details

  • Type: New Feature New Feature
  • Status: Closed Closed
  • Priority: Minor 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;
}

Activity

There are no comments yet on this issue.

People

Vote (0)
Watch (0)

Dates

  • Created:
    15/Aug/05 1:00 PM
    Updated:
    13/Aug/11 10:26 AM
    Resolved:
    15/Aug/05 1:34 PM