Raible's Wiki

Raible Designs
Wiki Home
News
Recent Changes

AppFuse

Homepage
  - Korean
  - Chinese
  - Italian
  - Japanese

QuickStart Guide
  - Chinese
  - French
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish
  - Japanese

User Guide
  - Korean
  - Chinese

Tutorials
  - Chinese
  - German
  - Italian
  - Korean
  - Portuguese
  - Spanish

FAQ
  - Korean

Latest Downloads

Other Applications

Struts Resume
Security Example
Struts Menu

Set your name in
UserPreferences


Referenced by
Articles
Articles_pt
CreateDAO_es
CreateDAO_pt
CreateDAO_sp
CreateDAOiBATIS
CreateManager
CreateManager_es
CreateManager_ko
CreateManager_zh
...and 3 more




JSPWiki v2.2.33

[RSS]


Hide Menu

CreateDAO


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.