Closed lancylot2004 closed 2 weeks ago
HI, I fail to understand what the Kotlin based SerializableListConverter
should do. I don't see any obvious issues in the domain model. Care to explain?
Sorry for the late reply!
SerializableListConverter
is intended to be a Neo4jPersistentPropertyConverter
for a List
of any arbitrary type which is Serializable
.
Some questions for clarification:
Is the exception Caused by: java.lang.IllegalStateException: Duplicate key T (attempted merging values java.util.List<? extends T> and class dev.active.data.classes.event.RuleSection)
the one that you get as the root cause for the stacktrace
The RuleSection
seems to be your productive version of ClassB
, right?
Could you point out where the problematic line is in your converter (line (number))?
What confuses me the most is that the exception reads like the converter wants to put something into a map, that I cannot see.
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.
Given the following data structures,
The following
Neo4jPersistentPropertyConverter
does not work:While the following, which is almost exactly the same as the implementations in
SerializableListConverter
above (exceptclazz
andclazz.serializer()
are no longer required), worksUsing the first method which does not work, when trying to access any data in the related node, I get
Caused by: java.lang.IllegalStateException: Duplicate key T (attempted merging values java.util.List<? extends T> and class dev.active.data.classes.event.RuleSection)
Which has a stack trace