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

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

import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Inheritance;
import javax.persistence.InheritanceType;
import javax.persistence.Version;

import org.project.neutrino.nfvo.catalogue.util.IdGenerator;

/**
 * Created by lto on 06/02/15.
 *
 * Based on ETSI GS NFV-MAN 001 V1.1.1 (2014-12)
 */
@Entity
@Inheritance(strategy = InheritanceType.TABLE_PER_CLASS)
public class DeploymentFlavour {
    /*ID of the deployment flavour.*/
	@Id
    protected String id = IdGenerator.createUUID();
	@Version
	protected int version = 0;
    /*
        * Assurance parameter against which this flavour is being described. The key could be a combination of multiple assurance
        * parameters with a logical relationship between them. The parameters should be present as a monitoring_parameter supported in clause 6.2.1.1.
        * For example, a flavour of a virtual EPC could be described in terms of the assurance parameter "calls per second" (cps).
        * */
    protected String flavour_key;

    public String getFlavour_key() {
        return flavour_key;
    }

    public void setFlavour_key(String flavour_key) {
        this.flavour_key = flavour_key;
    }

    public String getId() {
        return id;
    }

    public void setId(String id) {
        this.id = id;
    }
}

@@ -1481,16 +1481,43 @@
 r_key;%0A%0A
+    private String extId;%0A%0A
     publ
@@ -1796,11 +1796,123 @@
 d;%0A    %7D
+%0A%0A    public String getExtId() %7B return extId; %7D%0A%0A    public void setExtId(String extId) %7B this.extId = extId; %7D
 %0A%7D%0A

add value: extId; add getter/setter