I have developed a web application with the configuration hibernate 3 and jboss 6.4.0 EAP, now I have migrated my application to jboss 7.1.1 community version. When I first deployed the application my primary key id's are not getting increased, then I went to jboss 7.1.1 migration guide and got to know that jboss 7.1.1 will generate it's own id's, so for getting my old id's I have used
`<property name="hibernate.id.new_generator_mappings" value="false"/>`
line in my standalone.xml file then my problem has been solved and id's are generating in the old way. Now I have configured another server and deployed same application in the second server now I am getting the same exception that is id's are not getting increased. I don't know what is the exact problem, any help will be appreciated.