title: Parameter value [1] did not match expected type [java.lang.Boolean]
body: <p>I'm getting the error <code>Exception in thread "main" org.springframework.dao.InvalidDataAccessApiUsageException: Parameter value [1] did not match expected type [java.lang.Boolean]; nested exception is java.lang.IllegalArgumentException: Parameter value [1] did not match expected type [java.lang.Boolean]</code>.</p>
  
  <p>I'm confused by this because it's coming from the service method shown below that is commented out.  When I comment it out, the error is avoided.  The <code>active</code> column is a <code>TINYINT(1)</code> that's either <code>1</code> or <code>0</code>.</p>
  
  <p>Entity:</p>
  
  <pre><code>@Entity
  @NamedQueries({
          @NamedQuery(name="Workflow.findByUUID", query="SELECT w FROM Workflow w WHERE w.uuid = :uuid"),
          @NamedQuery(name="Workflow.findByActive", query="SELECT w FROM Workflow w WHERE w.active = :active ORDER BY id ASC")
  })
  </code></pre>
  
  <p>My Repository:</p>
  
  <pre><code>@Repository
  public interface WorkflowRepository extends JpaRepository&lt;Workflow, Integer&gt; {
      List&lt;Workflow&gt; findByActive(@Param("active") Integer active);
  }
  </code></pre>
  
  <p>My Service:</p>
  
  <pre><code>@Service
  public class WorkflowService {
  
      @Autowired
      WorkflowRepository workflowRepository;
  
      /**
       * Get active workflows
       */
      @Transactional(readOnly = true)
      public List&lt;Workflow&gt; findActive() {
          //return workflowRepository.findByActive(1);
          return null;
      }
  </code></pre>
  
  <p>When I uncomment</p>