added dao

This commit is contained in:
snoop 2017-07-05 17:00:26 +09:00
parent 0736723c74
commit 85349566e5

View File

@ -1,6 +1,7 @@
package com.loafle.overflow.module.apikey.dao; package com.loafle.overflow.module.apikey.dao;
import com.loafle.overflow.module.apikey.model.ApiKey; 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.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository; import org.springframework.stereotype.Repository;
@ -12,4 +13,6 @@ import org.springframework.stereotype.Repository;
public interface ApiKeyDAO extends JpaRepository<ApiKey, Long> { public interface ApiKeyDAO extends JpaRepository<ApiKey, Long> {
ApiKey findByApiKey(String apiKey); ApiKey findByApiKey(String apiKey);
ApiKey findByDomain(Domain domain);
} }