title: Scala: Is there any way to override "not equals" (!=)?
body: <p>I'm writing a DSL that generates SQL.  The syntax for loading a table is:</p>
  
  <pre><code>    session.activateWhere( _.User.ID == 490 )
  </code></pre>
  
  <p>This will select from the User table where the ID column is 490.  I can use "==" because I can override "equals()" to generate the correct SQL.  My problem is that "!=" doesn't work because it calls equals() and then negates the result.  Sadly "!=" is final so I can't override it.  Is there any way in my equals() method to tell that it was called as part of !=?</p>
  
  <p>I've implemented a "&lt;>" operation that logically does the same thing as "!=" and it works fine: </p>
  
  <pre><code>    session.activateWhere( _.User.ID &lt;&gt; 490 )
  </code></pre>
  
  <p>My issue is that not only is "!=" valid syntax (to the compiler) but it will run and generate the exact opposite of what the user intends.</p>