Closed RKrahl closed 7 months ago
For creating a new instance of an entity, the id
field should be null
because it is auto-generated. This appears to be the logic in the code: https://github.com/icatproject/icat.server/blob/6053c5863b099fe49f2945c5081d4b20d48b2f7d/src/main/java/org/icatproject/core/manager/EntityInfoHandler.java#L440
Yes, I guess, you are right. Happy to close as invalid
.
The
getEntityInfo
call at the SOAP interface provides information on the entity classes and their attributes. python-icat heavily relies on that information. Now I noticed that theid
attribute is wrongly declared as nullable for all entity classes:But obviuosly, the
id
attribute must be not nullable. This is confirmed by checking the SQL database: