The following issue has been updated:

    Updater: Matthias Germann (mailto:[EMAIL PROTECTED])
       Date: Thu, 23 Dec 2004 4:11 PM
    Comment:
The problem is that XDoclet generates the field-name according to the 
specification for JavaBean property names. 

There is a small but important difference between JavaBean property names and 
ejb cmp field names. The first letter of a JavaBean property name is not 
decapitalized if the second letter is also a upper case letter. But in a 
cmp-field name, the first letter is always decapitalized (see JavaBeans spec 
#8.8 and the dtd for ejb-jar.xml). According to the ejb spec, cmp-field names 
for booleans must also start with get/set (and not with is). 

My patch introduces the correct naming for the cmp and cmr field names. I did 
this by adding a method to the CmpTagsHandler which returns the correct cmp 
field name for a method.

    Changes:
             Attachment changed to patch.diff
    ---------------------------------------------------------------------
For a full history of the issue, see:

  http://opensource.atlassian.com/projects/xdoclet/browse/XDT-600?page=history

---------------------------------------------------------------------
View the issue:
  http://opensource.atlassian.com/projects/xdoclet/browse/XDT-600

Here is an overview of the issue:
---------------------------------------------------------------------
        Key: XDT-600
    Summary: Upper-lower-case conversion
       Type: Bug

     Status: Open
   Priority: Major

 Original Estimate: Unknown
 Time Spent: Unknown
  Remaining: Unknown

    Project: XDoclet
 Components: 
             EJB Module
   Versions:
             1.2

   Assignee: xdoclet-devel (Use for new issues)
   Reporter: Olaf Braatz

    Created: Mon, 11 Aug 2003 4:49 AM
    Updated: Thu, 23 Dec 2004 4:11 PM
Environment: XDoclet 1.2b4 (download of XDoclet 1.2b3); JDK 1.3.1_07; ANT 
1.5.3; WinNT 4.0

Description:
If a column name has only one character before first underscore the cmp/cmr 
field name starts with upper case.

P_SHORT_DESCRIPTION becomes PShortDescription instead of pShortDescription

The upper case cmp/cmr field name will be rejected by weblogic.ejbc. With 
XDoclet 1.2b2 it is properly working.


---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.

If you think it was sent incorrectly contact one of the administrators:
   http://opensource.atlassian.com/projects/xdoclet/secure/Administrators.jspa

If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira



-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
xdoclet-devel mailing list
xdoclet-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to