Added Hibernate Annotations and changed customer resource