merge - Hibernate calling setter method -
when change value in inputtext field(which populated db) , merge, hibernate doing not understanding.
let's input text field populated string "new york". when go change "boston", order getter , setter methods being called in: property get: new york property get: new york property set: boston property set: new york
it not change value boston , keeps value new york. input text field references field db.
here setter , getters:
@column(name = "city", length = 32) public string getcity() { system.out.println("property get: " + city); return this.city; } public void setcity(string city) { system.out.println("property set: " + city); this.city = city; }
any idea why happening?
Comments
Post a Comment