Adding @XmlTransient on the internal field should work for you.
On Tue, Dec 28, 2010 at 3:34 PM, cj91 <[email protected]>wrote:
>
> We're creating an external ('customer') version of a webservice for a
> customer. The 'internal' version is actually an remote EJB. The DTO objects
> on the EJB are annotated with JAXB.
>
> The problem is that some of the information we do not want to send
> externally. There fields on the objects that need to exist for internal
> use,
> but we don't want the customer seeing them.
>
> Back when we used Aegis mapping, this wasn't a problem. Aegis could take a
> set of mappings that translates internal objects to XML that was consumable
> extrenally. Aegis seems to be dead these days, plus is doesn't support
> schema validation.
>
> My question is, if we have an object annotated with JAXB, does CXF allow
> you
> to ignore some of the fields on a JAXB class?
>
> Thanks, Happy Holidays,
> -Jonathan
> --
> View this message in context:
> http://cxf.547215.n5.nabble.com/Overriding-JAXB-annotations-tp3320779p3320779.html
> Sent from the cxf-user mailing list archive at Nabble.com.
>
--
http://aruld.info
http://twitter.com/aruld