Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
dfd7d30
feat: JpaRepository 커스텀 어노테이션 추가
Soundbar91 Oct 3, 2025
c0fe762
feat: JpaRepository 어노테이션 적용
Soundbar91 Oct 3, 2025
38545e5
feat: RedisRepository 커스텀 어노테이션 추가
Soundbar91 Oct 3, 2025
cfe6757
feat: JpaRepository 적용
Soundbar91 Oct 3, 2025
e9efef3
feat: RedisRepository 적용
Soundbar91 Oct 3, 2025
3fc227f
feat: MongoRepository 커스텀 어노테이션 추가
Soundbar91 Oct 3, 2025
4fe5e56
feat: MongoRepository 적용
Soundbar91 Oct 3, 2025
928dd86
chore: DataBase 설정 파일 이동
Soundbar91 Oct 3, 2025
5bcdc49
chore: 코드 포멧팅
Soundbar91 Oct 3, 2025
f3a6fe7
fix: 미사용 리파지토리 인터페이스 삭제
Soundbar91 Oct 4, 2025
b19450e
feat: JpaAuditingConfig 클래스 추가
Soundbar91 Oct 4, 2025
59347ad
feat: AdminJpaRepositoryConfig 클래스 추가
Soundbar91 Oct 4, 2025
91c3901
feat: DomainJpaRepositoryConfig 클래스 추가
Soundbar91 Oct 4, 2025
a842425
fix: MongoConfig 스캔 범위 수정
Soundbar91 Oct 4, 2025
f697ebd
chore: JpaAuditingConfig 클래스 네이밍 수정
Soundbar91 Oct 4, 2025
a4204a9
chore: JpaConfig 클래스 네이밍 수정
Soundbar91 Oct 4, 2025
c450a10
chore: 코드 포멧팅
Soundbar91 Oct 4, 2025
bd66e4b
chore: RedisRepository 줄넘김
Soundbar91 Oct 6, 2025
38b5a03
chore: MongoRepository 줄넘김
Soundbar91 Oct 6, 2025
f05caa5
chore: config 패키지 이동
Soundbar91 Oct 6, 2025
edf05e1
chore: MongoRepository 어노테이션 네이밍 수정
Soundbar91 Oct 6, 2025
b7f660f
chore: RedisRepository 어노테이션 네이밍 수정
Soundbar91 Oct 6, 2025
b83e98c
fix: JpaConfig 설정 파일 통합
Soundbar91 Oct 6, 2025
c26ffdb
chore: JpaRepository 어노테이션 네이밍 수정
Soundbar91 Oct 6, 2025
d2ad960
chore: 리파지토리 어노테이션 패키지 이동
Soundbar91 Oct 6, 2025
e63714e
Merge branch 'develop' into refactor/2025-improve-spring-data-scan
Soundbar91 Oct 7, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

