Skip to content

Commit

Permalink
Conserto do método readAll() de DAOPessoa
Browse files Browse the repository at this point in the history
Eminence
  • Loading branch information
AllanSmithll authored Nov 30, 2023
2 parents e217137 + 31df923 commit 4ed5fd3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/daojpa/DAOPessoa.java
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ public Pessoa read(Object chave) {
}

public List<Pessoa> readAll(){
TypedQuery<Pessoa> q = manager.createQuery("select p from Pessoa p JOIN FETCH p.reunioes ", Pessoa.class);
TypedQuery<Pessoa> q = manager.createQuery("select p from Pessoa p LEFT JOIN FETCH p.reunioes ", Pessoa.class);
return q.getResultList();
}
//listarPessoasEmMaisDeNReunioes
Expand Down

0 comments on commit 4ed5fd3

Please sign in to comment.