title: Where to set hibernate.id.new_generator_mappings property?
body: <p>I've wasted too much time on this ... </p>
  
  <p>I'm using oracle and I have a sequence (MY_TABLE_SEQ) defined which increments by 1.</p>
  
  <p>In my Pojo I have:</p>
  
  <pre><code>@SequenceGenerator(name = "MY_SEQ", sequenceName="MY_TABLE_SEQ", allocationSize=50)
  @GeneratedValue(strategy=GenerationType.SEQUENCE, generator="MY_SEQ")
  </code></pre>
  
  <p>This gives me a unique constraint issue. From my understanding I need to set the following property:</p>
  
  <pre><code>hibernate.id.new_generator_mappings=true
  </code></pre>
  
  <p>I've tried setting in my hibernate.cfg.xml file but it does not seem to make any difference. I've come across server post to place in persistance.xml but this is a standalone app, no webcontainer.</p>
  
  <p>Setting allocationSize=1 works but of course it hits the db on each insert to get the next sequence. Setting the above property is suppose to resolve it.</p>