I have a requirement in which I have to store a new record in the table with the ID that I send manually. Now in my hibernate entity file I use @SequenceGenerator and @Generated