Почищен код
This commit is contained in:
@@ -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"),
|
||||||
|
|||||||
@@ -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);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user