This commit is contained in:
insanity 2018-04-26 17:16:53 +09:00
parent 3b36c6ade2
commit 31a0b35d35
2 changed files with 2 additions and 2 deletions

View File

@ -9,6 +9,6 @@ import org.springframework.stereotype.Repository;
*/
@Repository
public interface InfraHostDAO extends JpaRepository<InfraHost, Long> {
InfraHost findByIp(String ip);
InfraHost findByIpv4(String ipv4);
}

View File

@ -25,6 +25,6 @@ public class CentralInfraHostService implements InfraHostService {
}
public InfraHost readByIp(String ip) throws OverflowException {
return this.infraHostDAO.findByIp(ip);
return this.infraHostDAO.findByIpv4(ip);
}
}