title: Getting the Sequence Value of hibernate / Knowing the id hibernate inserted
body: <p>I have two tables. One table having sequence and other table does not. i need to use the same id which got inserted to second table for business purposes.</p>
  
  <p>Currently im getting max using projections and incrementing it. using this value for insert in two tables.</p>
  
  <p>i need to use sequence value of one table and insert the same value in another table? how this can be done ?</p>