From ba698b94533e194ba8d42ca5b5d0301258784915 Mon Sep 17 00:00:00 2001 From: geek Date: Fri, 23 Jun 2017 17:24:32 +0900 Subject: [PATCH] EmailAuth model modify --- .../module/email/dao/JPAEmailAuthDAO.java | 63 ------------------- .../module/member/dao/MemberDAOTest.java | 2 + 2 files changed, 2 insertions(+), 63 deletions(-) delete mode 100644 src/main/java/com/loafle/overflow/module/email/dao/JPAEmailAuthDAO.java diff --git a/src/main/java/com/loafle/overflow/module/email/dao/JPAEmailAuthDAO.java b/src/main/java/com/loafle/overflow/module/email/dao/JPAEmailAuthDAO.java deleted file mode 100644 index 8f627de..0000000 --- a/src/main/java/com/loafle/overflow/module/email/dao/JPAEmailAuthDAO.java +++ /dev/null @@ -1,63 +0,0 @@ -//package com.loafle.overflow.module.email.dao; -// -//import com.loafle.overflow.commons.dao.JPABaseDAO; -//import com.loafle.overflow.module.email.model.EmailAuth; -// -//import javax.persistence.Query; -//import java.util.List; -// -///** -// * Created by geek@loafle.com on 17. 6. 6. -// */ -//public class JPAEmailAuthDAO extends JPABaseDAO implements EmailAuthDAO { -// -// public EmailAuth findByAuthToken(EmailAuth emailAuth) { -// Query query = getEntityManager().createNativeQuery("SELECT e.* FROM EMAIL_AUTH e WHERE e.auth_token = :auth_token", EmailAuth.class); -// query.setParameter("auth_token", emailAuth.getAuthToken()); -// -// EmailAuth auth = null; -// -// try { -// auth = (EmailAuth)query.getSingleResult(); -// } catch (Exception e) { -// e.printStackTrace(); -// } finally { -// return auth; -// } -// } -// -// @Override -// public List findByMemberId(EmailAuth emailAuth) { -// Query query = getEntityManager().createNativeQuery("SELECT e.* FROM EMAIL_AUTH e WHERE e.member_id = :member_id", EmailAuth.class); -// query.setParameter("member_id", emailAuth.getMember().getId()); -// -// List auths = null; -// -// try { -// auths = (List)query.getResultList(); -// } catch (Exception e) { -// e.printStackTrace(); -// } finally { -// return auths; -// } -// } -// -//// @Override -//// public EmailAuth updateEmailAuth(EmailAuth emailAuth) { -//// EntityTransaction tx = this.getEntityManager().getTransaction(); -//// if (!tx.isActive()) { -//// tx.begin(); -//// } -//// -//// try { -//// emailAuth.setUpdateDate(new Date()); -//// -//// EmailAuth result = this.getEntityManager().merge(emailAuth); -//// tx.commit(); -//// return result; -//// }catch (Exception e) { -//// tx.rollback(); -//// return null; -//// } -//// } -//} diff --git a/src/test/java/com/loafle/overflow/module/member/dao/MemberDAOTest.java b/src/test/java/com/loafle/overflow/module/member/dao/MemberDAOTest.java index 213584c..2dc53cf 100644 --- a/src/test/java/com/loafle/overflow/module/member/dao/MemberDAOTest.java +++ b/src/test/java/com/loafle/overflow/module/member/dao/MemberDAOTest.java @@ -4,6 +4,7 @@ import com.loafle.overflow.AppConfig; import com.loafle.overflow.JdbcConfiguration; import com.loafle.overflow.meta.model.MetaMemberStatus; import com.loafle.overflow.module.member.model.Member; +import org.junit.Ignore; import org.junit.Test; import org.junit.runner.RunWith; import org.springframework.beans.factory.annotation.Autowired; @@ -15,6 +16,7 @@ import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; */ @RunWith(SpringJUnit4ClassRunner.class) @ContextConfiguration(classes = {AppConfig.class, JdbcConfiguration.class}) +//@Ignore public class MemberDAOTest {