I am trying to pass in startSequenceId, stopSequenceId, orderNumber into the SQL map, however, i don\'t wish to use a typed object, i.
startSequenceId
stopSequenceId
orderNumber
In MyBatis 3, you can use @Param annotation in your mapper class(interface) method:
@Param
public getSequenceIdByOrderNumber(@Param("seqId") int sequenceId,@Param("orderId") int orderNo);
Then you can use #{seqId}, #{orderId} in the SQL without using parameterType attribute.
#{seqId}
#{orderId}