-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
CREATE NOMENCLATURE CONTROLLER TODO: DOCUMENT MANIPULATION DOCUMENT FILE MANIPULATION TASK MANIPULATION SHOW CONTEOLLED TASK FOR USER SHOW USERS TASK STOREHAUSE MANIPULATION GOOD PRODUCTION AND SERVICE REGISTER BED PRODUCT
- Loading branch information
1 parent
be7cc3e
commit 2ee6a17
Showing
14 changed files
with
407 additions
and
45 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
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
16 changes: 16 additions & 0 deletions
16
src/main/java/ua/pp/fairwind/favorid/internalDB/repository/MovementRepository.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,11 +1,27 @@ | ||
package ua.pp.fairwind.favorid.internalDB.repository; | ||
|
||
import org.springframework.data.domain.Page; | ||
import org.springframework.data.domain.Pageable; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
import org.springframework.data.jpa.repository.Query; | ||
import org.springframework.data.repository.query.Param; | ||
import ua.pp.fairwind.favorid.internalDB.model.document.Document; | ||
import ua.pp.fairwind.favorid.internalDB.model.storehouses.MOVEMENT_TYPES; | ||
import ua.pp.fairwind.favorid.internalDB.model.storehouses.Movement; | ||
|
||
import java.util.List; | ||
|
||
|
||
/** | ||
* Created by Ñåðãåé on 07.10.2015. | ||
*/ | ||
|
||
public interface MovementRepository extends JpaRepository<Movement,Long>{ | ||
Page<Movement> findByTypeMovement(MOVEMENT_TYPES typeMovement,Pageable pager); | ||
List<Movement> findByTypeMovement(MOVEMENT_TYPES typeMovement); | ||
|
||
@Query("select m.documents from Movement m where m.id=:movement") | ||
Page<Document> documents(@Param(value = "movement")long id,Pageable pager); | ||
@Query("select m.documents from Movement m where m.id=:movement") | ||
List<Document> documents(@Param(value = "movement")long id); | ||
} |
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
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
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.