package edu.prlab.tyler.iotgateway.cloud.pojo.privacy.p3p;

import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.*;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Entity
public class Datum{

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @JsonIgnore
    private long id;
    @Enumerated(value = EnumType.STRING)
    private Type type;
    private String description;

    public enum Type {
        PHYSICAL, ONLINE, UNIQUEID, PURCHASE,
        FINANCIAL, COMPUTER, NAVIGATION, INTERACTIVE,
        DEMOGRAPHIC, CONTENT, STATE, POLITICAL,
        HEALTH, PREFERENCE, LOCATION, GOVERNMENT, OTHER_CATEGORY
    }
}
