/*#############################################################################
 # Copyright (c) 2015.                                                        #
 #                                                                            #
 # This file is part of the OpenSDNCore project.                              #
 #############################################################################*/

package org.project.neutrino.nfvo.catalogue.mano.descriptor;

import org.project.neutrino.nfvo.catalogue.mano.common.AbstractVirtualLink;

import java.util.Set;

import javax.persistence.ElementCollection;
import javax.persistence.Entity;
import javax.persistence.FetchType;

/**
 * Created by lto on 06/02/15.
 *
 * Based on ETSI GS NFV-MAN 001 V1.1.1 (2014-12)
 */
@Entity
public class InternalVirtualLink extends AbstractVirtualLink {

    /**
     * References to Connection Points (vnfd:vdu:vnfc:connection_point:id,vnfd:connection_point:id), e.g. of type E-Line, E-Tree, or E-LAN.
     * */
	@ElementCollection(fetch = FetchType.EAGER)
    private Set<String> connection_points_references;

    public InternalVirtualLink() {
    }

    public Set<String> getConnection_points_references() {
        return connection_points_references;
    }

    public void setConnection_points_references(Set<String> connection_points_references) {
        this.connection_points_references = connection_points_references;
    }
}

@@ -1417,10 +1417,620 @@
 ;%0A    %7D%0A
+%0A    @Override%0A    public String toString() %7B%0A        return %22InternalVirtualLink%7B%22 +%0A                %22id='%22 + id + '%5C'' +%0A                %22, version='%22 + version +%0A                %22, connectivity_type='%22 + getConnectivity_type() + '%5C'' +%0A                %22, connection_points_references='%22 + connection_points_references + '%5C'' +%0A                %22, root_requirement='%22 + getRoot_requirement() + '%5C'' +%0A                %22, leaf_requirement='%22 + getLeaf_requirement() + '%5C'' +%0A                %22, qos='%22 + getQos() + '%5C'' +%0A                %22, test_access='%22 + getTest_access() + '%5C'' +%0A                '%7D';%0A    %7D%0A%0A
 %7D%0A

add toString()