if(mappingSyntaxStrategy.isPersistentEntity(superClass)) {
parentEntity = context.addPersistentEntity(superClass);
}
}
persistentProperties = mappingSyntaxStrategy.getPersistentProperties(this, context, mapping, includeIdentifiers());
<BUG>identity = resolveIdentifier();</BUG>
persistentPropertyNames = new ArrayList<>();
associations = new ArrayList();
boolean multiTenancyEnabled = isMultiTenant && context.getMultiTenancyMode() == MultiTenancySettings.MultiTenancyMode.DISCRIMINATOR;
for (PersistentProperty persistentProperty : persistentProperties) {
if(multiTenancyEnabled && persistentProperty instanceof TenantId) {
this.tenantId = (TenantId) persistentProperty;
<BUG>}
if (!(persistentProperty instanceof OneToMany)) {</BUG>
persistentPropertyNames.add(persistentProperty.getName());

if(mappingSyntaxStrategy.isPersistentEntity(superClass)) {
parentEntity = context.addPersistentEntity(superClass);
}
}
persistentProperties = mappingSyntaxStrategy.getPersistentProperties(this, context, mapping, includeIdentifiers());
persistentPropertyNames = new ArrayList<>();
associations = new ArrayList();
boolean multiTenancyEnabled = isMultiTenant && context.getMultiTenancyMode() == MultiTenancySettings.MultiTenancyMode.DISCRIMINATOR;
for (PersistentProperty persistentProperty : persistentProperties) {
if(multiTenancyEnabled && persistentProperty instanceof TenantId) {
this.tenantId = (TenantId) persistentProperty;
