Example working with Hibernate, JPA and Derby.