“What is your favourite design pattern?” Question asked in a job interview.
WTF question is that?
“Hmmm… my favourite design pattern is Salami pattern – approaching to the finish line slice by slice.”
– From Antidisestablishmentarianism I.T.
In my previous blog - Spring 3 shacks up JSF 2, the maverick way, demonstrating how JSF 2 a component, event driven framework as the presentation layer, and Spring 3, Spring MVC 3 work in middleware. Well, technology keeps evolving. Hopefully even pigs could programe one day. This time, Hibernate 4 is added as the persistence layer. Now, we have end-to-end, a “traditional” three tiers web application. Moreover, an unit test to test business logic layer, the most important, runs outside of container.
Firstly, files and directories structure:
The backend database is Oracle’s example of Human Resources (HR) application for a fictitious company (check the reference at the end of the blog).
» Read more: JSF 2, Spring 3, Spring MVC 3, Hibernate 4, Tomcat 7 – a lightweight approach
