Select Next Val(seq) hangs insert statement in hibernate

sequence belongs to´different table
insert statement is done for different table’

As i check postgres db locks :select nextval block insert statement

we are using hibernate orm for save operation

Try to replicate it with this test case template and we are going to look at it once you replicated it.

Thanks Vald, its working fine now , it was some while loop condition glitch which was running infinite cause that issue ,