[jboss-user] [JBoss Web Services Users] - Re: Resteasy Mapped annotation on class rather than service

young_matthewd do-not-reply at jboss.com
Thu Sep 10 01:53:05 EDT 2009


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.

View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4254317#4254317

Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4254317



More information about the jboss-user mailing list