cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Frank" <faro...@hotmail.com>
Subject Help - cannot get relationship value
Date Tue, 27 Feb 2007 15:05:45 GMT
Hello,

I have a simple master/detail that fails when I try to get the department 
name.
Here is my code:

Thanks for the help

Frank

I get this error
No matching getter method found for property pcldds on class 
org.objectstyle.cayenne.access.ToManyList

when I try and load the Click table to get the department name
column = new Column("departments.pcldds");

package stemc.cayenne.as400.auto;

import java.util.List;

/** Class _Bsypemp was generated by Cayenne.
  * It is probably a good idea to avoid changing this class manually,
  * since it may be overwritten next time code is regenerated.
  * If you need to make any customizations, please use subclass.
  */
public class _Bsypemp extends org.objectstyle.cayenne.CayenneDataObject {

    public static final String E_MEMPPOUND_PROPERTY = "eMEMPpound";
    public static final String E_MWPHPOUND_PROPERTY = "eMWPHpound";
    public static final String EMYFNM_PROPERTY = "emyfnm";
    public static final String EMYLNM_PROPERTY = "emylnm";
    public static final String DEPARTMENTS_PROPERTY = "departments";

    public static final String EMEMPPOUND_PK_COLUMN = "EMEMP#";
    public static final String EMHSPPOUND_PK_COLUMN = "EMHSP#";

    public java.math.BigDecimal getEMEMPpound() {
        return (java.math.BigDecimal)readProperty("eMEMPpound");
    }


    public java.math.BigDecimal getEMWPHpound() {
        return (java.math.BigDecimal)readProperty("eMWPHpound");
    }


    public String getEmyfnm() {
        return (String)readProperty("emyfnm");
    }


    public String getEmylnm() {
        return (String)readProperty("emylnm");
    }


    public void addToDepartments(stemc.cayenne.as400.Bprppcp obj) {
        addToManyTarget("departments", obj, true);
    }
    public void removeFromDepartments(stemc.cayenne.as400.Bprppcp obj) {
        removeToManyTarget("departments", obj, true);
    }
    public List getDepartments() {
        return (List)readProperty("departments");
    }


}

package stemc.cayenne.as400.auto;

import java.util.List;

/** Class _Bprppcp was generated by Cayenne.
  * It is probably a good idea to avoid changing this class manually,
  * since it may be overwritten next time code is regenerated.
  * If you need to make any customizations, please use subclass.
  */
public class _Bprppcp extends org.objectstyle.cayenne.CayenneDataObject {

    public static final String PCDEP4_PROPERTY = "pcdep4";
    public static final String PCLDDS_PROPERTY = "pcldds";
    public static final String EMPLOYEES_PROPERTY = "employees";

    public static final String PCDEP4_PK_COLUMN = "PCDEP4";
    public static final String PCHSPPOUND_PK_COLUMN = "PCHSP#";

    public java.math.BigDecimal getPcdep4() {
        return (java.math.BigDecimal)readProperty("pcdep4");
    }


    public String getPcldds() {
        return (String)readProperty("pcldds");
    }


    public void addToEmployees(stemc.cayenne.as400.Bsypemp obj) {
        addToManyTarget("employees", obj, true);
    }
    public void removeFromEmployees(stemc.cayenne.as400.Bsypemp obj) {
        removeToManyTarget("employees", obj, true);
    }
    public List getEmployees() {
        return (List)readProperty("employees");
    }


}


Mime
View raw message