|
From: Weinan L. <we...@re...> - 2012-10-21 08:43:11
|
--
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
>
>
|