Title: Generation Bug?

All over my current code, which I wrote before discovering XDoclet, I have getters and setters like this

String firstName()
void setFirstName(  String Name )

i.e. my getter does not have get in it, so firstName() instead of getFirstName()

(I like this cause the code looks kinda cleaner. I also do know that get and set is java beans convention, EJB does not however require get and set)

XDoclet does not generate the <cmp-field> entry in ejb-jar.xml if the method is NOT getBlahBlah(), even if I move the tags to the setBlahBalh() method.

So this does not work. The jboss jaws.xml output is fine though.
    /**
     * @ejb:interface-method
     * @ejb:persistent-field
     * @jboss:cmp-field field-name="firstName" column-name="first"   
     */
    public String firstName() {
        return( this.firstName );
    }

Is this a feature or a bug? Could XDoclet not be made a little smarter to figure this out?

Thanks

Andrew   

Reply via email to