Rev 468 | Rev 495 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 468 | Rev 485 | ||
|---|---|---|---|
| Line 28... | Line 28... | ||
| 28 | 28 | ||
| 29 | private Long sequencial; |
29 | private Long sequencial; |
| 30 | private NotaFiscal notaFiscal; |
30 | private NotaFiscal notaFiscal; |
| 31 | private CompraProduto compraProduto; |
31 | private CompraProduto compraProduto; |
| 32 | private Integer quantidade; |
32 | private Integer quantidade; |
| - | 33 | private Double valor; |
|
| 33 | 34 | ||
| 34 | @Id |
35 | @Id |
| 35 | @SequenceGenerator(name = "sq_notafiscalproduto") |
36 | @SequenceGenerator(name = "sq_notafiscalproduto") |
| 36 | @GeneratedValue(strategy = GenerationType.IDENTITY) |
37 | @GeneratedValue(strategy = GenerationType.IDENTITY) |
| 37 | @Column(name="seq_notafiscalproduto", nullable=false) |
38 | @Column(name="seq_notafiscalproduto", nullable=false) |
| Line 79... | Line 80... | ||
| 79 | public Integer getQuantidade() { |
80 | public Integer getQuantidade() { |
| 80 | return quantidade; |
81 | return quantidade; |
| 81 | }
|
82 | }
|
| 82 | public void setQuantidade(Integer quantidade) { |
83 | public void setQuantidade(Integer quantidade) { |
| 83 | this.quantidade = quantidade; |
84 | this.quantidade = quantidade; |
| - | 85 | }
|
|
| - | 86 | ||
| - | 87 | @NotNull(message = "Parâmetro obrigatório não preenchido: Valor do produto", groups = {Cadastrar.class, Alterar.class}) |
|
| - | 88 | @Column(name="val_produto") |
|
| - | 89 | public Double getValor() { |
|
| - | 90 | return valor; |
|
| - | 91 | }
|
|
| - | 92 | public void setValor(Double valor) { |
|
| - | 93 | this.valor = valor; |
|
| 84 | }
|
94 | }
|
| 85 | 95 | ||
| 86 | /*
|
96 | /*
|
| 87 | @Transient
|
97 | @Transient
|
| 88 | public Long getSequencialDaNotaFiscal() {
|
98 | public Long getSequencialDaNotaFiscal() {
|