users@jaxb.java.net

Re: Simple Annotation

From: Kohsuke Kawaguchi <kohsuke.kawaguchi_at_sun.com>
Date: Tue, 23 Aug 2005 09:50:34 -0700

Scott Allan wrote:
>
> How can I create an annotation with a plugin that looks like this?
> @IdClass(PersonPK.class)

This is a short form of @IdClass(value=PersonPK.class).

So if you do:

        annotationUse.annotate(...).param("value", ... );

then CodeModel will produce the short form @IdClass(PersonPK.class)
whenever it can.



-- 
Kohsuke Kawaguchi
Sun Microsystems                   kohsuke.kawaguchi_at_sun.com