title: Hibernate generates negative id values when using a sequence
body: <p>I have a class with the following definition:</p>
  
  <pre><code>@Id
  @SequenceGenerator(name = "SEQ_ACE_WORKERS_QUEUE_STATS_ID", sequenceName = "SEQ_ACE_WORKERS_QUEUE_STATS_ID", allocationSize = 500)
  @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "SEQ_ACE_WORKERS_QUEUE_STATS_ID")
  @Column(name = "ID")
  private long Id;
  </code></pre>
  
  <p>When we ran it on Jboss 4.2.3 it worked fine and generated the proper ID's (starting from 1000+)</p>
  
  <p>Now we moved to jboss 7.1.1 and it generates negative ID's! (starting from -498 and going up)</p>
  
  <p>Any idea why this might happen?</p>