Commit e02c3856 authored by Labros Papadopoulos's avatar Labros Papadopoulos
Browse files

fixing entity relationships

parent 7a02a0cc
Loading
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -6,7 +6,9 @@ import com.fasterxml.jackson.annotation.JsonProperty;


import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.CascadeType;
import jakarta.persistence.Entity;
import jakarta.persistence.OneToOne;
import jakarta.validation.Valid;


@@ -37,6 +39,7 @@ public class GeographicAddressValue extends PlaceRefOrValue {
  @JsonProperty("streetType")
  private String streetType;
  @JsonProperty("geographicSubAddress")
  @OneToOne(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH })
  private GeographicSubAddressValue geographicSubAddress;
  @JsonProperty("city")
  private String city;
+1 −0
Original line number Diff line number Diff line
@@ -27,6 +27,7 @@ public class GeographicSite extends BaseRootEntity implements PatchGeographicSit
    @JsonProperty("status")
    private String status;
    @JsonProperty("externalIdentifier")
    @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH })
    private List<ExternalIdentifier> externalIdentifier = new ArrayList<>();
    @JsonProperty("calendar")
    @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH })
+4 −8
Original line number Diff line number Diff line
@@ -6,19 +6,15 @@ import io.swagger.v3.oas.annotations.media.Schema;
import jakarta.persistence.Table;
import jakarta.validation.constraints.NotNull;
import jakarta.persistence.Entity;
import org.etsi.osl.tmf.common.model.BaseRootEntity;

/**
 * GeographicSubAddressUnit
 */
@Entity(name = "GeographicSubAddressUnit")
@Table(name = "GeographicSubAddressUnit")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-24T14:24:54.867613034Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
public class GeographicSubAddressUnit {
  @JsonProperty("@schemaLocation")
  private String schemaLocation;
  @JsonProperty("@baseType")
  private String baseType;
  @JsonProperty("@type")
  private String type;
public class GeographicSubAddressUnit extends BaseRootEntity {
   @JsonProperty("subUnitNumber")
  private String subUnitNumber;
  @JsonProperty("subUnitType")
+3 −7
Original line number Diff line number Diff line
@@ -11,6 +11,8 @@ import jakarta.persistence.Table;
import jakarta.validation.Valid;
import jakarta.validation.constraints.NotNull;
import jakarta.persistence.Entity;
import org.etsi.osl.tmf.common.model.BaseRootEntity;

/**
 * GeographicSubAddressValue
 */
@@ -18,13 +20,7 @@ import jakarta.persistence.Entity;
@Entity(name = "GeographicSubAddressValue")
@Table(name = "GeographicSubAddressValue")
@jakarta.annotation.Generated(value = "org.openapitools.codegen.languages.SpringCodegen", date = "2024-04-24T14:24:54.867613034Z[Etc/UTC]", comments = "Generator version: 7.6.0-SNAPSHOT")
public class GeographicSubAddressValue {
  @JsonProperty("@type")
  private String type;
  @JsonProperty("@baseType")
  private String baseType;
  @JsonProperty("@schemaLocation")
  private String schemaLocation;
public class GeographicSubAddressValue extends BaseRootEntity {
  @JsonProperty("buildingName")
  private String buildingName;
  @JsonProperty("levelNumber")