Почищен код

This commit is contained in:
sshkurov
2022-02-06 11:53:15 +03:00
parent 3b5662548f
commit ae19082418
2 changed files with 1 additions and 5 deletions

View File

@@ -53,7 +53,7 @@ public class Stream {
private long endTimestamp; private long endTimestamp;
@ManyToMany @ManyToMany(fetch = FetchType.EAGER)
@JoinTable( @JoinTable(
name = "stream_found_patterns", name = "stream_found_patterns",
joinColumns = @JoinColumn(name = "stream_id"), joinColumns = @JoinColumn(name = "stream_id"),

View File

@@ -307,10 +307,6 @@ public class StreamService {
return (root, query, cb) -> cb.equal(root.get("favorite"), true); return (root, query, cb) -> cb.equal(root.get("favorite"), true);
} }
private Specification<Stream> streamIdGreaterThan(long id) {
return (root, query, cb) -> cb.greaterThan(root.get("id"), id);
}
private Specification<Stream> streamIdLessThan(long id) { private Specification<Stream> streamIdLessThan(long id) {
return (root, query, cb) -> cb.lessThan(root.get("id"), id); return (root, query, cb) -> cb.lessThan(root.get("id"), id);
} }