EntityModule
only keeps @iot.id
of nested entities after JSON serialization
#133
Labels
EntityModule
only keeps @iot.id
of nested entities after JSON serialization
#133
Currently, it is not clear enough how the
EntityModule
intends to serialize entities.FROST-Client/src/main/java/de/fraunhofer/iosb/ilt/sta/jackson/EntitySerializer.java
Line 58 in 2ff4182
FROST-Client/src/main/java/de/fraunhofer/iosb/ilt/sta/jackson/EntitySerializer.java
Line 80 in 2ff4182
Due to the above lines, prepopulated fields of subentities are thrown away. I would like to know the reasoning for this design decision to further understand if this is intended behaviour or not. In our use case, we would like to serialize/deserialize a
Thing
including itsDatastream
s andLocation
s. However, the fields ofDatastream
s andLocation
s that were populated by anExpand
query are thrown away during JSON serialization. Could you maybe elaborate a bit on the above, and point me into the right direction on how I can serialize the subentities without losing their populated fields and not having to perform separate fetch queries?The text was updated successfully, but these errors were encountered: