package com.toscana.model.reports;

import com.toscana.model.sessions.Session;
import com.toscana.model.sessions.User;
import com.toscana.model.reports.templates.ReceiptTemplate;

public class ReceiptSaleCut {

    /*
     * Class methods
     */
    /*
     * Getters and Setters
     */
    public int getID() {
        return ID;
    }

    public void setID(int ID) {
        this.ID = ID;
    }

    public Session getSession() {
        return session;
    }

    public void setSession(Session session) {
        this.session = session;
    }

    public User getAuthorizerAdmin() {
        return authorizerAdmin;
    }

    public void setAuthorizerAdmin(User authorizerAdmin) {
        this.authorizerAdmin = authorizerAdmin;
    }

    public double getTotalCash() {
        return totalCash;
    }

    public void setTotalCash(double totalCash) {
        this.totalCash = totalCash;
    }

    public ReceiptTemplate getReceiptTempleate() {
        return receiptTempleate;
    }

    public void setReceiptTempleate(ReceiptTemplate receiptTempleate) {
        this.receiptTempleate = receiptTempleate;
    }

    
     /*
     * Inner methods
     */
    
     /*
     * Attributes
     */
    private int ID;
    private Session session;
    private User authorizerAdmin;
    private double totalCash;
    private ReceiptTemplate receiptTempleate;
}

@@ -172,16 +172,79 @@
 mplate;%0A
+import javax.persistence.*;%0A%0A@Entity%0A@Table (name = %22salecuts%22)
 %0Apublic 
@@ -1268,86 +1268,284 @@
     
-private int ID;%0A    private Session session;%0A    private User authorizerAdmin;
+@Id%0A    @Column (name = %22ID%22)%0A    @GeneratedValue%0A    private int ID;%0A    %0A    @Column (name = %22session%22)%0A    @OneToOne%0A    private Session session;%0A    %0A    @Column(name = %22authorizeruser%22)%0A    @OneToOne%0A    private User authorizerAdmin;%0A    %0A    @Column (name = %22totalcash%22)
 %0A   

Update model entities notations