Abator generated Java classes with Special character
----------------------------------------------------

                 Key: IBATIS-348
                 URL: http://issues.apache.org/jira/browse/IBATIS-348
             Project: iBatis for Java
          Issue Type: Improvement
          Components: DAO
    Affects Versions: 2.1.7
         Environment: Spring 2.0 M2, AIX 5.1, JDK 1.4
            Reporter: Hari Haran Vadivelu
            Priority: Minor


There are situation where in a column in database table might have special 
characters
Eg- A column with name PVPO# , in such situations the Java source generated has 
an equivalent field name with special character

private String pvpo#;

This is an exception in Java.

Abator should be intelligent enough to generate a different field name for Java 
classes  like one with out special characters

private String pvpo;

It would be even better if the mapping file can be generated with the escape 
character too

Eg-

    select DISTINCT PVTRNK, PVUNIT, PVPNO, PVPNOA, PVEPRT, PVSNO, PVOQTY, 
PVACQT, PVPRIC, PVWARC, PVRMA## 
    from APIYLIBR.APIPPVRD
        where PVTRNK = #triggerId#



-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to