main
Last change
on this file since ac151d1 was ac151d1, checked in by David <darsov2@…>, 11 days ago |
initial
|
-
Property mode
set to
100644
|
File size:
346 bytes
|
Line | |
---|
1 | package mk.ukim.finki.eglas.repository.specification;
|
---|
2 |
|
---|
3 | import mk.ukim.finki.eglas.model.Turnout;
|
---|
4 | import org.springframework.data.jpa.domain.Specification;
|
---|
5 |
|
---|
6 | public class TurnoutSpecification {
|
---|
7 | public static Specification<Turnout> hasMunicipalityId(Long id) {
|
---|
8 | return (root, query, cb) -> cb.equal(root.get("municipality"), id);
|
---|
9 | }
|
---|
10 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.