Professional Documents
Culture Documents
---
Application Architecture
~~~~~~~~~~~~~~~~~~~~~~~~~
Account Controller <---> Account Service <---> Account DAO <--->Database
Scenario
Session currentSession=SessionFactory.getCurrentSession();
currentSession.save(theAccount);
code snippets
~~~~~~~~~~~~~
public void addAccount(Account theAccount, String userId){
Session currentSession=SessionFactory.getCurrentSession();
currentSession.save(theAccount);
Now you can think of there are 3 layers in your application and all layers needs
to loggingand security
eg