// Path: springboot-angularjs-crud-app/src/main/java/org/fabhotels/servicerequestapp/constants/ServiceRequestStatus.java
// public enum ServiceRequestStatus {
//     RESOLVED, PENDING
// }


import org.fabhotels.servicerequestapp.constants.ServiceRequestStatus;
import javax.persistence.*;
import java.util.Date;
import static javax.persistence.EnumType.STRING;
import static javax.persistence.TemporalType.TIMESTAMP;
import static org.fabhotels.servicerequestapp.constants.ServiceRequestStatus.PENDING;
package org.fabhotels.servicerequestapp.model;




/**
 * @author Naresh Joshi
 */

@Entity
public class ServiceRequest {

    @Id
    @GeneratedValue
    private long id;

    @Column
    private String title;

    @Column
    private String description;

    @Column
    @Enumerated(STRING)
// Path: springboot-angularjs-crud-app/src/main/java/org/fabhotels/servicerequestapp/constants/ServiceRequestStatus.java
// public enum ServiceRequestStatus {
//     RESOLVED, PENDING
// }


// Path: springboot-angularjs-crud-app/src/main/java/org/fabhotels/servicerequestapp/model/ServiceRequest.java
import org.fabhotels.servicerequestapp.constants.ServiceRequestStatus;
import javax.persistence.*;
import java.util.Date;
import static javax.persistence.EnumType.STRING;
import static javax.persistence.TemporalType.TIMESTAMP;
import static org.fabhotels.servicerequestapp.constants.ServiceRequestStatus.PENDING;

package org.fabhotels.servicerequestapp.model;




/**
 * @author Naresh Joshi
 */

@Entity
public class ServiceRequest {

    @Id
    @GeneratedValue
    private long id;

    @Column
    private String title;

    @Column
    private String description;

    @Column
    @Enumerated(STRING)
    private ServiceRequestStatus status = PENDING;