<&_ if (fragment.extendsSection) { -&>
<% if (extendAbstractAuditingEntity) { %> extends AbstractAuditingEntity<<%= primaryKey.type %>, <%= persistClass %>><% } %>
<&_ } -&>
<&_ if (fragment.additionalInterfacesSection) { -&>
<%_
    const allRelationships = relationships.filter(relationship => (!relationship.embedded || relationship.otherEntity.embedded || relationship.ownerSide));
    const importOwner = allRelationships.some(relationship => relationship?.options?.source?.annotationOnSource?.includes('relateByIdEntity') && relationship.otherEntity && relationship.otherEntity.anyFieldIsOwner);
_%>
<%= (extendData || importOwner) && ormTool === 'hibernate' ? ', Owner' : ''%><%= commonField ? ', CommonField' : ''%>
<&_ } -&>
