String sequencerName = field.getSequencerName();
boolean hasSequencer = sequencerName != null && sequencerName.length() > 0;
if (field.isIncrement() && !hasSequencer) {
myClass.addImport("javax.persistence.GeneratedValue");
myClass.addImport("javax.persistence.GenerationType");
<BUG>newVariable.addAnnotation("@GeneratedValue(strategy=GenerationType.AUTO)");
</BUG>
} else if (hasSequencer) {
myClass.addImport("javax.persistence.GeneratedValue");
myClass.addImport("javax.persistence.SequenceGenerator");

String sequencerName = field.getSequencerName();
boolean hasSequencer = sequencerName != null && sequencerName.length() > 0;
if (field.isIncrement() && !hasSequencer) {
myClass.addImport("javax.persistence.GeneratedValue");
myClass.addImport("javax.persistence.GenerationType");
newVariable.addAnnotation("@GeneratedValue(strategy=GenerationType.IDENTITY)");
} else if (hasSequencer) {
myClass.addImport("javax.persistence.GeneratedValue");
myClass.addImport("javax.persistence.SequenceGenerator");
