fasterxml - JAXB Class - XML not getting created as expected -


I am using the fast XML-JEXAB (2.3) module to create an XML, but it seems that XMLN is not reading annotation while creating XML. I have a prefix given below in my package-info

  @ javax.xml.bind.annotation.XmlN (prefix = "bla" .....  
"Itemprop =" text ">

Jackson does not use package annotation for some, so when JAXB annotations are supported (when using the JAXB annotation module), no Annotation is not read from package-info.java . The module is based on legacy (you can add all the annotations to super-classes, and they are visible to the sub-type).

You can add a mix-annotation (or regular annotation) to the superclass, and it will work.


Comments

Popular posts from this blog

java - org.apache.http.ProtocolException: Target host is not specified -

Powerbuilder 12.1 and DataWindow in Design vs Debug and Executable/Runtime -

css3 - HTML Block Anchor element only half clickable in Chrome -