Everything is all riht in this program only problme is that , it is in the vserting values again if i run the program again.
why primary key is not working here.
Everything is all riht in this program only problme is that , it is in the vserting values again if i run the program again.
why primary key is not working here.
You are using a generator primary key generation stategy and trying to assign a primary key to your object. That's not going to work. Use one or the other not both.