Spring Data Repositories
Introduction Recently I got an opportunity to work with spring data repositories. Its an excellent feature of Spring. you no longer need to manage writing basic crud operation logic for your application with this architecture. In a way like Hibernate sans the clumsy .hbm files and any sort of database awareness. The key components of this architecture are : Rep ository - This class would correspond to the Database and extends PagingAndSortingRepository Domain - The object for which crud operations are needed Delegate - This class would be a handler for handling the request and returning the response. The implementation of handler would have the exact logic of the business involved. The goal of Spring Data repository abstraction is to significantly reduce the amount of unintelligent code required to implement data access layers for various persistence stores. Key Concepts The central interface here would be the Repository . The domain class a