Получение "ноль" при попытке доступа к переменной объекта в mybatis mapper xml
public interface RawProductEvaluationEventDao
{
public List<ProductEvaluationEvent> getEventsByTypeAndProductEvaluation(
@Param("evaluation") ProductEvaluation evaluation,
@Param("eventType") EventType eventType);
}
Это мой картограф xml RawProductEvaluationEventDao.xml
<select id="getEventsByTypeAndProductEvaluation" resultType="ProductEvaluationEvent">
SELECT
id,
productEvaluationFk,
eventTimestamp,
receiptEventTypeFk,
isStartEvent,
isSuccess,
supplementalEventText,
exceptionStackTraceText
FROM
productEvaluationEvent
WHERE productEvaluationFk = #{evaluation.id}
AND receiptEventTypeFk = #{eventType.id}
</select>
Я добавил регистратор и обнаружил, что я получаю нулевое значение как для analysis.id, так и для eventType.id.
14:47:39 DEBUG c.r.w.p.d.r.R.getEventsByTypeAndProductEvaluation - ==> Preparing: SELECT id, productEvaluationFk, eventTimestamp, receiptEventTypeFk, isStartEvent, isSuccess, supplementalEventText, exceptionStackTraceText FROM productEvaluationEvent WHERE productEvaluationFk = ? AND receiptEventTypeFk = ?
14:47:39 DEBUG c.r.w.p.d.r.R.getEventsByTypeAndProductEvaluation - ==> Parameters: null, null