It's seems that new version of hibernate dose not recognize ID field value of 0 to be new record setting it's value to null will solve it.