Last change
on this file was ed20c2c, checked in by HumaSejdini <humasejdini12@…>, 2 years ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
545 bytes
|
Line | |
---|
1 | package com.example.baza.repository;
|
---|
2 |
|
---|
3 |
|
---|
4 | import com.example.baza.model.Kazna;
|
---|
5 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
6 | import org.springframework.stereotype.Repository;
|
---|
7 |
|
---|
8 | import java.time.LocalDate;
|
---|
9 | import java.util.List;
|
---|
10 | import java.util.Optional;
|
---|
11 |
|
---|
12 | @Repository
|
---|
13 | public interface KaznaRepository extends JpaRepository<Kazna, Integer> {
|
---|
14 | Optional<Kazna> findById(Integer integer);
|
---|
15 |
|
---|
16 | void deleteById(Integer integer);
|
---|
17 |
|
---|
18 | List<Kazna> findByDatum(LocalDate datum);
|
---|
19 |
|
---|
20 | List<Kazna> findByCenaVoDenari(Double cenaVoDenari);
|
---|
21 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.