Thanks...I tested "sequence hilo generator" and it solved my problem.
QUESTION
In hibernate documentaion following is written below seqhilo.
What does it means??
"Unfortunately, you can't use hilo when supplying your own Connection to Hibernate, or when Hibernate is using an application server datasource to obtain connections enlisted with JTA. Hibernate must be able to fetch the "hi" value in a new transaction."
http://www.hibernate.org/hib_docs/refer ... on-id-hilo
We are using application server datasource enlisted with JTA.