Java Spring: Working with Data in Spring