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 45 and version 44:

At line 216 changed 8 lines.
person = new Person();
person.setFirstName("Matt");
person.setLastName("Raible");
dao.savePerson(person);
person = dao.getPerson(person.getId());
log.info(person);
assertTrue(person.getFirstName() != null);
person = new Person();
person.setFirstName("Matt");
person.setLastName("Raible");
dao.savePerson(person);
assertNotNull(person.getId());
log.info(person);
assertEquals(person.getFirstName(), "Matt");
At line 246 removed 3 lines.
assertTrue(person.getFirstName().equals("Bill"));
assertTrue(person.getId() != null);
At line 247 added 3 lines.
assertEquals(person.getFirstName(), "Bill");
assertNotNull(person.getId());
At line 254 changed 1 line.
dao.removePerson(person);
dao.removePerson(person.getId());
assertNull(dao.getPerson(person.getId()));

Back to CreateDAO, or to the Page History.