I am trying to instantiate an entity that is mapped to database through hibernate. Id of this entity is generated through seq.
I have instantiated this entity inside thread and trying to save it. Each time seq
in multithreded environemnt, it creates same id.
It seems that hibernate sequence generator is not thread safe. Can anyone help me out in finding a way to make it thread safe in my multithreaded java app.