update code for spring data