From 85349566e5356c73b234735ad917300fe2ee23c0 Mon Sep 17 00:00:00 2001 From: snoop Date: Wed, 5 Jul 2017 17:00:26 +0900 Subject: [PATCH] added dao --- .../java/com/loafle/overflow/module/apikey/dao/ApiKeyDAO.java | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/main/java/com/loafle/overflow/module/apikey/dao/ApiKeyDAO.java b/src/main/java/com/loafle/overflow/module/apikey/dao/ApiKeyDAO.java index ba511fb..7b34ac3 100644 --- a/src/main/java/com/loafle/overflow/module/apikey/dao/ApiKeyDAO.java +++ b/src/main/java/com/loafle/overflow/module/apikey/dao/ApiKeyDAO.java @@ -1,6 +1,7 @@ package com.loafle.overflow.module.apikey.dao; import com.loafle.overflow.module.apikey.model.ApiKey; +import com.loafle.overflow.module.domain.model.Domain; import org.springframework.data.jpa.repository.JpaRepository; import org.springframework.stereotype.Repository; @@ -12,4 +13,6 @@ import org.springframework.stereotype.Repository; public interface ApiKeyDAO extends JpaRepository { ApiKey findByApiKey(String apiKey); + + ApiKey findByDomain(Domain domain); }