If you're using load-balancers, but the DB is shared between the instances, you cannot cache the sequences' values.
You have to ask for the next sequence value each time you insert into DB. And each insert has to be inside a transaction. Hibernate, (by default) has allocationSize = 50, so to fix your problem, you have to explicitly set it to 1.
@SequenceGenerator(allocationSize=1 ...)