Hide Forgot
Atm it is impossible to create a WorkingTranslatedSnapshotData entity due to a recursion error. When you attempt to update a SnapshotTopic to include the Working Translation Data you get a massive error log (see attached). This is caused by the JSON mapper attempting to first marshal the SnapshotTopic into JSON, then the WorkingTranslatedSnapshotData which includes the SnapshotTopic object. As such it then attempts to marshal the SnapshotTopic again in an infinite loop until an exception is eventually thrown.
Created attachment 559530 [details] Server Error Log
Created attachment 559532 [details] Test Case Adding a Test Case to display the problem.
With the way the classes are set up I can't stop recursive references like this in the client code. But the "explicit" methods for setting the "One" property of the "Many" entity in the One-To-Many relationships (like the WorkingSnapshotTranslatedDataV1.setSnapshotTopicExplicit() method) have been removed. When creating new "Many" entities the REST interface will set the appropriate "One" properties. It is also now possible to create the "One" entity and populate the "Many" entities collection in one call to the create REST function. See the attached test case for an example.
Created attachment 559571 [details] An example of creating a "One" entity with a collection of "Many" entities in one REST call