Last change
on this file was ed20c2c, checked in by HumaSejdini <humasejdini12@…>, 2 years ago |
Initial commit
|
-
Property mode
set to
100644
|
File size:
719 bytes
|
Line | |
---|
1 | package com.example.baza.repository;
|
---|
2 |
|
---|
3 |
|
---|
4 | import com.example.baza.model.Chlen2;
|
---|
5 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
6 | import org.springframework.stereotype.Repository;
|
---|
7 |
|
---|
8 | import java.time.Instant;
|
---|
9 | import java.util.List;
|
---|
10 |
|
---|
11 | @Repository
|
---|
12 | public interface ChlenRepository extends JpaRepository<Chlen2, Integer> {
|
---|
13 | // @Query(value = "SELECT ch.broj FROM Chlen ch WHERE ch.broj=1")//mislam deka vaka bi trebalo da e,
|
---|
14 | // ama pravi problem posto na scriptata vo dbeaver imam staveno brishenje (cascade) i ne mi dava so /h2 da proveruvam
|
---|
15 | Chlen2 findByBroj (Integer broj);
|
---|
16 |
|
---|
17 | List<Chlen2> findByDatumNaZachlenuvanje(Instant datumNaZachlenuvanje);
|
---|
18 |
|
---|
19 | List<Chlen2> findByChovek_Id(Integer id);
|
---|
20 |
|
---|
21 | } |
---|
Note:
See
TracBrowser
for help on using the repository browser.