Spring Cartridge

loadAll() method within DAO´s

Details

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

Chad Brandon made changes - 15/Aug/05 1:34 PM
Field Original Value New Value
Resolution Fixed [ 1 ]
Status Open [ 1 ] Closed [ 6 ]
Fix Version/s 3.1RC1 [ 10143 ]

People

Dates

  • Created:
    15/Aug/05 1:00 PM
    Updated:
    15/Aug/05 1:34 PM
    Resolved:
    15/Aug/05 1:34 PM