Skip to content

Commit

Permalink
Use correct parameter type in MyBatis mappers
Browse files Browse the repository at this point in the history
This makes sure that our logic for registering runtime hints works as expected and we don't need to register certain classes manually
  • Loading branch information
filiphr committed Jan 30, 2024
1 parent d919818 commit d2470da
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -226,15 +226,15 @@
SELECT * FROM dual
</insert>

<select id="selectDeadLetterJobByQueryCriteria" parameterType="org.flowable.job.service.impl.JobQueryImpl" resultMap="jobResultMap">
<select id="selectDeadLetterJobByQueryCriteria" parameterType="org.flowable.job.service.impl.DeadLetterJobQueryImpl" resultMap="jobResultMap">
<if test="needsPaging">${limitBefore}</if>
SELECT RES.* <if test="needsPaging">${limitBetween}</if>
<include refid="selectDeadLetterJobByQueryCriteriaSql"/>
${orderBy}
<if test="needsPaging">${limitAfter}</if>
</select>

<select id="selectDeadLetterJobCountByQueryCriteria" parameterType="org.flowable.job.service.impl.JobQueryImpl" resultType="long">
<select id="selectDeadLetterJobCountByQueryCriteria" parameterType="org.flowable.job.service.impl.DeadLetterJobQueryImpl" resultType="long">
select count(RES.ID_)
<include refid="selectDeadLetterJobByQueryCriteriaSql"/>
</select>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -234,15 +234,15 @@
SELECT * FROM dual
</insert>

<select id="selectSuspendedJobByQueryCriteria" parameterType="org.flowable.job.service.impl.JobQueryImpl" resultMap="jobResultMap">
<select id="selectSuspendedJobByQueryCriteria" parameterType="org.flowable.job.service.impl.SuspendedJobQueryImpl" resultMap="jobResultMap">
<if test="needsPaging">${limitBefore}</if>
SELECT RES.* <if test="needsPaging">${limitBetween}</if>
<include refid="selectSuspendedJobByQueryCriteriaSql" />
${orderBy}
<if test="needsPaging">${limitAfter}</if>
</select>

<select id="selectSuspendedJobCountByQueryCriteria" parameterType="org.flowable.job.service.impl.JobQueryImpl" resultType="long">
<select id="selectSuspendedJobCountByQueryCriteria" parameterType="org.flowable.job.service.impl.SuspendedJobQueryImpl" resultType="long">
select count(RES.ID_)
<include refid="selectSuspendedJobByQueryCriteriaSql" />
</select>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@
select * from ${prefix}ACT_RU_VARIABLE where ID_ = #{id, jdbcType=VARCHAR}
</select>

<select id="selectVariablesByQuery" parameterType="org.flowable.common.engine.impl.db.ListQueryParameterObject" resultMap="variableInstanceResultMap">
<select id="selectVariablesByQuery" parameterType="org.flowable.variable.service.impl.InternalVariableInstanceQueryImpl" resultMap="variableInstanceResultMap">
select *
from ${prefix}ACT_RU_VARIABLE
<where>
Expand Down

0 comments on commit d2470da

Please sign in to comment.