title: Java hibernate No validator could be found for boolean
body: <p>I have a service method that tries to add an object with <code>store()</code> method of hibernate. get method is working for this DAO and service class whereas adding not working. In console there is no error.</p>
  
  <pre><code>UrlWhiteListDaoImpl urlDao;
  
  MapperFacade mapper;
  
  @Autowired
  public UrlWhiteListingServiceImpl(UrlWhiteListDao urlWhiteListDao, MapperFacade mapper, UrlWhiteListDaoImpl urlDao) {
      this.urlDao = urlDao;
      this.urlWhiteListDao = urlWhiteListDao;
      this.mapper = mapper;
  }
  
  @Override
  public UrlWhiteListDto addUrlWhiteListItem(UrlWhiteListDto urlWhiteListDto) throws Exception {
      String domainUrlToBeAdded = parseUrl(urlWhiteListDto.getDomain());
      if (isDomainExistbyName(domainUrlToBeAdded)) {
          throw new Exception("Already existed domain is tried to be added");
      }
      UrlWhitelist urlModel = mapper.map(urlWhiteListDto,UrlWhitelist.class);
      urlDao.store(urlModel);
      return urlWhiteListDto;
  </code></pre>
  
  <p>}</p>
  
  <p>My model class is:</p>
  
  <pre><code>@Entity
  @Table(name = UrlWhitelist.TABLE_NAME)
  public class UrlWhitelist implements EntityBean { 
  
      public static final String TABLE_NAME = "URL_WHITE_LIST";
  
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      @Column(name = "ID", nullable = false)
      private Long id;
  
      @NotBlank
      @Column(name = "DOMAIN", nullable = false)
      private String domain;
  
      @NotBlank
      @Column(name = "DISABLE", nullable = false)
      private boolean disabled;
  
      // getters &amp; setters omitted
  }
  </code></pre>
  
  <p>And DAO implementation class is:</p>
  
  <pre><code>public class UrlWhiteListDaoImpl extends EntityDaoImpl&lt;UrlWhitelist, Long&gt; implements UrlWhiteListDao {
  
      protected UrlWhiteListDaoImpl() {
          super(UrlWhitelist.class);
      }
  
      @Override
      public List&lt;UrlWhitelist&gt; getByDomainName(String name) {
          DetachedCriteria criteria = DetachedCriteria.forClass(UrlWhitelist.class);
          criteria.add(Restrictions.eq("domain", name));
          return getAllByCriteria(criteria);
      }
  }
  </code></pre>
  
  <p>In console there is no error but in server log it says:</p>
  
  <blockquote>
    <p>SEVERE: Servlet.service() for servlet [services] in context with path [] threw exception [Request processing failed; nested exception is javax.validation.UnexpectedTypeException: HV000030: No validator could be found for constraint 'org.hibernate.validator.constraints.NotBlank' validating type 'java.lang.Boolean'. Check configuration for 'disabled'] with root cause
        javax.validation.UnexpectedTypeException: HV000030: No validator could be found for constraint 'org.hibernate.validator.constraints.NotBlank' validating type 'java.lang.Boolean'. Check configuration for 'disabled'</p>
  </blockquote>
  
  <p>I thought there is something wrong with mapping between to and model class, but, then why get method is working and only <code>store()</code> is not working? What is the solution ?</p>