Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- @Entity
- @Table(name = "usuario_licenca")
- @Getter
- @Setter
- public class UsuarioLicenca extends DefaultTimeStamped implements Serializable {
- private static final long serialVersionUID = 1L;
- @Id
- @Basic(optional = false)
- @GeneratedValue
- @Column(name = "id", nullable = false)
- private Long id;
- private String nomeRazaoSocial;
- private String email;
- private String responsavel;
- @Temporal(TemporalType.TIMESTAMP)
- @Column(name = "data_emissao")
- private Date dataEmissao;
- @Temporal(TemporalType.TIMESTAMP)
- @Column(name = "data_validade")
- private Date dataValidade;
- private String dataNascimento;
- private Integer version = 1;
- private BigInteger serialNumber;
- private String sigAlgName;
- private String sigAlgOID;
- private String cNPJ;
- private String cPF;
- private String rG;
- private String emissor;
- private String tipo;
- @Column(name = "num_acessos", nullable = false)
- private Integer numeroAcessos;
- @ManyToMany(mappedBy = "usuarioLicencas")
- private List<Licenca> licencas;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement