Last change
on this file since 8bcd64c was 8bcd64c, checked in by Gjoko Kostadinov <gjoko.kostadinov@…>, 15 months ago |
Add admin functionality and business admin functionality.
|
-
Property mode
set to
100644
|
File size:
532 bytes
|
Rev | Line | |
---|
[46fd0c7] | 1 | package edu.gjoko.schedlr.repositories;
|
---|
| 2 |
|
---|
| 3 | import edu.gjoko.schedlr.entity.Business;
|
---|
| 4 | import edu.gjoko.schedlr.entity.BusinessStatus;
|
---|
[8bcd64c] | 5 | import edu.gjoko.schedlr.entity.Stakeholder;
|
---|
[46fd0c7] | 6 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
| 7 | import org.springframework.stereotype.Repository;
|
---|
| 8 |
|
---|
| 9 | import java.util.List;
|
---|
| 10 |
|
---|
| 11 | @Repository
|
---|
| 12 | public interface BusinessRepository extends JpaRepository<Business, Long> {
|
---|
| 13 |
|
---|
| 14 | List<Business> findBusinessesByBusinessStatus(BusinessStatus status);
|
---|
[8bcd64c] | 15 |
|
---|
| 16 | Business findBusinessByOwner(Stakeholder owner);
|
---|
[46fd0c7] | 17 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.