I am new to hibernate. How do I specify in Hibernate the starting value of my ID (say 100000) and auto increment the ID starting at this value in my code. Any help on this is appreciated.
@Id
@Column (name = "ID")
@GeneratedValue(generator="increment")
@GenericGenerator(name="increment", strategy = "increment")
private Integer ID;
Try this: http://www.java2s.com/Code/Java/JPA/SetInitialValueOfTableGenerator.htm
JPA has a @TableGenerator annotation in which you can set an initial value.