Avoid invalid postConstruct/postDispose when entity type is not a leaf type
Avoid invalid postConstruct/postDispose when entity type is not a leaf type

icaughley/domgen,icaughley/domgen,realityforge/domgen,realityforge/domgen