import in.koreatech.koin.admin.abtest.exception.AbtestNotFoundException;
import in.koreatech.koin.admin.abtest.model.Abtest;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AbtestRepository extends Repository<Abtest, Integer> {

Optional<Abtest> findById(Integer id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
import org.springframework.data.repository.Repository;

import in.koreatech.koin.admin.abtest.model.redis.AbtestVariableAssign;
import in.koreatech.koin.global.marker.RedisRepositoryMarker;

@RedisRepositoryMarker
public interface AbtestVariableAssignRepository extends Repository<AbtestVariableAssign, String> {

AbtestVariableAssign save(AbtestVariableAssign abtestVariableAssign);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
import org.springframework.data.repository.CrudRepository;

import in.koreatech.koin.admin.abtest.model.redis.AbtestVariableCount;
import in.koreatech.koin.global.marker.RedisRepositoryMarker;

@RedisRepositoryMarker
public interface AbtestVariableCountRepository extends CrudRepository<AbtestVariableCount, Integer> {

List<AbtestVariableCount> findAll();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

import in.koreatech.koin.admin.abtest.exception.AbtestVariableNotFoundException;
import in.koreatech.koin.admin.abtest.model.AbtestVariable;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AbtestVariableRepository extends Repository<AbtestVariable, Integer> {

Optional<AbtestVariable> findById(Integer variableId);
Expand Down

This file was deleted.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@

import in.koreatech.koin.admin.abtest.exception.AccessHistoryNotFoundException;
import in.koreatech.koin.admin.abtest.model.AccessHistory;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AccessHistoryRepository extends Repository<AccessHistory, Integer> {

AccessHistory save(AccessHistory accessHistory);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

import in.koreatech.koin.admin.abtest.exception.DeviceNotFoundException;
import in.koreatech.koin.admin.abtest.model.Device;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface DeviceRepository extends Repository<Device, Integer> {

Device save(Device device);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

import in.koreatech.koin.admin.banner.exception.BannerCategoryNotFoundException;
import in.koreatech.koin.domain.banner.model.BannerCategory;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminBannerCategoryRepository extends Repository<BannerCategory, Integer> {

Optional<BannerCategory> findByName(String name);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@
import in.koreatech.koin.admin.banner.exception.BannerNotFoundException;
import in.koreatech.koin.domain.banner.model.Banner;
import in.koreatech.koin.domain.banner.model.BannerCategory;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminBannerRepository extends Repository<Banner, Integer> {

Optional<Banner> findById(Integer id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@
import org.springframework.data.jpa.repository.Modifying;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.CrudRepository;
import org.springframework.data.repository.query.Param;

import in.koreatech.koin.domain.benefit.model.BenefitCategoryMap;
import org.springframework.data.repository.query.Param;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminBenefitCategoryMapRepository extends CrudRepository<BenefitCategoryMap, Integer> {

List<BenefitCategoryMap> findAllByIdIn(List<Integer> ids);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

import in.koreatech.koin.admin.benefit.exception.BenefitNotFoundException;
import in.koreatech.koin.domain.benefit.model.BenefitCategory;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminBenefitCategoryRepository extends Repository<BenefitCategory, Integer> {

BenefitCategory save(BenefitCategory benefitCategory);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

import in.koreatech.koin.admin.club.exception.ClubCategoryNotFoundException;
import in.koreatech.koin.domain.club.category.model.ClubCategory;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminClubCategoryRepository extends Repository<ClubCategory, Integer> {

List<ClubCategory> findAll();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

import in.koreatech.koin.domain.club.club.model.Club;
import in.koreatech.koin.domain.club.manager.model.ClubManager;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminClubManagerRepository extends Repository<ClubManager, Integer> {

void saveAll(Iterable<ClubManager> clubAdmins);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@

import in.koreatech.koin.admin.club.exception.ClubNotFoundException;
import in.koreatech.koin.domain.club.club.model.Club;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminClubRepository extends Repository<Club, Integer> {

Integer countByClubCategoryId(Integer clubCategoryId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,9 @@

import in.koreatech.koin.domain.club.club.model.Club;
import in.koreatech.koin.domain.club.club.model.ClubSNS;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminClubSnsRepository extends Repository<ClubSNS, Integer> {

void saveAll(Iterable<ClubSNS> clubSNSs);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

import in.koreatech.koin.domain.coopshop.exception.CoopSemesterNotFoundException;
import in.koreatech.koin.domain.coopshop.model.CoopSemester;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminCoopSemesterRepository extends Repository<CoopSemester, Integer> {

Page<CoopSemester> findAll(Pageable pageable);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
import in.koreatech.koin.admin.history.dto.AdminHistoriesCondition;
import in.koreatech.koin.admin.history.exception.AdminActivityHistoryNotFoundException;
import in.koreatech.koin.admin.history.model.AdminActivityHistory;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminActivityHistoryRepository extends Repository<AdminActivityHistory, Integer> {

AdminActivityHistory save(AdminActivityHistory adminActivityHistory);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

import in.koreatech.koin.domain.community.keyword.exception.ArticleKeywordNotFoundException;
import in.koreatech.koin.domain.community.keyword.model.ArticleKeyword;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminArticleKeywordRepository extends Repository<ArticleKeyword, Integer> {

Optional<ArticleKeyword> findByKeyword(String keyword);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

import in.koreatech.koin.domain.land.exception.LandNotFoundException;
import in.koreatech.koin.domain.land.model.Land;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminLandRepository extends Repository<Land, Integer> {

Page<Land> findAllByIsDeleted(boolean isDeleted, Pageable pageable);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,9 @@

import in.koreatech.koin.domain.community.article.exception.ArticleNotFoundException;
import in.koreatech.koin.domain.community.article.model.LostItemArticle;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminLostItemArticleRepository extends Repository<LostItemArticle, Long> {

Page<LostItemArticle> findAllByIsDeletedFalse(Pageable pageable);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@
import in.koreatech.koin.admin.manager.dto.request.AdminsCondition;
import in.koreatech.koin.admin.manager.exception.AdminNotFoundException;
import in.koreatech.koin.admin.manager.model.Admin;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminRepository extends Repository<Admin, Integer> {

Admin save(Admin admin);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,13 @@
import org.springframework.data.jpa.repository.EntityGraph;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.Repository;
import org.springframework.data.repository.query.Param;

import in.koreatech.koin.domain.member.exception.MemberNotFoundException;
import in.koreatech.koin.domain.member.model.Member;
import org.springframework.data.repository.query.Param;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminMemberRepository extends Repository<Member, Integer> {

@EntityGraph(attributePaths = {"track"})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

import in.koreatech.koin.admin.member.exception.TechStackNotFoundException;
import in.koreatech.koin.domain.member.model.TechStack;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminTechStackRepository extends Repository<TechStack, Integer> {

TechStack save(TechStack techStack);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

import in.koreatech.koin.domain.member.exception.TrackNotFoundException;
import in.koreatech.koin.domain.member.model.Track;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminTrackRepository extends Repository<Track, Integer> {

Track save(Track track);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,9 @@

import in.koreatech.koin.domain.community.article.exception.ArticleNotFoundException;
import in.koreatech.koin.domain.community.article.model.Article;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminKoinNoticeRepository extends Repository<Article, Integer> {

Article save(Article article);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,11 @@
import in.koreatech.koin.domain.owner.exception.OwnerNotFoundException;
import in.koreatech.koin.domain.owner.model.Owner;
import in.koreatech.koin.domain.user.model.UserType;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

import org.springframework.data.repository.query.Param;

@JpaRepositoryMarker
public interface AdminOwnerRepository extends Repository<Owner, Integer> {

Optional<Owner> findById(Integer ownerId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
import org.springframework.data.repository.Repository;

import in.koreatech.koin.domain.owner.model.OwnerShop;
import in.koreatech.koin.global.marker.RedisRepositoryMarker;

@RedisRepositoryMarker
public interface AdminOwnerShopRedisRepository extends Repository<OwnerShop, Integer> {

Optional<OwnerShop> findById(Integer ownerId);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

import in.koreatech.koin.domain.shop.exception.MenuCategoryNotFoundException;
import in.koreatech.koin.domain.shop.model.menu.MenuCategory;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminMenuCategoryRepository extends Repository<MenuCategory, Integer> {

MenuCategory save(MenuCategory menuCategory);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
package in.koreatech.koin.admin.shop.repository.menu;

import java.util.List;
import java.util.Optional;

import org.springframework.data.repository.Repository;

import in.koreatech.koin.domain.shop.exception.MenuNotFoundException;
import in.koreatech.koin.domain.shop.model.menu.Menu;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminMenuRepository extends Repository<Menu, Integer> {

Menu save(Menu menu);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,12 @@

import java.util.Optional;

import in.koreatech.koin.domain.shop.model.review.ShopReview;
import org.springframework.data.repository.Repository;

import in.koreatech.koin.domain.shop.model.review.ShopReview;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminShopReviewRepository extends Repository<ShopReview, Long> {

Optional<ShopReview> findById(Integer id);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
import org.springframework.data.repository.query.Param;

import in.koreatech.koin.domain.shop.model.event.EventArticle;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminEventArticleRepository extends Repository<EventArticle, Integer> {

@Query("""
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,9 @@
import org.springframework.data.repository.Repository;

import in.koreatech.koin.domain.shop.model.shop.ShopCategoryMap;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminShopCategoryMapRepository extends Repository<ShopCategoryMap, Integer> {

ShopCategoryMap save(ShopCategoryMap shopCategoryMap);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@

import in.koreatech.koin.domain.shop.exception.ShopCategoryNotFoundException;
import in.koreatech.koin.domain.shop.model.shop.ShopCategory;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminShopCategoryRepository extends Repository<ShopCategory, Integer> {

ShopCategory save(ShopCategory shopCategory);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,9 @@
import org.springframework.data.repository.Repository;

import in.koreatech.koin.domain.shop.model.shop.ShopNotificationMessage;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminShopNotificationMessageRepository extends Repository<ShopNotificationMessage, Integer> {

ShopNotificationMessage save(ShopNotificationMessage shopNotificationMessage);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@

import in.koreatech.koin.admin.shop.exception.ShopParentCategoryNotFoundException;
import in.koreatech.koin.domain.shop.model.shop.ShopParentCategory;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminShopParentCategoryRepository extends Repository<ShopParentCategory, Integer> {

ShopParentCategory save(ShopParentCategory shopParentCategory);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@

import in.koreatech.koin.domain.shop.exception.ShopNotFoundException;
import in.koreatech.koin.domain.shop.model.shop.Shop;
import in.koreatech.koin.global.marker.JpaRepositoryMarker;

@JpaRepositoryMarker
public interface AdminShopRepository extends Repository<Shop, Integer> {

Shop save(Shop shop);
Expand Down
Loading
Loading