在用findByPrimaryKey()的问题,高手多多指点?
在用 OndutyPK ondutyPK = new OndutyPK(empID,queryDate);
getDutyHome().findByPrimaryKey(ondutyPK);
(其中empID是字符串,queryDate是java.sql.Date型)
时报下面的错误:
javax.ejb.ObjectNotFoundException: Bean with primarykey 'com.system.ejb.onduty.
OndutyPK@caab8c5f' was not found by 'findByPrimaryKey'.
我分别用findByEmpID(empID)和findByQueyDate(QueryDate)测过结果是正确的.
高手指点?多谢!!