Support for dirty checking in GORM for REST