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

Popular posts from this blog

html - How to style widget with post count different than without post count -

How to remove text and logo OR add Overflow on Android ActionBar using AppCompat on API 8? -

javascript - storing input from prompt in array and displaying the array -