Skip to content

Commit

Permalink
feat: Add InterestsRepository (#17)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ahyun0326 committed Mar 21, 2024
1 parent 67277c0 commit 6cf9c6e
Showing 1 changed file with 16 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
package com.beotkkot.qtudy.repository.interests;

import com.beotkkot.qtudy.domain.interests.Interests;
import com.beotkkot.qtudy.domain.primaryKey.InterestsPK;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface InterestsRepository extends JpaRepository<Interests, InterestsPK> {

List<Interests> findAllByUserId(Long userId);

void deleteAllByUserId(Long userId);
}

0 comments on commit 6cf9c6e

Please sign in to comment.