diff --git a/src/main/java/org/etsi/osl/tmf/gsm674/model/GeographicSite.java b/src/main/java/org/etsi/osl/tmf/gsm674/model/GeographicSite.java index b3ec7a1d0406beb1b0f844a67a39dd196bfb25a4..6d100c447847210be71dbcb8e04e58d53193d76b 100644 --- a/src/main/java/org/etsi/osl/tmf/gsm674/model/GeographicSite.java +++ b/src/main/java/org/etsi/osl/tmf/gsm674/model/GeographicSite.java @@ -41,6 +41,39 @@ public class GeographicSite extends BaseRootEntity { @OneToMany(cascade = { CascadeType.MERGE, CascadeType.PERSIST, CascadeType.REFRESH }) private Set<RelatedParty> relatedParties = new HashSet<>(); + public GeographicSite addCalendarPeriod(CalendarPeriod calendarPeriod){ + if(this.calendar==null){ + this.calendar=new HashSet<>(); + } + this.calendar.add(calendarPeriod); + return this; + } + + public GeographicSite addPlaceRefOrValue(PlaceRefOrValue placeRefOrValue){ + if(this.placeRefOrValue==null){ + this.placeRefOrValue=new HashSet<>(); + } + this.placeRefOrValue.add(placeRefOrValue); + return this; + } + + public GeographicSite addGeographicSiteRelationship(GeographicSiteRelationship geographicSiteRelationship){ + if (this.geographicSiteRelationship==null){ + this.geographicSiteRelationship=new HashSet<>(); + + } + this.geographicSiteRelationship.add(geographicSiteRelationship); + return this; + } + + public GeographicSite addRelatedParty(RelatedParty relatedParty){ + if(this.relatedParties==null){ + this.relatedParties=new HashSet<>(); + } + this.relatedParties.add(relatedParty); + return this; + } + @Override public boolean equals(Object o) { if (this == o) return true;