Add deployment error message for ManyToMany with one of the related beans missing an @Id property

This commit is contained in:
Rob Bygrave
2024-03-03 14:14:23 +13:00
parent 351a1c4739
commit 334793667e
@@ -379,6 +379,9 @@ public class BeanPropertyAssocMany<T> extends BeanPropertyAssoc<T> implements ST
for (ExportedProperty exportedProperty : exportedProperties) {
row.addColumn(exportedProperty.getForeignDbColumn());
}
if (importedId == null) {
throw new PersistenceException("Missing @Id property on bean related to ManyToMany " + fullName());
}
importedId.buildImport(row);
return row.build();
}