|Unmarshalling through eclipselink moxy and jaxb [message #930509]
||Tue, 02 October 2012 11:38
| Mitesh Pandey
Registered: March 2012
I am trying to unmarshal a XML into a class whose design are as below
Class C Class D
The relationship between Class A and Class B is one to one bidirectional.
The relationship between Class B and Class C is many to one unidirectional
The relationship between Class B and Class D is many to one unidirectional
Class A is root element of my xml schema which is generated through schema gen.
While unmarshalling a xml file with this relaionship, it is giving an array out of bound exception.
But if I unmarshal a xml with only Class C or Class D, it is able to unmarshal it.
I think because of multiple many to one relationship in Class B, unmarshalling is trying to create every combination between Class C and Class D. But I am not very sure of my understanding.
Please suggest some solution
[Updated on: Tue, 02 October 2012 12:20]
Report message to a moderator
Powered by FUDForum
. Page generated in 0.01956 seconds