@@ -0,0 +1,2173 @@
+/**%0A * Created by Djidjelly Siclait on 11/1/2016.%0A */%0Apackage com.clinichelper.Entity;%0A%0Aimport javax.persistence.*;%0Aimport java.io.Serializable;%0Aimport java.util.UUID;%0A%0A@Entity%0A@Table(name = %22medications%22)%0Apublic class Medication implements Serializable%7B%0A    // Attributes%0A    @Id%0A    private String medicationId;%0A    private String medicationName;%0A    private String supplier;%0A    @Column(length = 500)%0A    private String medicationDescription;%0A    private Integer medicationInStock;%0A    @ManyToMany%0A    private Clinic clinic;%0A%0A    // Constructors%0A    public Medication()%7B%0A%0A    %7D%0A%0A    public Medication(Clinic clinic, String medicationName, String supplier, String medicationDescription, Integer medicationInStock)%7B%0A        this.setMedicationId(clinic.getClinicPrefix() + UUID.randomUUID().toString().split(%22-%22)%5B0%5D.toUpperCase());%0A        this.setMedicationName(medicationName);%0A        this.setSupplier(supplier);%0A        this.setMedicationDescription(medicationDescription);%0A        this.setMedicationInStock(medicationInStock);%0A    %7D%0A%0A    // Getters and Setters%0A    public String getMedicationId() %7B%0A        return medicationId;%0A    %7D%0A%0A    public void setMedicationId(String medicationId) %7B%0A        this.medicationId = medicationId;%0A    %7D%0A%0A    public String getMedicationName() %7B%0A        return medicationName;%0A    %7D%0A%0A    public void setMedicationName(String medicationName) %7B%0A        this.medicationName = medicationName;%0A    %7D%0A%0A    public String getSupplier() %7B%0A        return supplier;%0A    %7D%0A%0A    public void setSupplier(String supplier) %7B%0A        this.supplier = supplier;%0A    %7D%0A%0A    public String getMedicationDescription() %7B%0A        return medicationDescription;%0A    %7D%0A%0A    public void setMedicationDescription(String medicationDescription) %7B%0A        this.medicationDescription = medicationDescription;%0A    %7D%0A%0A    public Integer getMedicationInStock() %7B%0A        return medicationInStock;%0A    %7D%0A%0A    public void setMedicationInStock(Integer medicationInStock) %7B%0A        this.medicationInStock = medicationInStock;%0A    %7D%0A%0A    public Clinic getClinic() %7B%0A        return clinic;%0A    %7D%0A%0A    public void setClinic(Clinic clinic) %7B%0A        this.clinic = clinic;%0A    %7D%0A%7D%0A

Create Medication entity