Advertisement
bisaggio

Untitled

Aug 2nd, 2016
59
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. @Entity
  2. @Table(name = "usuario_licenca")
  3. @Getter
  4. @Setter
  5. public class UsuarioLicenca extends DefaultTimeStamped implements Serializable {
  6.  
  7. private static final long serialVersionUID = 1L;
  8. @Id
  9. @Basic(optional = false)
  10. @GeneratedValue
  11. @Column(name = "id", nullable = false)
  12. private Long id;
  13.  
  14. private String nomeRazaoSocial;
  15. private String email;
  16. private String responsavel;
  17. @Temporal(TemporalType.TIMESTAMP)
  18. @Column(name = "data_emissao")
  19. private Date dataEmissao;
  20. @Temporal(TemporalType.TIMESTAMP)
  21. @Column(name = "data_validade")
  22. private Date dataValidade;
  23. private String dataNascimento;
  24. private Integer version = 1;
  25. private BigInteger serialNumber;
  26. private String sigAlgName;
  27. private String sigAlgOID;
  28. private String cNPJ;
  29. private String cPF;
  30. private String rG;
  31. private String emissor;
  32. private String tipo;
  33. @Column(name = "num_acessos", nullable = false)
  34. private Integer numeroAcessos;
  35.  
  36. @ManyToMany(mappedBy = "usuarioLicencas")
  37. private List<Licenca> licencas;
  38.  
  39. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement