Interface CrudRepository<E,K>


public interface CrudRepository<E,K>
Base contract for generated repositories. The caller owns the Session and transaction. save returns the managed merge result; insert schedules a new instance for persistence.
  • Method Details

    • findById

      E findById(K id)
    • save

      E save(E entity)
    • insert

      void insert(E entity)
    • deleteById

      void deleteById(K id)
    • findAll

      List<E> findAll()
    • count

      long count()
    • existsById

      boolean existsById(K id)