title: Hibernate + "ON DUPLICATE KEY" logic
body: <p>I am looking for a way to <strong>save or update</strong> records, according to the table's unique key which is composed of several columns). </p>
  
  <p>I want to achieve the same functionality used by <code>INSERT ... ON DUPLICATE KEY UPDATE</code> - meaning to blindly save a record, and have the DB/Hibernate insert a new one, or update the existing one if the unique key already exists.</p>
  
  <p>I know I can use <code>@SQLInsert( sql="INSERT INTO .. ON DUPLICATE KEY UPDATE")</code>, but I was hoping not to write my own SQLs and let Hibernate do the job. (I am assuming it will do a better job - otherwise why use Hibernate?)</p>