Hibernate 4, working configuration