-
Someone hava an example code of how to use a session facade pattern with DAOs, i don´t want to use Entity beans so I use the DAO pattern, but I want an example of how to use the session facade pattern with DAOs, thanks
-
SessionBean method
public void addAuditTrial(AuditTrialDO ATDO) throws ...
{
...
UtilDAO utilDAO = DAOFactory.getUtilDAO(); //interface type returned.
utilDAO.storeAuditTrialData(ATDO);
...
...
}
And the impl class 'UtilDAOImpl' have this method storeAuditTrialData(ATDO). You could use normal JDBC or JDO/CMP to achive the persistance.
hope this helps.
-arun