Hibernate configuration with simple examples