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 47 and version 46:

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.
}

Back to CreateDAO, or to the Page History.