I'm attempting to implement 'HibernateUtil', which is often a class with a number of static methods (random example from the web:
http://www.opnworks.com/opentime/api/com/opnworks/timesheet/persistence/HibernateUtil.html), as an object, which will be managed by the application. Then pages should be able to simply make requests of the application for the necessary dependencies for the domain to do its job. I'm wondering how/appropriate way/whether one should use a DataApplication as a container? I'm attempting to use the DAO pattern, the implementation of which is described here (
https://www.hibernate.org/328.html), as I'm trying to achieve the following (
http://nils.kilden-pedersen.net/DAO_pattern/InnerClassStrategy.html) in order to keep my models, and DAOs very 'pure' as prescribed by SOLID (
http://butunclebob.com/ArticleS.UncleBob.PrinciplesOfOod) and being exceptionally aggressive about testability.