Mysteriously, JAXB is throwing a JAXBException that says that some property "retainReferenceToInfo" is invalid. No where in my code does this appear, what's going on?
I'm trying to use jaxb and want to use the 'XmlAccessType.PROPERTY'
to let jaxb use getters/setters rather than variable directly, but get
different errors depending on what I try, or the variable
isn't ...
When I unmarshal an Xml node to a property, the setMyProperty is called.
The code of the property setter may raise an exception:what happens in this case?
The behaviour that I have ...
I have a class Product with the following properties: name, dateCreated, createdByUser, dateModified and modifiedByUser, and I'm using JAXB marshalling. I'd like to have output like this:
I am interested in not marshaling/unmarshaling the principal field of my A object. I have added XmlTransient in different places but it still seem to marshal it.
Any ideas?
Here is class ...
Is there a way to have jaxb create only a getter(no setter) for a class property generated from an element tag in the xsd file(i.e. an element of type xs:integer)? How ...