This repository has been archived by the owner on Nov 8, 2024. It is now read-only.
-
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.
- Loading branch information
Showing
34 changed files
with
931 additions
and
31 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
HELP.md | ||
target/ | ||
/.idea | ||
!.mvn/wrapper/maven-wrapper.jar | ||
!**/src/main/**/target/ | ||
!**/src/test/**/target/ | ||
|
45 changes: 45 additions & 0 deletions
45
backend/src/main/java/com/senac/gestaocurso/dto/AulaDto.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 |
---|---|---|
@@ -0,0 +1,45 @@ | ||
package com.senac.gestaocurso.dto; | ||
|
||
import java.io.Serializable; | ||
import java.time.LocalDate; | ||
import java.util.Objects; | ||
|
||
|
||
public class AulaDto implements Serializable { | ||
private final Long id; | ||
private final LocalDate dia; | ||
|
||
public AulaDto(Long id, LocalDate dia) { | ||
this.id = id; | ||
this.dia = dia; | ||
} | ||
|
||
public Long getId() { | ||
return id; | ||
} | ||
|
||
public LocalDate getDia() { | ||
return dia; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
AulaDto entity = (AulaDto) o; | ||
return Objects.equals(this.id, entity.id) && | ||
Objects.equals(this.dia, entity.dia); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(id, dia); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return getClass().getSimpleName() + "(" + | ||
"id = " + id + ", " + | ||
"dia = " + dia + ")"; | ||
} | ||
} |
61 changes: 61 additions & 0 deletions
61
backend/src/main/java/com/senac/gestaocurso/dto/AvaliacaoDto.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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
package com.senac.gestaocurso.dto; | ||
|
||
import java.io.Serializable; | ||
import java.time.LocalDate; | ||
import java.util.Objects; | ||
|
||
|
||
public class AvaliacaoDto implements Serializable { | ||
private final Long id; | ||
private final String nome; | ||
private final Integer nota; | ||
private final LocalDate data; | ||
|
||
public AvaliacaoDto(Long id, String nome, Integer nota, LocalDate data) { | ||
this.id = id; | ||
this.nome = nome; | ||
this.nota = nota; | ||
this.data = data; | ||
} | ||
|
||
public Long getId() { | ||
return id; | ||
} | ||
|
||
public String getNome() { | ||
return nome; | ||
} | ||
|
||
public Integer getNota() { | ||
return nota; | ||
} | ||
|
||
public LocalDate getData() { | ||
return data; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
AvaliacaoDto entity = (AvaliacaoDto) o; | ||
return Objects.equals(this.id, entity.id) && | ||
Objects.equals(this.nome, entity.nome) && | ||
Objects.equals(this.nota, entity.nota) && | ||
Objects.equals(this.data, entity.data); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(id, nome, nota, data); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return getClass().getSimpleName() + "(" + | ||
"id = " + id + ", " + | ||
"nome = " + nome + ", " + | ||
"nota = " + nota + ", " + | ||
"data = " + data + ")"; | ||
} | ||
} |
60 changes: 60 additions & 0 deletions
60
backend/src/main/java/com/senac/gestaocurso/dto/CargoDto.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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
package com.senac.gestaocurso.dto; | ||
|
||
import java.io.Serializable; | ||
import java.util.Objects; | ||
|
||
|
||
public class CargoDto implements Serializable { | ||
private final Long id; | ||
private final String descricao; | ||
private final String nivel; | ||
private final Boolean comissionado; | ||
|
||
public CargoDto(Long id, String descricao, String nivel, Boolean comissionado) { | ||
this.id = id; | ||
this.descricao = descricao; | ||
this.nivel = nivel; | ||
this.comissionado = comissionado; | ||
} | ||
|
||
public Long getId() { | ||
return id; | ||
} | ||
|
||
public String getDescricao() { | ||
return descricao; | ||
} | ||
|
||
public String getNivel() { | ||
return nivel; | ||
} | ||
|
||
public Boolean getComissionado() { | ||
return comissionado; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
CargoDto entity = (CargoDto) o; | ||
return Objects.equals(this.id, entity.id) && | ||
Objects.equals(this.descricao, entity.descricao) && | ||
Objects.equals(this.nivel, entity.nivel) && | ||
Objects.equals(this.comissionado, entity.comissionado); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(id, descricao, nivel, comissionado); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return getClass().getSimpleName() + "(" + | ||
"id = " + id + ", " + | ||
"descricao = " + descricao + ", " + | ||
"nivel = " + nivel + ", " + | ||
"comissionado = " + comissionado + ")"; | ||
} | ||
} |
61 changes: 61 additions & 0 deletions
61
backend/src/main/java/com/senac/gestaocurso/dto/CertificacoesDto.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 |
---|---|---|
@@ -0,0 +1,61 @@ | ||
package com.senac.gestaocurso.dto; | ||
|
||
import java.io.Serializable; | ||
import java.time.LocalDate; | ||
import java.util.Objects; | ||
|
||
|
||
public class CertificacoesDto implements Serializable { | ||
private final Long id; | ||
private final String nome; | ||
private final Integer cargaHoraria; | ||
private final LocalDate dataEmissao; | ||
|
||
public CertificacoesDto(Long id, String nome, Integer cargaHoraria, LocalDate dataEmissao) { | ||
this.id = id; | ||
this.nome = nome; | ||
this.cargaHoraria = cargaHoraria; | ||
this.dataEmissao = dataEmissao; | ||
} | ||
|
||
public Long getId() { | ||
return id; | ||
} | ||
|
||
public String getNome() { | ||
return nome; | ||
} | ||
|
||
public Integer getCargaHoraria() { | ||
return cargaHoraria; | ||
} | ||
|
||
public LocalDate getDataEmissao() { | ||
return dataEmissao; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
CertificacoesDto entity = (CertificacoesDto) o; | ||
return Objects.equals(this.id, entity.id) && | ||
Objects.equals(this.nome, entity.nome) && | ||
Objects.equals(this.cargaHoraria, entity.cargaHoraria) && | ||
Objects.equals(this.dataEmissao, entity.dataEmissao); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(id, nome, cargaHoraria, dataEmissao); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return getClass().getSimpleName() + "(" + | ||
"id = " + id + ", " + | ||
"nome = " + nome + ", " + | ||
"cargaHoraria = " + cargaHoraria + ", " + | ||
"dataEmissao = " + dataEmissao + ")"; | ||
} | ||
} |
52 changes: 52 additions & 0 deletions
52
backend/src/main/java/com/senac/gestaocurso/dto/CursoDto.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 |
---|---|---|
@@ -0,0 +1,52 @@ | ||
package com.senac.gestaocurso.dto; | ||
|
||
import java.io.Serializable; | ||
import java.util.Objects; | ||
|
||
|
||
public class CursoDto implements Serializable { | ||
private final String nome; | ||
private final String descricao; | ||
private final Integer cargaHorariaTotal; | ||
|
||
public CursoDto(String nome, String descricao, Integer cargaHorariaTotal) { | ||
this.nome = nome; | ||
this.descricao = descricao; | ||
this.cargaHorariaTotal = cargaHorariaTotal; | ||
} | ||
|
||
public String getNome() { | ||
return nome; | ||
} | ||
|
||
public String getDescricao() { | ||
return descricao; | ||
} | ||
|
||
public Integer getCargaHorariaTotal() { | ||
return cargaHorariaTotal; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
CursoDto entity = (CursoDto) o; | ||
return Objects.equals(this.nome, entity.nome) && | ||
Objects.equals(this.descricao, entity.descricao) && | ||
Objects.equals(this.cargaHorariaTotal, entity.cargaHorariaTotal); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(nome, descricao, cargaHorariaTotal); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return getClass().getSimpleName() + "(" + | ||
"nome = " + nome + ", " + | ||
"descricao = " + descricao + ", " + | ||
"cargaHorariaTotal = " + cargaHorariaTotal + ")"; | ||
} | ||
} |
62 changes: 62 additions & 0 deletions
62
backend/src/main/java/com/senac/gestaocurso/dto/DadosBancariosDto.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 |
---|---|---|
@@ -0,0 +1,62 @@ | ||
package com.senac.gestaocurso.dto; | ||
|
||
import com.senac.gestaocurso.enums.TipoContaBancaria; | ||
|
||
import java.io.Serializable; | ||
import java.util.Objects; | ||
|
||
|
||
public class DadosBancariosDto implements Serializable { | ||
private final String banco; | ||
private final String agencia; | ||
private final String conta; | ||
private final TipoContaBancaria tipoContaBancaria; | ||
|
||
public DadosBancariosDto(String banco, String agencia, String conta, TipoContaBancaria tipoContaBancaria) { | ||
this.banco = banco; | ||
this.agencia = agencia; | ||
this.conta = conta; | ||
this.tipoContaBancaria = tipoContaBancaria; | ||
} | ||
|
||
public String getBanco() { | ||
return banco; | ||
} | ||
|
||
public String getAgencia() { | ||
return agencia; | ||
} | ||
|
||
public String getConta() { | ||
return conta; | ||
} | ||
|
||
public TipoContaBancaria getTipoContaBancaria() { | ||
return tipoContaBancaria; | ||
} | ||
|
||
@Override | ||
public boolean equals(Object o) { | ||
if (this == o) return true; | ||
if (o == null || getClass() != o.getClass()) return false; | ||
DadosBancariosDto entity = (DadosBancariosDto) o; | ||
return Objects.equals(this.banco, entity.banco) && | ||
Objects.equals(this.agencia, entity.agencia) && | ||
Objects.equals(this.conta, entity.conta) && | ||
Objects.equals(this.tipoContaBancaria, entity.tipoContaBancaria); | ||
} | ||
|
||
@Override | ||
public int hashCode() { | ||
return Objects.hash(banco, agencia, conta, tipoContaBancaria); | ||
} | ||
|
||
@Override | ||
public String toString() { | ||
return getClass().getSimpleName() + "(" + | ||
"banco = " + banco + ", " + | ||
"agencia = " + agencia + ", " + | ||
"conta = " + conta + ", " + | ||
"tipoContaBancaria = " + tipoContaBancaria + ")"; | ||
} | ||
} |
Oops, something went wrong.