Skip to content

Instantly share code, notes, and snippets.

@Abhi-Codes
Created September 30, 2022 06:41
Show Gist options
  • Save Abhi-Codes/e7955472b67c7b2c9524462c4f4addbe to your computer and use it in GitHub Desktop.
Save Abhi-Codes/e7955472b67c7b2c9524462c4f4addbe to your computer and use it in GitHub Desktop.
Repository Interface extending JPARepository and QueryDSL
package com.abhicodes.querydsldynamicquery.repository;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.querydsl.QuerydslPredicateExecutor;
import org.springframework.stereotype.Repository;
import com.abhicodes.querydsldynamicquery.entity.Post;
@Repository
public interface PostRepository extends JpaRepository<Post, Integer>, QuerydslPredicateExecutor<Post> {
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment