Saturday 17 August 2019

Spring Data : Exploring CrudRepository


CrudRepository interface provides generic operations that can be performed on a specific type.

      Save an entity
      saveAll: Save all the entities
      findById: Get an entity by id
      existsById: Check entity exists with this id or not
      findAll: Get all the objects of given entity
      Update an entity
      findAllById: get all the entities for given ids
      count: Count all the entities
      deleteById: Delete element by id
      Delete given entity
      deleteAll: Delete multiple entities
      deleteAll: Delete all entities




Previous                                                    Next                                                    Home

No comments:

Post a Comment