added a call to parent constructor if entity has supertype