title: Hibernate mapped property to SQL formula fails after update to 3.6.5
body: <p>I have just updated to Hibernate 3.6.5.Final from 3.3.0.GA and have run into a problem with a SQL formula call on an XML mapped property:</p>
  
  <pre><code>&lt;property
      name="endDate"
      type="java.util.Date"
      formula="TIMESTAMPADD(SECOND, (quantity*60*60), transactionDate)" 
  /&gt;
  </code></pre>
  
  <p>I have changed nothing in the *.xml.hbm nor have I changed the database design. Where previously my endDate was nicely calculated I now get a <code>MySQLSyntaxErrorException</code>:</p>
  
  <pre><code>You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'this_.SECOND,(this_.quantity*60*60),this_.transactionDate) as formula0_0_ from t' at line 1
  </code></pre>
  
  <p>The problem is pretty obvious in that the <code>this_.SECOND</code> should be <code>SECOND</code>. It seems to me that Hibernate recognizes the <code>TIMESTAMPADD</code> as a formula but not the <code>SECOND</code> as a static passed parameter and thinks it thus must be a column in the table. I am unsure how to tell hibernate it should use <code>SECOND</code> as is.</p>
  
  <p>I've tried <code>registerFunction</code> and <code>registerKeyword</code> on my Dialect but without any luck as these seem related to HQL function definitions and not native SQL which is used here in the formula.</p>
  
  <p>Could anyone point me in the right direction or tell me what Hibernate does different between these versions and how I can fix it?</p>