Changeset 950fa0d for src/main/java/edu/gjoko/schedlr/repositories
- Timestamp:
- 05/24/23 23:18:47 (18 months ago)
- Branches:
- master
- Children:
- 77205be
- Parents:
- 8bcd64c
- Location:
- src/main/java/edu/gjoko/schedlr/repositories
- Files:
-
- 2 added
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/main/java/edu/gjoko/schedlr/repositories/BusinessRepository.java
r8bcd64c r950fa0d 3 3 import edu.gjoko.schedlr.entity.Business; 4 4 import edu.gjoko.schedlr.entity.BusinessStatus; 5 import edu.gjoko.schedlr.entity.BusinessType; 5 6 import edu.gjoko.schedlr.entity.Stakeholder; 7 import org.hibernate.Session; 6 8 import org.springframework.data.jpa.repository.JpaRepository; 7 9 import org.springframework.stereotype.Repository; … … 12 14 public interface BusinessRepository extends JpaRepository<Business, Long> { 13 15 14 List<Business> findBusinessesByBusinessStatus(BusinessStatus status);16 Business findBusinessByOwner(Stakeholder owner); 15 17 16 Business findBusinessByOwner(Stakeholder owner);18 List<Business> findBusinessesByBusinessTypeAndBusinessStatus(BusinessType businessType, BusinessStatus businessStatus); 17 19 }
Note:
See TracChangeset
for help on using the changeset viewer.