probe service orderby
This commit is contained in:
parent
a490a4b851
commit
eba880ab1a
|
@ -17,5 +17,5 @@ public interface ProbeDAO extends JpaRepository<Probe, Long> {
|
||||||
|
|
||||||
Probe findByProbeKey(String probeKey);
|
Probe findByProbeKey(String probeKey);
|
||||||
|
|
||||||
List<Probe> findAllByDomain(Domain domain);
|
List<Probe> findAllByDomainOrderByIdDesc(Domain domain);
|
||||||
}
|
}
|
|
@ -23,7 +23,7 @@ public class ProbeService {
|
||||||
|
|
||||||
public List<Probe> readAllByDomain(Domain domain) {
|
public List<Probe> readAllByDomain(Domain domain) {
|
||||||
|
|
||||||
return this.probeDAO.findAllByDomain(domain);
|
return this.probeDAO.findAllByDomainOrderByIdDesc(domain);
|
||||||
}
|
}
|
||||||
|
|
||||||
public Probe read(long id) {
|
public Probe read(long id) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user