commit the restful relation with where clause