probe service orderby

This commit is contained in:
insanity 2017-08-22 18:55:16 +09:00
parent a490a4b851
commit eba880ab1a
2 changed files with 2 additions and 2 deletions

View File

@ -17,5 +17,5 @@ public interface ProbeDAO extends JpaRepository<Probe, Long> {
Probe findByProbeKey(String probeKey);
List<Probe> findAllByDomain(Domain domain);
List<Probe> findAllByDomainOrderByIdDesc(Domain domain);
}

View File

@ -23,7 +23,7 @@ public class ProbeService {
public List<Probe> readAllByDomain(Domain domain) {
return this.probeDAO.findAllByDomain(domain);
return this.probeDAO.findAllByDomainOrderByIdDesc(domain);
}
public Probe read(long id) {