model.internal.application.user.impl/src/main/java/com/hack23/cia/model/internal/application/system/impl/Agency.java
@OneToMany(targetEntity = Portal.class, cascade = {
        CascadeType.ALL
    })
    @JoinColumn(name = "PORTALS_AGENCY_HJID")
    public List<Portal> getPortals() {
        if (portals == null) {
            portals = new ArrayList<>();
        }
        return this.portals;
    }
@OneToMany(targetEntity = Portal.class, cascade = {
        CascadeType.ALL
    })
    @JoinColumn(name = "PORTALS_AGENCY_HJID")
    public List<Portal> getPortals() {
        if (portals == null) {
            portals = new ArrayList<>();
        }
        return this.portals;
    }
@ OneToMany ( targetEntity = Portal . class , cascade = { CascadeType . ALL } ) @ JoinColumn ( name = "PORTALS_AGENCY_HJID" ) public List < Portal > getPortals ( ) { if ( portals == null ) { portals = new ArrayList <> ( ) ; } return this . portals ; }
Gets the value of the portals property.

<p>
This accessor method returns a reference to the live list,
not a snapshot. Therefore any modification you make to the
returned list will be present inside the JAXB object.
This is why there is not a <CODE>set</CODE> method for the portals property.

<p>
For example, to add a new item, do as follows:
<pre>
getPortals().add(newItem);
</pre>


<p>
Objects of the following type(s) are allowed in the list
{@link Portal }
Gets the value of the portals property .