Patterns, best practices, etc.


I was looking around here in the forum as well as on the internet and I couldn’t find an example of people using patterns like DAO, ServiceLocator, etc. I know one should use it as it is always used (since Vaadin knows nothing about these patterns), but it would be nice to have some complete examples of their usage.

For instance, I am having some difficulties on finding another approach of Hibernate setup. The only one I could find was this one:

Is this the only viable option? Are there any other setups that could be made?