users@jaxb.java.net

Re: how to make parent class property transient on subclass

From: Wolfgang Laun <wolfgang.laun_at_gmail.com>
Date: Tue, 27 Jan 2009 08:50:39 +0100

I'd override id in class B, delegating to P, and annotate B.id with
XmlTransient.
-W

On Mon, Jan 26, 2009 at 8:39 PM, mule1 <uap001_at_yahoo.com> wrote:

>
> Hello,
>
> I have a parent class "P" - and two subclasses "A", and "B". On "P", I have
> a property called "id". I want my jaxb generated xml to have the value of
> "id" property shown for class "A", but not for class "B" - is there a way
> to
> somehow use XmlTransient for a parent class property on a subclass?
>
> Thanks.
> --
> View this message in context:
> http://www.nabble.com/how-to-make-parent-class-property-transient-on-subclass-tp21672182p21672182.html
> Sent from the java.net - jaxb users mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_jaxb.dev.java.net
> For additional commands, e-mail: users-help_at_jaxb.dev.java.net
>
>