// Path: chapter08/src/main/java/com/packtpub/pf/blueprint/JobStatus.java
// public enum JobStatus {
//     SUBMITTED("SUBMITTED"), REJECTED("REJECTED"), CANCELED("CANCELED"), PROCESS("PROCESS"), COMPLETED("COMPLETED");
// 
// 
//     private final String name;
// 
//     JobStatus(final String name) {
//         this.name = name;
//     }
// 
//     @Override
//     public String toString() {
//         return name;
//     }
// }


import com.packtpub.pf.blueprint.JobStatus;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import java.util.Date;
package com.packtpub.pf.blueprint.persistence.entity;



/**
 * Created by psramkumar on 4/29/14.
 */

@Entity
@Table

public class PrintJobs implements java.io.Serializable {

    @Id
    @GeneratedValue
    @Getter @Setter private Long id;

    @Getter @Setter private String jobRefId;

    @Getter @Setter private String jobName;

    @Getter @Setter private String jobDescription;

    @Getter @Setter private String fileName;

    @Getter @Setter private int noOfPrints;

    @Getter @Setter private int pageStart = 1;

    @Getter @Setter private int pageEnd;

    @Getter @Setter private boolean pageRange;

// Path: chapter08/src/main/java/com/packtpub/pf/blueprint/JobStatus.java
// public enum JobStatus {
//     SUBMITTED("SUBMITTED"), REJECTED("REJECTED"), CANCELED("CANCELED"), PROCESS("PROCESS"), COMPLETED("COMPLETED");
// 
// 
//     private final String name;
// 
//     JobStatus(final String name) {
//         this.name = name;
//     }
// 
//     @Override
//     public String toString() {
//         return name;
//     }
// }


// Path: chapter08/src/main/java/com/packtpub/pf/blueprint/persistence/entity/PrintJobs.java
import com.packtpub.pf.blueprint.JobStatus;
import lombok.Data;
import lombok.Getter;
import lombok.Setter;
import javax.persistence.*;
import java.util.Date;

package com.packtpub.pf.blueprint.persistence.entity;



/**
 * Created by psramkumar on 4/29/14.
 */

@Entity
@Table

public class PrintJobs implements java.io.Serializable {

    @Id
    @GeneratedValue
    @Getter @Setter private Long id;

    @Getter @Setter private String jobRefId;

    @Getter @Setter private String jobName;

    @Getter @Setter private String jobDescription;

    @Getter @Setter private String fileName;

    @Getter @Setter private int noOfPrints;

    @Getter @Setter private int pageStart = 1;

    @Getter @Setter private int pageEnd;

    @Getter @Setter private boolean pageRange;

    @Getter @Setter private JobStatus status;