You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is expected that the Set field of the POJO will be properly constructed from the "stars" collection using a lookup of the IDs in the "stars" array in the "starSystem" document.
Actual Behaviour
Instead, there's an 500 error. StarSystem can not be deserialized:
Caused by: io.micronaut.serde.exceptions.SerdeException: Unexpected token NUMBER, expected START_OBJECT
at
at io.micronaut.serde.bson.BsonReaderDecoder.createDeserializationException(BsonReaderDecoder.java:312)
Steps To Reproduce
Create Parent and Child POJOs.
Create Mongo documents.
Attempt to read POJOs.
Environment Information
-JDK 21; not using any experimental features.
Example Application
No response
Version
4.4.4
The text was updated successfully, but these errors were encountered:
Expected Behavior
Relationship defined in the parent POJO:
Inverse relationship defined in the child POJO:
MongoDB document, as described in https://www.mongodb.com/docs/manual/tutorial/model-referenced-one-to-many-relationships-between-documents/#std-label-data-modeling-publisher-and-books. (There's no unbounded array issue as stars in a star system maxes out at 3.) IDs are Int32s.
It is expected that the Set field of the POJO will be properly constructed from the "stars" collection using a lookup of the IDs in the "stars" array in the "starSystem" document.
Actual Behaviour
Instead, there's an 500 error. StarSystem can not be deserialized:
Steps To Reproduce
Environment Information
-JDK 21; not using any experimental features.
Example Application
No response
Version
4.4.4
The text was updated successfully, but these errors were encountered: