Difference between
version 34
and
version 33:
At line 332 added 11 lines. |
/** |
* This class interacts with Hibernate's Session object to save and |
* retrieve Person objects. |
* |
* <p> |
* <a href="PersonDaoHibernate.java.html"><i>View Source</i></a> |
* </p> |
* |
* @author <a href="mailto:[email protected]">Matt Raible</a> |
* @version $Revision: 1.7 $ $Date: 2004/02/19 08:05:27 $ |
*/ |
At line 346 added 3 lines. |
/** |
* @see org.appfuse.persistence.PersonDao#getPerson(java.lang.Long) |
*/ |
At line 336 changed 1 line. |
Person t = (Person) getHibernateTemplate().get(Person.class, id); |
Person p = (Person) getHibernateTemplate().get(Person.class, id); |
At line 338 changed 1 line. |
if (t == null) { |
if (p == null) { |
At line 342 changed 1 line. |
return t; |
return p; |
At line 345 changed 2 lines. |
public void savePerson(Person template) throws DAOException { |
getHibernateTemplate().saveOrUpdate(template); |
/** |
* @see org.appfuse.persistence.PersonDao#savePersonorg.appfuse.model.Person |
*/ |
public void savePerson(Person person) throws DAOException { |
getHibernateTemplate().saveOrUpdate(person); |
At line 349 changed 2 lines. |
public void removePerson(Person template) throws DAOException { |
getHibernateTemplate().delete(template); |
/** |
* @see org.appfuse.persistence.PersonDao#removePersonorg.appfuse.model.Person |
*/ |
public void removePerson(Person person) throws DAOException { |
getHibernateTemplate().delete(person); |
Back to CreateDAO,
or to the Page History.
|