db-torque-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jeff Randolph (JIRA)" <j...@apache.org>
Subject [jira] [Created] (TORQUE-304) getPeerByName generated incorrectly
Date Tue, 12 Nov 2013 18:22:17 GMT
Jeff Randolph created TORQUE-304:
------------------------------------

             Summary: getPeerByName generated incorrectly
                 Key: TORQUE-304
                 URL: https://issues.apache.org/jira/browse/TORQUE-304
             Project: Torque
          Issue Type: Bug
          Components: Templates
    Affects Versions: 4.0
            Reporter: Jeff Randolph
            Priority: Minor


The getByPeerName method is generated in the base db objects as follows:

    public Object getByPeerName(String name)
    {
            if (name.equals(org.abc.MyPeer.MyColumn))
            {
                return getMyColumn();
            }
    }

This will never work because org.abc.MyPeer.MyColumn is a Column, not a String.  It should
instead generate this:


    public Object getByPeerName(String name)
    {
            if (name.equals(org.abc.MyPeer.MyColumn.getColumnName()))
            {
                return getMyColumn();
            }
    }




--
This message was sent by Atlassian JIRA
(v6.1#6144)

---------------------------------------------------------------------
To unsubscribe, e-mail: torque-dev-unsubscribe@db.apache.org
For additional commands, e-mail: torque-dev-help@db.apache.org


Mime
View raw message