title: Hibernate Criteria OR Restriction - fetch list if either one or both columns value is 1
body: <p>My Table structure is as follows:</p>
  
  <p><a href="https://i.stack.imgur.com/PU9RI.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/PU9RI.png" alt="enter image description here"></a></p>
  
  <p>Can someone help with the following criteria query:</p>
  
  <pre><code>Criteria c = getSession().createCriteria(getEntity(), "b");
  c.add(Restrictions.in("b.isTwitterVerified", 1));
  or // b.isFbVerified =1// something like this
  return c.list();
  </code></pre>