error getting results for field member key
Embedded Exception
Unable to load a ResultSet column into a variable of type '....MyKey'
13:45:34,675 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCAbstractQueryCommand.execute(J
DBCAbstractQueryCommand.java:143)
13:45:34,690 ERROR [STDERR] at org.jboss.ejb.plugins.cmp.jdbc.JDBCFindEntityCommand.execute(JDBC
FindEntityCommand.java:44)
...
<ejb-name>MyBean</ejb-name>
...
<cmp-field><field-name>year</field-name></cmp-field>
<cmp-field><field-name>month</field-name></cmp-field>
<primkey-field>key</primkey-field>
...
<ejb-relation-name>....</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>.....</ejb-relationship-role-name>
<multiplicity>One</multiplicity>
<relationship-role-source>
<ejb-name>...some other bean....</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>allMyBeans</cmr-field-name>
<cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>.....</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<relationship-role-source>
<ejb-name>MyBean</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>related</cmr-field-name>
</cmr-field>
</ejb-relationship-role>
</ejb-relation>
private Integer month;
private Integer year;
}
this.name= name;
this.month = month;
this.year = year;
}
return name;
}
return month;
}
return year;
}
}
return getName().hashCode() ^ getYear().hashCode() ^ getMonth().hashCode();
}
public abstract Integer getYear();
public abstract Integer getMonth();
public abstract void setYear(Integer year);
public abstract void setMonth(Integer month);
public abstract void setRelated(RelatedLocal related);
throws CreateException {
setKey(key);
setMonth(month);
}
RelatedLocal related = home.findByPrimaryKey(name);
setRelated(related);
}
This transmission contains information solely for intended recipient and may be privileged, confidential and/or otherwise protect from disclosure. If you are not the intended recipient, please contact the sender and delete all copies of this transmission. This message and/or the materials contained herein are not an offer to sell, or a solicitation of an offer to buy, any securities or other instruments. The information has been obtained or derived from sources believed by us to be reliable, but we do not represent that it is accurate or complete. Any opinions or estimates contained in this information constitute our judgment as of this date and are subject to change without notice. Any information you share with us will be used in the operation of our business, and we do not request and do not want any material, nonpublic information. Absent an express prior written agreement, we are not agreeing to treat any information confidentially and will use any and all information and reserve the right to publish or disclose any information you share with us.