The Repository is the central interface in the Spring Data repositories which manages the domain class and the ID type of that particular domain class. The main task of the interface is to find types to work with for handling data and help the developers to discover all those interfaces which extend the Repository interface.
The CrudRepository interface extends the Repository interface, and facilitates handling CRUD functionalities to deal with the database. The following table explains the methods facilitating the CRUD operations provided by the CrudRepository interface:
Name of the method | Operations the method handles |
count() | The count() method returns the number of entities available |
delete(ID id_delete) | The delete() method facilitates deletion of the entity having the given ID |
delete(Iterable iterable_delete) | This overloaded version of the... |