This content has been marked as final.
Show 1 reply
-
1. Re: Resteasy Mapped annotation on class rather than service
young_matthewd Sep 10, 2009 1:53 AM (in response to young_matthewd)not a bug.....maybe just wishful thinking....
basically i have a carrier class mapped via Hibernate and holds a property mapped to an XML column (feature with DB2 9 and Oracle 10/11). that property in the xsd schema (which gets parsed by XJC into pojos) is marked as an "xs:any" element. when i run XJC i populate the generated classes with XmlRootElements and the resteasy Mapped/XmlNsMap so the JSON provider knows how to map namespaces. thought since the XmlNsMap was defined for every class that the provider would know what to do with the namespaces recursively. but the XmlNsMap has to be applied to the carrier class. then everything works fine.