title: Not able to update tinyint field
body: <p>Hi I am not able to update msgFromUserFlag in database through hibernate. Neither i am getting any error while updating this value.</p>
  
  <p>This is my code at DAO layer. and in database my field is of TINYINT(1) type and in persistence class it is of type boolean.</p>
  
  <pre><code>public void updateMsgFromUserFlag(CustomerOrder customerOrderEntity){
      try {
  
          //update(customerOrderEntity);
          final StringBuffer queryString = new StringBuffer("update CustomerOrder custOrder set custOrder.msgFromUserFlag = :param1 where custOrder.goldOrderNumber = :param2");
          final Query query = this.getEm().createQuery(queryString.toString());
          query.setParameter("param1",customerOrderEntity.isMsgFromUserFlag());
          query.setParameter("param2", customerOrderEntity.getGoldOrderNumber());
          int modification=query.executeUpdate();
      }
      catch(PersistenceException ex) {
          otLogger.debug("OrderDaoImpl.exception occurred "+ex);
          throw new TechnicalException(Constants.ERROR_HIBERNATE_EXCEPTION, ex);
      }
  }
  </code></pre>