-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implemented method to get the assignments by consultantId or by custo…
…merId Added tests
- Loading branch information
Kaj Van der Hallen
committed
Sep 25, 2015
1 parent
201ea7d
commit 73eba34
Showing
5 changed files
with
521 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
6 changes: 4 additions & 2 deletions
6
...n/java/be/foreseegroup/micro/resourceservice/assignment/service/AssignmentRepository.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,12 @@ | ||
package be.foreseegroup.micro.resourceservice.assignment.service; | ||
|
||
import be.foreseegroup.micro.resourceservice.assignment.model.Assignment; | ||
import org.springframework.data.repository.CrudRepository; | ||
import org.springframework.data.mongodb.repository.MongoRepository; | ||
|
||
/** | ||
* Created by Kaj on 24/09/15. | ||
*/ | ||
public interface AssignmentRepository extends CrudRepository<Assignment, String> { | ||
public interface AssignmentRepository extends MongoRepository<Assignment, String> { | ||
Iterable<Assignment> findByConsultantId(String consultantId); | ||
Iterable<Assignment> findByCustomerId(String customerId); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.