title: How to INSERT using a SELECT in Hibernate
body: <p>I need to implement the following request in hibernate:</p>
  
  <pre><code>insert into my_table(....,max_column)
  values(...,(select max(id) from special_table where ....))
  </code></pre>
  
  <p>How to do that in hibernate, using annotations? special_table may be not a child or dependency of my_table, just a subselect. </p>