| At line 304 changed 1 line. |
| public Person getPerson(Long personId) throws DAOException; |
| public Person getPerson(Long personId); |
| At line 306 changed 1 line. |
| public void savePerson(Person Person) throws DAOException; |
| public void savePerson(Person Person); |
| At line 308 changed 1 line. |
| public void removePerson(Person Person) throws DAOException; |
| public void removePerson(Long personId); |
| At line 344 added 1 line. |
|
| At line 346 changed 5 lines. |
| /** |
| * @see org.appfuse.persistence.PersonDao#getPerson(java.lang.Long) |
| */ |
| public Person getPerson(Long id) throws DAOException { |
| Person p = (Person) getHibernateTemplate().get(Person.class, id); |
| public List getPeople() { |
| return getHibernateTemplate().find("from Person"); |
| } |
| At line 352 changed 5 lines. |
| if (p == null) { |
| throw new DAOException("No Person found with Id '" + id + "'"); |
| } |
|
| return p; |
| public Person getPerson(Long id) { |
| return (Person) getHibernateTemplate().get(Person.class, id); |
| At line 359 changed 4 lines. |
| /** |
| * @see org.appfuse.persistence.PersonDao#savePersonorg.appfuse.model.Person |
| */ |
| public void savePerson(Person person) throws DAOException { |
| public void savePerson(Object person) { |
| At line 366 changed 4 lines. |
| /** |
| * @see org.appfuse.persistence.PersonDao#removePersonorg.appfuse.model.Person |
| */ |
| public void removePerson(Person person) throws DAOException { |
| public void removePerson(Long id) { |
| Object person = getHibernateTemplate().load(Person.class, id); |
| At line 372 removed 1 line. |
| } |