Spring Data JPA
@Indexed
public interface Repository<T, ID> {
}public interface CrudRepository<T, ID> extends Repository<T, ID> {
<S extends T> S save(S entity);
Optional<T> findById(ID primaryKey);
Iterable<T> findAll();
long count();
void delete(T entity);
boolean existsById(ID primaryKey);
// … more functionality omitted.
}Query Creation
Keyword
Sample
JPQL snippet
Native Queries
예시
참조
Last updated
