Skip to content
This repository has been archived by the owner on Nov 8, 2024. It is now read-only.

Commit

Permalink
Merge branch 'main' into lucas
Browse files Browse the repository at this point in the history
  • Loading branch information
lucas0headshot committed Jun 5, 2024
2 parents 999591c + b63cecc commit a711acf
Show file tree
Hide file tree
Showing 34 changed files with 931 additions and 31 deletions.
1 change: 1 addition & 0 deletions backend/.gitignore
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/
Expand Down
45 changes: 45 additions & 0 deletions backend/src/main/java/com/senac/gestaocurso/dto/AulaDto.java
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 backend/src/main/java/com/senac/gestaocurso/dto/AvaliacaoDto.java
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 backend/src/main/java/com/senac/gestaocurso/dto/CargoDto.java
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 + ")";
}
}
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 backend/src/main/java/com/senac/gestaocurso/dto/CursoDto.java
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 + ")";
}
}
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 + ")";
}
}
Loading

0 comments on commit a711acf

Please sign in to comment.