private boolean superTypeHasEntityFields(EntityType model) {
        Supertype superType = model.getSuperType();
        return null != superType && null != superType.getEntityType()
                && superType.getEntityType().hasEntityFields();
    }
Create a new {@code EntitySerializer} instance

@param mappings type mappings to be used
@param keywords keywords to be used
querydsl-codegen/src/main/java/com/querydsl/codegen/DefaultEntitySerializer.java