title: hibernate insert into select
body: <p>How can I generate insert statements like <code>insert into table (sequence.nextval, 'b0)</code> using hibernate?</p>
  
  <p>Hibernate currently selects the <code>sequence.nextval</code> value and only then it uses the value to insert the entry in the table.</p>
  
  <p>Note: I'm not very fond of custom id generators.</p>