I have this chunk in the controller:
@Override
@Transactional(propagation = Propagation.SUPPORTS)
public boolean isWorkflowCoordinatorExistingForStep(final long workflowStepId) {
    Validate.notNull(workflowStepId, "workflow step id cannot be null");
    return (boolean) this.auditingSqlSession.selectOne("isWorkflowCoordinatorExistingForStep", workflowStepId);
}
That maps with this:
<select id="isWorkflowCoordinatorExistingForStep" resultType="java.lang.Boolean">
        SELECT is_coordinator
        FROM mo_subject_privileges
        WHERE workflow_step_id = #{workflowStepId}
</select>
It seems fine to me, but it is not: I am getting a "Inconvertible types. Cannot cast java.lang.Object to boolean"
Any hint?
                        
Does your Database support Booleans?
For instance Oracle has no native Boolean, so it might be possible, that mybatis does not support Booleans.
Try something else: Select the row and then check in your DAO-Method if the special field is a boolean.
DAO:
XML-Map: