Skip to content

Commit

Permalink
added stazione and descrizione on CDS_SOGGETTO_SERVIZIO
Browse files Browse the repository at this point in the history
  • Loading branch information
Cesare Caccuri committed Apr 13, 2023
1 parent 2d857b5 commit e2cd4f3
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 2 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.0.0</version>
<version>1.1.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 @@ -53,7 +53,7 @@ public class CdsSoggettoServizio {
@JoinColumn(name = "STAZIONE", nullable = true)
@ToString.Exclude
@EqualsAndHashCode.Exclude
private Stazioni stazione;
private PaStazionePa stazionePa;

@ManyToOne(fetch = FetchType.LAZY, optional = false)
@JoinColumn(name = "FK_CDS_SOGGETTO", nullable = false)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,9 @@ public interface CdsSoggettoServizioRepository extends JpaRepository<CdsSoggetto
"SELECT e FROM CdsSoggettoServizio e LEFT JOIN FETCH e.soggetto LEFT JOIN FETCH"
+ " e.servizio")
List<CdsSoggettoServizio> findAllFetching();

@Query(
"SELECT e FROM CdsSoggettoServizio e LEFT JOIN FETCH e.soggetto LEFT JOIN FETCH"
+ " e.servizio LEFT JOIN FETCH e.stazionePa")
List<CdsSoggettoServizio> findAllFetchingStations();
}

0 comments on commit e2cd4f3

Please sign in to comment.