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

import org.project.neutrino.nfvo.catalogue.mano.common.DeploymentFlavour;
import org.project.neutrino.nfvo.catalogue.util.IdGenerator;

import javax.persistence.*;
import java.util.Date;

/**
 * Created by lto on 20/05/15.
 */
@Entity
public class Quota {
    @Id
    private String id = IdGenerator.createUUID();
    @Version
    private int version = 0;

    private String tenant;

    private int cores;
    private int floatingIps;
    private int gigabytes;
    private int instances;
    private int keyPairs;
    private int ram;

    public String getTenant() {
        return tenant;
    }

    public void setTenant(String tenant) {
        this.tenant = tenant;
    }

    public int getRam() {
        return ram;
    }

    public void setRam(int ram) {
        this.ram = ram;
    }

    public int getKeyPairs() {
        return keyPairs;
    }

    public void setKeyPairs(int keyPairs) {
        this.keyPairs = keyPairs;
    }

    public int getInstances() {
        return instances;
    }

    public void setInstances(int instances) {
        this.instances = instances;
    }

    public int getGigabytes() {
        return gigabytes;
    }

    public void setGigabytes(int gigabytes) {
        this.gigabytes = gigabytes;
    }

    public int getFloatingIps() {
        return floatingIps;
    }

    public void setFloatingIps(int floatingIps) {
        this.floatingIps = floatingIps;
    }

    public int getCores() {
        return cores;
    }

    public void setCores(int cores) {
        this.cores = cores;
    }

    public String getId() {
        return id;
    }

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

    @Override
    public String toString() {
        return "Quota{" +
                "id='" + id + '\'' +
                ", version=" + version +
                ", tenant='" + tenant + '\'' +
                ", cores='" + cores + '\'' +
                ", floatingIps='" + floatingIps + '\'' +
                ", gigabytes='" + gigabytes + '\'' +
                ", instances='" + instances + '\'' +
                ", keypairs='" + keyPairs + '\'' +
                ", ram='" + ram + '\'' +
                '}';
    }
}


@@ -485,35 +485,8 @@
 ps;%0A
-    private int gigabytes;%0A
     
@@ -991,32 +991,24 @@
 nstances() %7B
-%0A       
  return inst
@@ -1005,36 +1005,32 @@
 eturn instances;
-%0A   
  %7D%0A%0A    public v
@@ -1058,32 +1058,24 @@
 instances) %7B
-%0A       
  this.instan
@@ -1094,166 +1094,8 @@
 ces;
-%0A    %7D%0A%0A    public int getGigabytes() %7B%0A        return gigabytes;%0A    %7D%0A%0A    public void setGigabytes(int gigabytes) %7B%0A        this.gigabytes = gigabytes;%0A   
  %7D%0A%0A
@@ -1810,61 +1810,8 @@
 ' +%0A
-                %22, gigabytes='%22 + gigabytes + '%5C'' +%0A
     

remove gigabytes from Quotas -> there is no sense at the moment