Generate entity with fields