Skip to content

Commit

Permalink
[PAGOPA-1035] update tables: removed relationship between iban_master
Browse files Browse the repository at this point in the history
and ica_binary_file
  • Loading branch information
pagopa-github-bot authored and aacitelli committed Jun 20, 2023
1 parent 255eb7c commit c76cfb3
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 15 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@

<groupId>it.gov.pagopa.api-config</groupId>
<artifactId>starter</artifactId>
<version>1.6.0</version>
<version>1.7.0</version>
<description>Starter module for projects related to Nodo dei Pagamenti configuration.
</description>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,12 +62,6 @@ public enum IbanStatus {
@EqualsAndHashCode.Exclude
private Iban iban;

@ManyToOne(fetch = FetchType.EAGER, optional = false)
@JoinColumn(name = "FK_ICA_BINARY_FILE", nullable = false)
@ToString.Exclude
@EqualsAndHashCode.Exclude
private IcaBinaryFile icaBinaryFile;

@ToString.Exclude
@OneToMany(fetch = FetchType.LAZY, mappedBy = "fkIbanMaster")
@EqualsAndHashCode.Exclude
Expand Down
Original file line number Diff line number Diff line change
@@ -1,18 +1,23 @@
package it.gov.pagopa.apiconfig.starter.entity;

import java.util.List;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import lombok.*;

import org.springframework.data.annotation.Immutable;

import lombok.AccessLevel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;
import lombok.ToString;

@Table(name = "ICA_BINARY_FILE")
@Entity
@Immutable
Expand All @@ -32,6 +37,9 @@ public class IcaBinaryFile {
allocationSize = 1)
@Column(name = "OBJ_ID")
private Long objId;

@Column(name = "ID_DOMINIO", nullable = false)
private String idDominio;

@Column(name = "FILE_CONTENT")
@ToString.Exclude
Expand All @@ -44,8 +52,4 @@ public class IcaBinaryFile {
@Column(name = "FILE_SIZE", nullable = false)
private Long fileSize;

@ToString.Exclude
@OneToMany(fetch = FetchType.LAZY, mappedBy = "fkIcaBinaryFile")
@EqualsAndHashCode.Exclude
private List<IbanMaster> ibanMasters;
}

0 comments on commit c76cfb3

Please sign in to comment.