Replace @SequenceGenerator since its deprecated
<p>I have a problem with <code>@SequenceGenerator</code>:</p>

<pre><code>@SequenceGenerator(name="pk_user_id", sequenceName="seq_user_id", allocationSize=1)
@GeneratedValue(strategy=GenerationType.SEQUENCE, generator="pk_user_id")
</code></pre>

<p>When the application starts up it shows warning:</p>

<blockquote>
  <blockquote>
    <p>WARN 7388 --- [           main] org.hibernate.orm.deprecation            : HHH90000014: Found use of deprecated [org.hibernate.id.SequenceHiLoGenerator] sequence-based id generator; use org.hibernate.id.enhanced.SequenceStyleGenerator instead.  See Hibernate Domain Model Mapping Guide for details</p>
  </blockquote>
</blockquote>

<p>I tried to find out how I can replace a deprecated code with a new one but can't find any solution.</p>