Author | Message |
---|---|
vishalkukkar
Posts: 11
|
Posted 14:44 Mar 07, 2016 |
Hello Dr.sun,
As per requirement,I am creating two departments and some programs for each department by insert query ,not adding it from my application. But when I try to add a program from my application in same departments that created earlier through insert query ,Its replace's the old program's entry from database.
But when I add new department and programs from my application , everything works fine ? |
cysun
Posts: 2935
|
Posted 14:55 Mar 07, 2016 |
Well, then you need to debug. I'd check the generated id values. Maybe a generated id for a new program happens to be the same as the id of an existing program. |
vishalkukkar
Posts: 11
|
Posted 15:17 Mar 07, 2016 |
Yes.My new programs id is same as old one its starting with 1.and replacing the entry with id 1. But i am starting my hibernate sequence with 100.still new program is getting id as 1? |
cysun
Posts: 2935
|
Posted 15:18 Mar 07, 2016 |
You probably has a request parameter with the name "id" ... |
vishalkukkar
Posts: 11
|
Posted 15:26 Mar 07, 2016 |
Got it. Thank you. |