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:
571 bytes
|
Line | |
---|
1 | package mk.ukim.finki.eglas.repository;
|
---|
2 |
|
---|
3 | import mk.ukim.finki.eglas.model.VoteIdentificationCode;
|
---|
4 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
5 | import org.springframework.data.jpa.repository.Query;
|
---|
6 |
|
---|
7 | import java.util.Optional;
|
---|
8 | import java.util.UUID;
|
---|
9 |
|
---|
10 | public interface VoteIdentificationCodeRepository extends JpaRepository<VoteIdentificationCode, UUID> {
|
---|
11 | @Query(value = "select * from kodovi_za_identifikacija where used = false order by random() limit 1", nativeQuery = true)
|
---|
12 | Optional<VoteIdentificationCode> findRandomVoteIdentificationCode();
|
---|
13 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.