Last change
on this file was 1413ee2, checked in by gjoko kostadinov <gjokokostadinov@…>, 6 months ago |
Add all bug fixes.
|
-
Property mode
set to
100755
|
File size:
696 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;
|
---|
[950fa0d] | 5 | import edu.gjoko.schedlr.entity.BusinessType;
|
---|
[8bcd64c] | 6 | import edu.gjoko.schedlr.entity.Stakeholder;
|
---|
[950fa0d] | 7 | import org.hibernate.Session;
|
---|
[46fd0c7] | 8 | import org.springframework.data.jpa.repository.JpaRepository;
|
---|
| 9 | import org.springframework.stereotype.Repository;
|
---|
| 10 |
|
---|
| 11 | import java.util.List;
|
---|
| 12 |
|
---|
| 13 | @Repository
|
---|
| 14 | public interface BusinessRepository extends JpaRepository<Business, Long> {
|
---|
| 15 |
|
---|
[8bcd64c] | 16 | Business findBusinessByOwner(Stakeholder owner);
|
---|
[950fa0d] | 17 |
|
---|
[1413ee2] | 18 | Business findBusinessesByOwner_Id(Long ownerId);
|
---|
[77205be] | 19 | List<Business> findBusinessesByBusinessStatusAndBusinessType_Id(BusinessStatus businessStatus, Long id);
|
---|
[46fd0c7] | 20 | }
|
---|
Note:
See
TracBrowser
for help on using the repository browser.