Making @XmlTransient annotation just for serializing?

hehoha

New Member
I use Spring and Apache CXF for my project that implements java Web Services with first-code style.I have a variable as defined:\[code\]@XmlTransientpublic String word;\[/code\]So that variable doesn't map to an attribute at XML.However I want it to be ignored to mapping XML element at serialization but not at deserialization.How can I do that?
 
Back
Top