@Test public void testUpdatePartnership() throws DAOException{ SFRMPartnershipDSDAO dao = super.getTestingTarget(); SFRMPartnershipDVO dvo = dao.findPartnershipById("test1"); dvo.setDescription("test1 description updated"); Assert.assertTrue("Partnership updated not successful", dao.persist(dvo)); SFRMPartnershipDVO updated_dvo = dao.findPartnershipById("test1"); Assert.assertEquals("Description field for partnership wasn't updated", "test1 description updated", updated_dvo.getDescription()); }
public SFRMPartnershipDVO findPartnershipById (SFRMPartnershipDVO partnershipDVO) throws DAOException{ if (partnershipDVO == null) return null; return this.findPartnershipById(partnershipDVO.getPartnershipId()); }
SFRMPartnershipDSDAO extends DataSourceDAO implements
		SFRMPartnershipDAO { public SFRMPartnershipDVO findPartnershipById (SFRMPartnershipDVO partnershipDVO) throws DAOException{ if (partnershipDVO == null) return null; return this.findPartnershipById(partnershipDVO.getPartnershipId()); } }
SFRMPartnershipDSDAO extends DataSourceDAO implements
		SFRMPartnershipDAO { public SFRMPartnershipDVO findPartnershipById (SFRMPartnershipDVO partnershipDVO) throws DAOException{ if (partnershipDVO == null) return null; return this.findPartnershipById(partnershipDVO.getPartnershipId()); } SFRMPartnershipDSDAO(); }
SFRMPartnershipDSDAO extends DataSourceDAO implements
		SFRMPartnershipDAO { public SFRMPartnershipDVO findPartnershipById (SFRMPartnershipDVO partnershipDVO) throws DAOException{ if (partnershipDVO == null) return null; return this.findPartnershipById(partnershipDVO.getPartnershipId()); } SFRMPartnershipDSDAO(); DVO createDVO(); SFRMPartnershipDVO findPartnershipBySeq(SFRMPartnershipDVO partnershipDVO); SFRMPartnershipDVO findPartnershipBySeq(int partnershipId); SFRMPartnershipDVO findPartnershipById(SFRMPartnershipDVO partnershipDVO); SFRMPartnershipDVO findPartnershipById(String partnershipId); List findAllPartnerships(); }
SFRMPartnershipDSDAO extends DataSourceDAO implements
		SFRMPartnershipDAO { public SFRMPartnershipDVO findPartnershipById (SFRMPartnershipDVO partnershipDVO) throws DAOException{ if (partnershipDVO == null) return null; return this.findPartnershipById(partnershipDVO.getPartnershipId()); } SFRMPartnershipDSDAO(); DVO createDVO(); SFRMPartnershipDVO findPartnershipBySeq(SFRMPartnershipDVO partnershipDVO); SFRMPartnershipDVO findPartnershipBySeq(int partnershipId); SFRMPartnershipDVO findPartnershipById(SFRMPartnershipDVO partnershipDVO); SFRMPartnershipDVO findPartnershipById(String partnershipId); List findAllPartnerships();  }