Error nesting List object [message #1793154] |
Tue, 31 July 2018 17:18 |
Abdulhakeem AbdulAleem Messages: 1 Registered: July 2018 |
Junior Member |
|
|
I'm facing difficulty on nested pojo data set. My data structure is as follows
class StudentResult {
String id;
List<Subject> subjects
List<Trait> traits
}
passing this structure to birt report throws this error
org.eclipse.datatools.connectivity.oda.OdaException: Exists two 1-to-n maps where one is not transitional from the other.
at org.eclipse.birt.data.oda.pojo.impl.internal.ResultSetFromPojoInstance.pushNextableRelayReferenceNode(ResultSetFromPojoInstance.java:194)
at org.eclipse.birt.data.oda.pojo.impl.internal.ResultSetFromPojoInstance.fetchRelayReferenceNodeValue(ResultSetFromPojoInstance.java:141)
at org.eclipse.birt.data.oda.pojo.impl.internal.ResultSetFromPojoInstance.fetchReferenceValues(ResultSetFromPojoInstance.java:115)
at org.eclipse.birt.data.oda.pojo.impl.internal.ResultSetFromPojoInstance.<init>(ResultSetFromPojoInstance.java:51) ...
IF i delete one of the list object the report will be generated but once i try to add and access the second list object then i get the above error.
Pls can anyone point me to how i can resolve this problem. I have search but with no avail.
Or how i can write a script to fix this
|
|
|
Powered by
FUDForum. Page generated in 0.03179 seconds