title: deprecated SequenceHiLoGenerator sequence-based id generator; use SequenceStyleGenerator instead
body: <p>my application is logging</p>
  
  <blockquote>
    <p>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>
  
  <p>There is a similar question about this <a href="https://stackoverflow.com/questions/39861098/replace-sequencegenerator-since-its-deprecated">here</a> that fix the problem, but my question is if it's possible replace the Sequence generator org.hibernate.id.SequenceHiLoGenerator
  to org.hibernate.id.enhanced.SequenceStyleGenerator without go throught every single domain class annotations writing a custom @GenericGenerator? Something like a property maybe...</p>
  
  <p>My code has something like this:</p>
  
  <pre><code>@Id
  @GeneratedValue(strategy = GenerationType.SEQUENCE, generator="seq_name")
  @SequenceGenerator(name="seq_name", sequenceName="hibernate_sequence")
  private Long id;
  </code></pre>
  
  <p>Thank you.</p>