Skip to content

Instantly share code, notes, and snippets.

@hseritt
Created June 27, 2016 01:56
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hseritt/dbb545f16a76deccb77ccb4761f1424d to your computer and use it in GitHub Desktop.
Save hseritt/dbb545f16a76deccb77ccb4761f1424d to your computer and use it in GitHub Desktop.
JPA Repository
import java.util.List;
import org.springframework.data.jpa.repository.JpaRepository;
public interface AgentRepository extends JpaRepository<Agent, Long> {
List<Agent> findByActive(boolean active);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment