Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package fr.canalplus.myIncentiveComModel.info;
- import javax.persistence.*;
- import java.io.Serializable;
- @Entity
- @Table(name = "transaction_info")
- public class TransactionInfo implements Serializable {
- @Id
- private Integer id;
- @Enumerated(EnumType.STRING)
- @Column(name = "type")
- private Type type;
- @Enumerated(EnumType.STRING)
- @Column(name = "status")
- private Status status;
- public enum Type {
- PRISE_OPTION("PO", "Souscription Abo"),
- PRISE_PACK("PK", "Souscription Abo"),
- TRANSFO_OFFRE("TO", "Souscription Abo"),
- PRISE_ABONNEMENT("PA", "Souscription Abo"),
- ANNUL_ABO("AA", "Souscription Abo"),
- ECHANGE("EC", "SAV"),
- BRIS_VOL("BV", "SAV"),
- TEST_DECODEUR("TE", "SAV"),
- SECOND_ECRAN("SE", "Remise matériel"),
- GRPARA_CHQKDO("IN", "Rôle installateur"),
- ACOMPTE("ACO", "Remise matériel"),
- TRANSFO_CONF("TC", "Transfo Config"),
- CLICKCOL("CC", "Remise matériel");
- private final String name;
- private final String libelle;
- /**
- * @param name
- */
- Type(final String name, final String libelle) {
- this.libelle = libelle;
- this.name = name;
- }
- public String getLibelle() {
- return libelle;
- }
- public String getValue() {
- return name;
- }
- }
- public enum Status {
- NC("NC"),
- CB("CB"),
- AC("AC");
- private final String name;
- /**
- * @param name
- */
- private Status(final String name) {
- this.name = name;
- }
- public String getValue() {
- return name;
- }
- }
- }
Add Comment
Please, Sign In to add comment