1.0.0-RELEASE
This commit is contained in:
parent
8757f203c1
commit
25406a261b
2
pom.xml
2
pom.xml
|
@ -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>
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user