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:
1.1 KB
|
Line | |
---|
1 | package mk.ukim.finki.eglas.repository;
|
---|
2 |
|
---|
3 | import mk.ukim.finki.eglas.model.Address;
|
---|
4 | import mk.ukim.finki.eglas.model.Municipality;
|
---|
5 | import mk.ukim.finki.eglas.model.PollingStation;
|
---|
6 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
7 | import org.springframework.data.jpa.repository.Query;
|
---|
8 |
|
---|
9 | import java.util.List;
|
---|
10 | import java.util.Optional;
|
---|
11 |
|
---|
12 | public interface AddressRepository extends JpaRepository<Address, Long> {
|
---|
13 | @Query("select distinct a.street from Address a")
|
---|
14 | List<String> findAllDistinctStreet();
|
---|
15 | Optional<Address> findByStreetLikeAndHouseNumberAndEntranceNumberAndApartmentNumberAndMunicipality_Id(String street,
|
---|
16 | Integer houseNumber,
|
---|
17 | Integer entranceNumber,
|
---|
18 | Integer apartmentNumber,
|
---|
19 | Long municipality);
|
---|
20 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.