users@jaxb.java.net

RE: Plugin for EJB 3.0 annotations

From: Scott Allan <sallan1000_at_aol.com>
Date: Fri, 19 Aug 2005 16:19:06 -0500

I have added some functionality but I am far from done!



Changes:

Now <ejb3:Entity/> and <ejb3:isSetTransient/> can be declared at the
class level.



<ejb3:Entity> will obviously annotate the bean as an entity bean.

<ejb3:isSetTransient> will mark all "isSet" methods as @Transient since
they are not valid fields for persistence.



The <ejb3:annotate> customizations still exist with these changes:



For <ejb3:annotation..> valid "type" attribute values are now:



get, set, get-set, and isSet



to identify which property methods should be annotated. Class level
annotations do not require a "type" attribute.



<xs:annotation><xs:appinfo>

<ejb3:annotate>

        <ejb3:annotation className="class name goes here (ex.
javax.persistence.Column)" type="valid type goes here">

                <ejb3:param label="myparam1" stringValue="myvalue1"/>

                <ejb3:param label="myparam2" stringValue="myvalue2"/>

        </ejb3:annotation>

</ejb3:annotate>

</xs:appinfo></xs:annotation>








  _____

<< ella for Spam Control >> has removed 25605 Spam messages and set
aside 2 Newsletters for me
You can use it too - and it's FREE! www.ellaforspam.com