package org.taktik.freehealth.middleware.drugs;
// Generated Feb 27, 2008 11:38:04 AM by Hibernate Tools 3.2.0.CR1


import org.taktik.freehealth.middleware.drugs.dto.CompositionId;

/**
 * Composition generated by hbm2java
 */
public class Composition  implements java.io.Serializable {

	private static final long serialVersionUID = 1L;
     private CompositionId id;
     private Doc doc;
     private Ingredient ingredient;
     private Mpp mpp;
     private Float unitsquantity;
     private Float ingredientquantity;
     private String ingredientunits;
     private String separator;
     private Float inbasq;
     private String inbasu;
     private Float inq2;
     private String inu2;
     private String dim;
     private String type;

    public Composition() {
    }

	public Composition(CompositionId id, Doc doc, Ingredient ingredient, Mpp mpp) {
        this.id = id;
        this.doc = doc;
        this.ingredient = ingredient;
        this.mpp = mpp;
    }

    public Composition(CompositionId id, Doc doc, Ingredient ingredient, Mpp mpp, Float unitsquantity, Float ingredientquantity, String ingredientunits, String separator, Float inbasq, String inbasu, Float inq2, String inu2, String dim, String type) {
       this.id = id;
       this.doc = doc;
       this.ingredient = ingredient;
       this.mpp = mpp;
       this.unitsquantity = unitsquantity;
       this.ingredientquantity = ingredientquantity;
       this.ingredientunits = ingredientunits;
       this.separator = separator;
       this.inbasq = inbasq;
       this.inbasu = inbasu;
       this.inq2 = inq2;
       this.inu2 = inu2;
       this.dim = dim;
       this.type = type;
    }
   
    public CompositionId getId() {
        return this.id;
    }
    
    public void setId(CompositionId id) {
        this.id = id;
    }
    public Doc getDoc() {
        return this.doc;
    }
    
    public void setDoc(Doc doc) {
        this.doc = doc;
    }
    public Ingredient getIngredient() {
        return this.ingredient;
    }
    
    public void setIngredient(Ingredient ingredient) {
        this.ingredient = ingredient;
    }
    public Mpp getMpp() {
        return this.mpp;
    }
    
    public void setMpp(Mpp mpp) {
        this.mpp = mpp;
    }

    public Float getUnitsquantity() {
        return this.unitsquantity;
    }
    
    public void setUnitsquantity(Float unitsquantity) {
        this.unitsquantity = unitsquantity;
    }
    public Float getIngredientquantity() {
        return this.ingredientquantity;
    }
    
    public void setIngredientquantity(Float ingredientquantity) {
        this.ingredientquantity = ingredientquantity;
    }
    public String getIngredientunits() {
        return this.ingredientunits;
    }
    
    public void setIngredientunits(String ingredientunits) {
        this.ingredientunits = ingredientunits;
    }
    public String getSeparator() {
        return this.separator;
    }
    
    public void setSeparator(String separator) {
        this.separator = separator;
    }
    public Float getInbasq() {
        return this.inbasq;
    }
    
    public void setInbasq(Float inbasq) {
        this.inbasq = inbasq;
    }
    public String getInbasu() {
        return this.inbasu;
    }
    
    public void setInbasu(String inbasu) {
        this.inbasu = inbasu;
    }
    public Float getInq2() {
        return this.inq2;
    }
    
    public void setInq2(Float inq2) {
        this.inq2 = inq2;
    }
    public String getInu2() {
        return this.inu2;
    }
    
    public void setInu2(String inu2) {
        this.inu2 = inu2;
    }
    public String getDim() {
        return this.dim;
    }
    
    public void setDim(String dim) {
        this.dim = dim;
    }
    public String getType() {
        return this.type;
    }
    
    public void setType(String type) {
        this.type = type;
    }

    @Override
	public String toString() {
		return this.getIngredient().getName();
	}


}


