Click here to Skip to main content
15,886,422 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi all,

I want to make a non primary key field to auto increment in hibernate with MySql.
please help me.Thanking you in advance.
Posted
Comments
Mayur Raiyani 27-Nov-12 1:53am    
You just need to set annotation for that field for auto increment. same as primary key field.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900