www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - How can I get changed members in class object?

In hibernate,update object is set all table columns to sql.
code for example:
//orm entity
class User {
	int id;
	string firstName;
	string lastName;

Session sess = factory.openSession();
User user =sess.createQuery("FROM User WHERE 

user.lastName = "new balabala";//change last name


when exec update method ,hibernate generate sql like that
UPDATE user SET first_name =?, last_name =? WHERE id=?


but i just want to modify or update last_name column, maybe sql is
UPDATE user SET  last_name =? WHERE id=?

does hibernate has a method to update changed columns only´╝č

how can i do that?
Mar 13 2017