Examples of commonly used SQL queries implemented in Java using Hibernate 4