Hallo,
wir testen derzeit inwiefern sich OpenZ über die REST-Schnittstelle dazu eigenet unsere Produktionsprozesse abzubilden. Dabei schlagen allerdings alle Zugriffe fehl. Die Hibernate-Schicht meldet fehlende (null) Referenzen für not-null Felder.
Request<?xml version="1.0" encoding="UTF-8"?>
<ob:Openbravo xmlns:ob="http://www.openbravo.com">
<MaterialMgmtInternalConsumption identifier="API-Buchung neue Hardware2">
<client id="C726FEC915A54A0995C568555DA5BB3C" entity-name="ADClient" identifier="Tronteq Electronic"/>
<org id="6D1317234C0D45D78E83BA25A63BC9E7" entity-name="Organization" identifier="Tronteq Electronic"/>
<isActive>true</isActive>
<created>2016-06-28T22:00:00.000Z</created>
<createdBy transient="true" id="0" identifier="System">ADUser/0</createdBy>
<updated transient="true">2016-06-28T22:00:00.000Z</updated>
<updatedBy transient="true" id="DDAA21D11CB04D4D8EC59E39934B27FB" entity-name="ADUser" identifier="OpenZ-Wartungsuser"/>
<name>API-Buchung neue Hardware2</name>
<movementDate>2016-06-28T00:00:00.0Z</movementDate>
<posted>N</posted>
<processed>true</processed>
<processing>false</processing>
<copyfromprojecttask>false</copyfromprojecttask>
<movementtype>D+</movementtype>
<documentNo>10000004</documentNo>
<dateacct>2016-06-28T00:00:00.0Z</dateacct>
</MaterialMgmtInternalConsumption>
</ob:Openbravo>
Fehlermeldung<ob:error xmlns:ob="http://www.openbravo.com"><message>org.hibernate.PropertyValueException: not-null property references a null or transient value: MaterialMgmtInternalConsumption.createdBy
Caused by: not-null property references a null or transient value: MaterialMgmtInternalConsumption.createdBy</message></ob:error>
Der Inhalt des Elementes createdBy entspricht einem Eintrag in der Tabelle ADUser und ich bin auch über diesen User eingeloggt.
Grüße
Simon