This commit is contained in:
snoop 2017-06-22 21:18:10 +09:00
parent 8d5815ecbb
commit 24b353c3d3
3 changed files with 6 additions and 6 deletions

View File

@ -10,6 +10,6 @@ import org.springframework.stereotype.Repository;
*/
@Repository
public interface MemberDAO extends JpaRepository<Member, Long> {
@Query("SELECT m FROM MEMBER m WHERE m.email = :email")
Member findByEmail(Member member);
// @Query("SELECT m FROM MEMBER m WHERE m.email = :email")
// Member findByEmail(Member member);
}

View File

@ -14,6 +14,6 @@ public interface NoAuthProbeDAO extends JpaRepository<NoAuthProbe, Long> {
// NoAuthProbeDeprecate findByTempKey(NoAuthProbeDeprecate noAuthAgent);
// List<NoAuthProbeDeprecate> findAllByNoAuth(NoAuthProbeDeprecate noAuthAgent);
@Query("SELECT n FROM NoAuthProbe n WHERE n.tempProbeKey = :tempProbeKey")
NoAuthProbe findByTempKey(@Param("tempProbeKey")String tempProbeKey);
// @Query("SELECT n FROM NoAuthProbe n WHERE n.tempProbeKey = :tempProbeKey")
// NoAuthProbe findByTempKey(@Param("tempProbeKey")String tempProbeKey);
}

View File

@ -120,11 +120,11 @@ public class NoAuthProbe {
@ManyToOne
@JoinColumn(name = "PROBE_ID", nullable = true)
public Probe getProbeId() {
public Probe getProbe() {
return probe;
}
public void setProbeId(Probe probe) {
public void setProbe(Probe probe) {
this.probe = probe;
}