|
From: Weinan L. <we...@re...> - 2012-10-22 13:15:33
|
Haven't looked this before. I'll check it soon. Let me find if we could have some work around in RESTEasy for your issue firstly. -- Weinan Li JBoss, Red Hat On Monday, October 22, 2012 at 9:15 PM, Michael Pasternak wrote: > > do you familiar with this? > > https://bugzilla.redhat.com/show_bug.cgi?id=857137 > > On 10/22/2012 03:10 PM, Weinan Li wrote: > > Thanks for this important information Michael :-) As Jackson is working on this, seems we could wait upstream to provide the function so RESTEasy could use it later. Seems > > not much I can do here, if there are any other issues need help please send email to us. > > -- > > Weinan Li > > JBoss, Red Hat > > > > On Monday, October 22, 2012 at 8:12 PM, Michael Pasternak wrote: > > > > > > > > > > > I see that some work already has been done on this, > > > > > > http://wiki.fasterxml.com/JacksonJAXBAnnotations > > > http://jira.codehaus.org/browse/JACKSON-119?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel > > > > > > On 10/21/2012 10:42 AM, Weinan Li wrote: > > > > > > > > > > > > -- > > > > Weinan Li > > > > JBoss, Red Hat > > > > > > > > On Sunday, October 21, 2012 at 4:41 PM, Michael Pasternak wrote: > > > > > > > > > > > > > > Hi Weinan, > > > > > > > > > > On 10/21/2012 10:23 AM, Weinan Li wrote: > > > > > > Hi Michael, > > > > > > > > > > > > Could you please provide more details on your requirements? > > > > > > > > > > We model our api in the xsd, then generating java code from it, > > > > > the problem is when we create java from the schema, jaxb using java naming > > > > > convention when creating fields, but applying @XmlElement annotations to > > > > > preserve the original names, later when: > > > > > > > > > > - xml generated, it uses @XmlElement annotation names > > > > > - when json generated it uses field names > > > > > > > > > > what is creating naming inconsistency between xml and json representations. > > > > > > > > > > <dependency> > > > > > <groupId>org.jboss.resteasy</groupId> > > > > > <artifactId>resteasy-jackson-provider</artifactId> > > > > > <version>${resteasy.version}</version> > > > > > > > > > > > > > > > > > Think I understand your meaning this time :-) I'll try it and give you feedback soon. > > > > > > > > > > > > > > > <resteasy.version>2.3.2.Final</resteasy.version> > > > > > <maven-jaxb22-plugin.version>0.8.1</maven-jaxb22-plugin.version> > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > Weinan Li > > > > > > JBoss, Red Hat > > > > > > > > > > > > On Sunday, October 21, 2012 at 3:47 PM, Michael Pasternak wrote: > > > > > > > > > > > > > > > > > > > > Hi, > > > > > > > > > > > > > > Is there any way making jackson-provider using @XmlElement names > > > > > > > rather than field's? > > > > > > > > > > > > > > -- > > > > > > > > > > > > > > Michael Pasternak > > > > > > > RedHat, ENG-Virtualization R&D > > > > > > > > > > > > > > ------------------------------------------------------------------------------ > > > > > > > Everyone hates slow websites. So do we. > > > > > > > Make your web apps faster with AppDynamics > > > > > > > Download AppDynamics Lite for free today: > > > > > > > http://p.sf.net/sfu/appdyn_sfd2d_oct > > > > > > > _______________________________________________ > > > > > > > Resteasy-developers mailing list > > > > > > > Res...@li... <mailto:Res...@li...> > > > > > > > https://lists.sourceforge.net/lists/listinfo/resteasy-developers > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > > > > > Michael Pasternak > > > > > RedHat, ENG-Virtualization R&D > > > > > > > > > > > > > > > > > > > > > > > > > -- > > > > > > Michael Pasternak > > > RedHat, ENG-Virtualization R&D > > > > > > > > > > > -- > > Michael Pasternak > RedHat, ENG-Virtualization R&D > > |