/*#############################################################################
 # 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;
    }
}

/*#############################################################################
 # 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;

    private String extId;

    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;
    }

    public String getExtId() { return extId; }

    public void setExtId(String extId) { this.extId = extId; }
}

add value: extId; add getter/setter