Hi,
I have created a table company, column ID as primary key and selected auto increment option. I have created the corresponding Java and DAO classed by using Hibernate Reverse Engineering. When I was saving data into my table company, its not getting saved.
As select max(Id) from company returns null, So, I have inserted a row in to table manually and next time when I tried inserting into DB using my java program, it started working fine.
So, when ever I use auto_incrment option, do I need to manually insert a row into table, so that hibernate works fine?
Please advice.
Thanks in advance,
Gupta