Use spring data to get rid of boilerplate code