add pattern to create jpa annotated entities