package org.jhipster.repository;
import org.jhipster.domain.Entry;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.*;
import org.springframework.data.repository.query.Param;
import java.util.List;
/**
* Spring Data JPA repository for the Entry entity.
*/
@SuppressWarnings("unused")
public interface EntryRepository extends JpaRepository<Entry,Long> {
@Query("select distinct entry from Entry entry left join fetch entry.tags")
List<Entry> findAllWithEagerRelationships();
@Query("select entry from Entry entry left join fetch entry.tags where entry.id =:id")
Entry findOneWithEagerRelationships(@Param("id") Long id);
Page<Entry> findByBlogUserLoginOrderByDateDesc(String currentUserLogin, Pageable pageable);
}