title: Reusing a parameter in hibernate Restrictions.sqlRestriction?
body: <p>Let's say I would like to do</p>
  
  <pre><code>SELECT * from T where X &lt; 12345 AND Y &lt; 12345
  </code></pre>
  
  <p>using Restrictions.sqlRestriction. The constant that X and Y are being compared to is the same in my case. Ideally, I would want to pass it along to the sqlRestriction only once, and reference it by its index in the argument list. Is this possible?</p>
  
  <p>I could pass it along twice, like this:</p>
  
  <p>Restrictions.sqlRestriction("X &lt; ? AND Y &lt; ?", {12345, 12345}), but I'm asking if there is a more elegant syntax, Similar to how C#'s WriteLine allows stuff like</p>
  
  <pre><code>Console.WriteLine("This {0} appears here also {0}", 12345)
  </code></pre>