-
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.
Esportazione via REST dei log in tabella di frontiera.
Commentato l'utilizzo del boot-docker-compose.
- Loading branch information
Showing
6 changed files
with
158 additions
and
8 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
61 changes: 61 additions & 0 deletions
61
src/main/java/it/cnr/iit/epas/timesheet/ugovpj/model/DetailLog.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 @@ | ||
/* | ||
* Copyright (C) 2024 Consiglio Nazionale delle Ricerche | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
* published by the Free Software Foundation, either version 3 of the | ||
* License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
package it.cnr.iit.epas.timesheet.ugovpj.model; | ||
|
||
import jakarta.persistence.Column; | ||
import jakarta.persistence.Entity; | ||
import jakarta.persistence.Id; | ||
import jakarta.persistence.Table; | ||
import jakarta.validation.constraints.NotNull; | ||
import java.time.LocalDate; | ||
import lombok.AllArgsConstructor; | ||
import lombok.Builder; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.ToString; | ||
|
||
/** | ||
* Modello per il mapping della Tabella Oracle di UGOV-Pj-Timesheet che contiene i tipi | ||
* con i log del passaggio dei dati. | ||
* | ||
* @author Cristian Lucchesi | ||
*/ | ||
@NoArgsConstructor | ||
@AllArgsConstructor | ||
@Builder | ||
@ToString | ||
@Data | ||
@Entity | ||
@Table(name = "IE_PJ_MARCATURE_LOGS") | ||
public class DetailLog { | ||
|
||
@Id | ||
@Column(name = "ID_LOG") | ||
private Long id; | ||
|
||
@NotNull | ||
@Column(name = "DATA") | ||
private LocalDate date; | ||
|
||
@NotNull | ||
@Column(name = "ESITO") | ||
private String outcome; | ||
|
||
@Column(name = "NUM_MARCATURE") | ||
private Long numberOfDetails; | ||
|
||
} |
29 changes: 29 additions & 0 deletions
29
src/main/java/it/cnr/iit/epas/timesheet/ugovpj/repo/DetailLogRepo.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,29 @@ | ||
/* | ||
* Copyright (C) 2024 Consiglio Nazionale delle Ricerche | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
* published by the Free Software Foundation, either version 3 of the | ||
* License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
package it.cnr.iit.epas.timesheet.ugovpj.repo; | ||
|
||
import it.cnr.iit.epas.timesheet.ugovpj.model.DetailLog; | ||
import org.springframework.data.jpa.repository.JpaRepository; | ||
|
||
/** | ||
* Repository per l'accesso ai log su tabella del passaggio dei dati. | ||
* | ||
* @author Cristian Lucchesi | ||
*/ | ||
public interface DetailLogRepo extends JpaRepository<DetailLog,Long> { | ||
//Empty interface | ||
} |
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
39 changes: 39 additions & 0 deletions
39
src/main/java/it/cnr/iit/epas/timesheet/ugovpj/v1/dto/DetailLogDto.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,39 @@ | ||
/* | ||
* Copyright (C) 2024 Consiglio Nazionale delle Ricerche | ||
* | ||
* This program is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Affero General Public License as | ||
* published by the Free Software Foundation, either version 3 of the | ||
* License, or (at your option) any later version. | ||
* | ||
* This program is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Affero General Public License for more details. | ||
* | ||
* You should have received a copy of the GNU Affero General Public License | ||
* along with this program. If not, see <https://www.gnu.org/licenses/>. | ||
*/ | ||
package it.cnr.iit.epas.timesheet.ugovpj.v1.dto; | ||
|
||
import java.time.LocalDate; | ||
import lombok.Data; | ||
import lombok.NoArgsConstructor; | ||
import lombok.ToString; | ||
|
||
/** | ||
* Dto per esportare via REST i log presenti nella tabella di frontiera Oracle. | ||
* | ||
* @author Cristian Lucchesi | ||
*/ | ||
@NoArgsConstructor | ||
@ToString | ||
@Data | ||
public class DetailLogDto { | ||
|
||
private Long id; | ||
private LocalDate date; | ||
private String outcome; | ||
private Long numberOfDetails; | ||
|
||
} |
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