// Path: src/main/java/br/fatea/simplebank/soap/payment/v1/PaymentStatus.java
// @XmlType(name = "paymentStatus")
// @XmlEnum
// public enum PaymentStatus {
// 
//     OPENED,
//     CONFIRMED,
//     REVERSED,
//     CANCELED;
// 
//     public String value() {
//         return name();
//     }
// 
//     public static PaymentStatus fromValue(String v) {
//         return valueOf(v);
//     }
// 
// }


import java.util.Calendar;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import org.hibernate.envers.Audited;
import org.hibernate.envers.RelationTargetAuditMode;
import br.fatea.simplebank.soap.payment.v1.PaymentStatus;
package br.fatea.simplebank.model.domains;





@Entity
@Table(name="TBL_PAYMENT")
@Audited(targetAuditMode=RelationTargetAuditMode.NOT_AUDITED)
public class Payment {
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="PAY_ID")
	private Long id;
	
	@Column(name="PAY_ORDER")
	@NotNull
	private String order;
	
	@Enumerated(EnumType.STRING)
	@Column(name="PAY_STATUS")
	@NotNull
// Path: src/main/java/br/fatea/simplebank/soap/payment/v1/PaymentStatus.java
// @XmlType(name = "paymentStatus")
// @XmlEnum
// public enum PaymentStatus {
// 
//     OPENED,
//     CONFIRMED,
//     REVERSED,
//     CANCELED;
// 
//     public String value() {
//         return name();
//     }
// 
//     public static PaymentStatus fromValue(String v) {
//         return valueOf(v);
//     }
// 
// }


// Path: src/main/java/br/fatea/simplebank/model/domains/Payment.java
import java.util.Calendar;
import javax.persistence.CascadeType;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.validation.constraints.NotNull;
import org.hibernate.envers.Audited;
import org.hibernate.envers.RelationTargetAuditMode;
import br.fatea.simplebank.soap.payment.v1.PaymentStatus;

package br.fatea.simplebank.model.domains;





@Entity
@Table(name="TBL_PAYMENT")
@Audited(targetAuditMode=RelationTargetAuditMode.NOT_AUDITED)
public class Payment {
	
	@Id
	@GeneratedValue(strategy=GenerationType.IDENTITY)
	@Column(name="PAY_ID")
	private Long id;
	
	@Column(name="PAY_ORDER")
	@NotNull
	private String order;
	
	@Enumerated(EnumType.STRING)
	@Column(name="PAY_STATUS")
	@NotNull
	private PaymentStatus status;