Editing hibernate.cfg.xml and JPA Annotations for POJOs
This CBT tutorial codes a very simple POJO class called User, and then uses Hibernate, JPA annotations, and the SchemaExport class to have Hibernate create the underlying database needed to support the persistence of the domain model.