1.0.0-RELEASE

This commit is contained in:
insanity 2017-05-29 19:17:10 +09:00
parent 8757f203c1
commit 25406a261b
2 changed files with 9 additions and 2 deletions

View File

@ -19,7 +19,7 @@
<dependency>
<groupId>com.loafle</groupId>
<artifactId>overflow_jpa_base_dao</artifactId>
<version>1.0.0-RELEASE</version>
<version>1.0.0-SNAPSHOT</version>
</dependency>
<dependency>

View File

@ -14,6 +14,13 @@ public class JPAMemberDAO extends JPABaseDAO<Member> implements MemberDAO{
Query query = getEntityManager().createNativeQuery("SELECT m.* FROM MEMBER m WHERE m.email = :email", Member.class);
query.setParameter("email", member.getEmail());
return (Member)query.getSingleResult();
Member retMember = null;
try {
retMember = (Member)query.getSingleResult();
}catch(Exception e) {
e.printStackTrace();
}finally {
return retMember;
}
}
}