Java/Hibernate programming example.