Skip to content
Open
Changes from 1 commit
Commits
Show all changes
53 commits
Select commit Hold shift + click to select a range
8be7359
Feature: add docs; research and clients to Attorney
marco-pcg May 8, 2025
695ed1a
Test: add test of basic properties of an Attorney.
marco-pcg May 8, 2025
be43f83
Fix: remove default setName and setType in Attorney's constructor
marco-pcg May 9, 2025
2d05480
Feature: add ArrayList (attorneys) and improve method info() - adding…
marco-pcg May 9, 2025
dbee07b
Test: add unit test and integration test of classes (Attorney and Law)
marco-pcg May 9, 2025
e67bad1
add prova restaurante
marco-pcg Jun 8, 2025
9ce5649
remove: classes
marco-pcg Jun 17, 2025
7282672
criei a classe pessoa
Zbio7 Jun 17, 2025
d60c8e8
Create Endereco.java
kdunog Jun 17, 2025
d4e7c85
add cliente
rebeccaveltri05 Jun 17, 2025
373586b
add funcionario
rebeccaveltri05 Jun 17, 2025
29a1028
Merge branch 'wip-nova-prova-restaurante' of https://github.com/Dev-M…
rebeccaveltri05 Jun 17, 2025
8e6c8f8
Merge branch 'wip-nova-prova-restaurante' of https://github.com/Dev-M…
kdunog Jun 17, 2025
4b755cf
add class pedido
kdunog Jun 17, 2025
e4eed2b
Merge branch 'wip-nova-prova-restaurante' of https://github.com/Dev-M…
kdunog Jun 17, 2025
cff6558
add classe pix e produto
Zbio7 Jun 17, 2025
605fda9
add class Especie
kdunog Jun 17, 2025
74d1372
Merge branch 'wip-nova-prova-restaurante' of https://github.com/Dev-M…
Zbio7 Jun 17, 2025
e46c758
Merge branch 'wip-nova-prova-restaurante' of https://github.com/Dev-M…
kdunog Jun 17, 2025
92740df
add interface INFCGenerator
kdunog Jun 17, 2025
15c9ed4
add item
rebeccaveltri05 Jun 17, 2025
550bd19
add pagamento
rebeccaveltri05 Jun 17, 2025
4898edf
add class Mesa
kdunog Jun 17, 2025
7592f29
Merge branch 'wip-nova-prova-restaurante' of https://github.com/Dev-M…
rebeccaveltri05 Jun 17, 2025
cfeacd9
fix: myapp
marco-pcg Jun 17, 2025
7f77966
add nota fiscal
kdunog Jun 17, 2025
e22cbec
feat: add README; add folders
marco-pcg Jun 24, 2025
5bc5c95
feat: add db
marco-pcg Jun 24, 2025
b0733fe
feat: add funcionario e item;
marco-pcg Jun 24, 2025
7489750
feat: Funcionario, Item, Pessoa e Produto
marco-pcg Jun 24, 2025
3117aeb
commitando
Zbio7 Jun 24, 2025
316f30c
Merge branch 'feat-marco-romario-add-mvc-restaurante' of https://gith…
Zbio7 Jun 24, 2025
ff25f32
update: db
marco-pcg Jun 25, 2025
0ea73c2
feat: add Item controller, DAO and Scan
marco-pcg Jun 25, 2025
1f5e7c5
refactor: aline methods from Item
marco-pcg Jun 28, 2025
bc897ac
feat: add toString in Funcionario
marco-pcg Jun 28, 2025
c3f4957
feat: add getNexId() - Funcionario
marco-pcg Jun 28, 2025
2599464
feat: add property id + getters and setters (Funcionario)
marco-pcg Jun 28, 2025
8b524d0
feat: add method add() (Funcionario)
marco-pcg Jun 28, 2025
611b255
feat: add constructor with nome, cpf, cargo and ctps (Funcionario)
marco-pcg Jun 28, 2025
05165b9
feat: add getAll; fix: add() and getNextId()
marco-pcg Jun 28, 2025
6af843d
fix: file path = funcionario.txt
marco-pcg Jun 28, 2025
2b866c0
feat: add showMenu(), getFuncionarioDetails(), showFuncionarios(), ge…
marco-pcg Jun 28, 2025
88864ad
feat: add CreateFuncionario(), readFuncionarios(), deleteFuncionario(…
marco-pcg Jun 28, 2025
e85575b
feat: add delete(int id) - FuncionarioDAO
marco-pcg Jun 28, 2025
5affcb6
refactor: add opcao antes do loop
marco-pcg Jun 28, 2025
2341dd1
add: file
marco-pcg Jun 28, 2025
a56af6b
refactor: delete...() returns boolean
marco-pcg Jun 28, 2025
f8f19a4
Merge branch 'feat-marco-romario-add-mvc-restaurante' into test-marco…
marco-pcg Jul 1, 2025
a12d148
feat: add relative path - Funcionario and Item
marco-pcg Jul 1, 2025
f6b29e7
add file
marco-pcg Jul 1, 2025
8d8f8df
implementação dos arquivos e funcionalidades da mesa
Zbio7 Jul 1, 2025
2ec35d5
produtoDao ajustado com sucesso
Zbio7 Jul 5, 2025
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
feat: add getNexId() - Funcionario
  • Loading branch information
marco-pcg committed Jun 28, 2025
commit c3f4957922fa28e7567659532309be2bb83a0f1c
28 changes: 27 additions & 1 deletion avaliacoes/restaurante/src/main/java/DAO/FuncionarioDAO.java
Original file line number Diff line number Diff line change
@@ -1,5 +1,31 @@
package DAO;

import java.util.ArrayList;

import models.Funcionario;
import models.Item;

public class FuncionarioDAO {

public String path = "c:\\Users\\Marco\\Documents\\programming\\java\\cefet\\java-exercicios\\avaliacoes\\restaurante\\src\\main\\java\\db\\item.txt";

}
public void add (Funcionario funcionario){

int id = this.getNextId();
}

private int getNextId() {

int maxId = 0;
ArrayList<Item> items = getAll();

for (Item i : items ) {
if (i.getId() > maxId) {
maxId = i.getId();
}
}

return maxId + 1;
}

}