Hi, The behaviour of XDoclet 1.2.3 is correct.
Section 10.3.1 of the ejb spec says: > The accessor methods must be public, must be abstract, > and must bear the name of the container-managed persistent > field (cmp-field) or container-managed relationship field > (cmr-field) that is specified in the deployment descriptor, > and in which the first letter of the name of the cmp-field > or cmr-field has been uppercased and prefixed by “get” or “set”. Ejb 2.x cmp and cmr field names are not the same as the JavaBean's property stuff. Your method signature should be "public abstract boolean getOnline();". Regards, Matthias Lofi Dewanto schrieb: > Using 1.2.1 I had no problem with ejb-jar.xml but after > upgrading to 1.2.3 I encountered this bug: > > Using "is" method with boolean is no longer possible: > > /** > * > * @ejb.persistence column-name="isonline" > * @ejb.transaction type = "Required" > * @ejb.interface-method > * @jonas.cmp-field-jdbc-mapping field-name="online" > * jdbc-field-name="isonline" > */ > public abstract boolean isOnline(); > > always generate this ejb-jar.xml: > > <cmp-field > > <description><![CDATA[]]></description> > <field-name>nline</field-name> > </cmp-field> > > It seems that XDoclet 1.2.3 just "cut" the first 3 characters > of the method... because if I change the method name into > getOnline() it will generate a correct ejb-jar.xml ("online" instead > of "nline"). > > Is there any work around? > > Thanks a lot! ------------------------------------------------------- SF.Net email is sponsored by: GoToMeeting - the easiest way to collaborate online with coworkers and clients while avoiding the high cost of travel and communications. There is no equipment to buy and you can meet as often as you want. Try it free.http://ads.osdn.com/?ad_idt02&alloc_id135&op=click _______________________________________________ xdoclet-devel mailing list xdoclet-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/xdoclet-devel