-
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.
Merge pull request #63 from RavinProject/issue-47-gerenciar-mesas
Issue 63 - Gerenciamento de Reservas
- Loading branch information
Showing
66 changed files
with
815 additions
and
341 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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
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
8 changes: 8 additions & 0 deletions
8
src/main/java/org/ravin/controllers/interfaces/IController.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
21 changes: 21 additions & 0 deletions
21
src/main/java/org/ravin/controllers/interfaces/IEstoqueController.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,9 +1,30 @@ | ||
/** | ||
* Interface para definir a funcionalidade de um controlador de estoque. | ||
* | ||
* <p>Essa interface estende {@code IController<Estoque>} para fornecer funcionalidades específicas para gerenciar um estoque. | ||
* As operações adicionais incluem a recuperação de um estoque por código e a verificação se um estoque já foi cadastrado. | ||
* | ||
* @see IController | ||
*/ | ||
package org.ravin.controllers.interfaces; | ||
|
||
import org.ravin.models.Estoque; | ||
import org.ravin.utils.exceptions.EntidadeNaoEncontradaException; | ||
|
||
public interface IEstoqueController extends IController<Estoque>{ | ||
/** | ||
* Recupera um estoque por seu código. | ||
* | ||
* @param codigo O código do estoque a ser recuperado. | ||
* @return O objeto Estoque correspondente ao código fornecido. | ||
* @throws EntidadeNaoEncontradaException Se o estoque com o código fornecido não for encontrado. | ||
*/ | ||
Estoque recuperarPorCodigo(String codigo) throws EntidadeNaoEncontradaException; | ||
/** | ||
* Verifica se um estoque já foi cadastrado. | ||
* | ||
* @param codigo O código do estoque a ser verificado. | ||
* @return {@code true} se o estoque com o código fornecido já foi cadastrado, {@code false} caso contrário. | ||
*/ | ||
boolean estoqueJaCadastrado(String codigo); | ||
} |
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
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.