Skip to content

Commit

Permalink
NOD-872 (#42)
Browse files Browse the repository at this point in the history
[CONFIG CACHE] Aggiungere flag_standin a canali e stazioni
  • Loading branch information
lorenzo-catalano authored May 8, 2024
1 parent 176e6c4 commit 2f26d9e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -123,4 +123,8 @@ public class CanaliNodo implements Serializable {
@Convert(converter = YesNoConverter.class)
@Column(name = "FLAG_TRAVASO", nullable = false)
private Boolean flagTravaso = false;

@Convert(converter = YesNoConverter.class)
@Column(name = "FLAG_STANDIN", nullable = false)
private Boolean flagStandin = false;
}
27 changes: 7 additions & 20 deletions src/main/java/it/gov/pagopa/apiconfig/starter/entity/Stazioni.java
Original file line number Diff line number Diff line change
@@ -1,26 +1,9 @@
package it.gov.pagopa.apiconfig.starter.entity;

import it.gov.pagopa.apiconfig.starter.util.YesNoConverter;
import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

import javax.persistence.Column;
import javax.persistence.Convert;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.OneToMany;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import lombok.*;

import javax.persistence.*;
import java.util.List;

@Entity
Expand Down Expand Up @@ -167,6 +150,10 @@ public class Stazioni {
@Column(name = "TARGET_PATH_POF")
private String targetPathPof;

@Convert(converter = YesNoConverter.class)
@Column(name = "FLAG_STANDIN", nullable = false)
private Boolean flagStandin = false;

@Column(name = "VERSIONE_PRIMITIVE")
private Integer versionePrimitive;
@OneToMany(
Expand Down

0 comments on commit 2f26d9e

Please sign in to comment.