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

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

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

import javax.persistence.*;

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

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

    @Override
    public String toString() {
        return "DeploymentFlavour{" +
                "id='" + id + '\'' +
                ", version=" + version +
                ", flavour_key='" + flavour_key + '\'' +
                ", extId='" + extId + '\'' +
                '}';
    }
}

@@ -1362,16 +1362,85 @@
 extId;%0A%0A
+    private int ram;%0A%0A    private int disk;%0A%0A    private int vcpus;%0A%0A
     publ
@@ -1829,24 +1829,324 @@
 = extId; %7D%0A%0A
+    public int getRam() %7B return ram; %7D%0A%0A    public void setRam(int ram) %7B this.ram = ram; %7D%0A%0A    public int getDisk() %7B return disk; %7D%0A%0A    public void setDisk(int disk) %7B this.disk = disk; %7D%0A%0A    public int getVcpus() %7B return vcpus; %7D%0A%0A    public void setVcpus(int vcpus) %7B this.vcpus = vcpus; %7D%0A%0A
     @Overrid

add values: ram, disk, vcpus