Rev 685 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 685 | Rev 689 | ||
|---|---|---|---|
| Line 119... | Line 119... | ||
| 119 | public void setAtivo(Boolean ativo) { |
119 | public void setAtivo(Boolean ativo) { |
| 120 | this.ativo = ativo; |
120 | this.ativo = ativo; |
| 121 | }
|
121 | }
|
| 122 | 122 | ||
| 123 | @ManyToOne |
123 | @ManyToOne |
| 124 | @ForeignKey(name="fk_cupom_cliente") |
- | |
| - | 124 | @ForeignKey(name="fk_cashback_cliente") |
|
| 125 | @JoinColumn(name = "seq_cliente", nullable=false) |
125 | @JoinColumn(name = "seq_cliente", nullable=false) |
| 126 | @NotNull(message = "Parâmetro obrigatório não preenchido: Cliente do cashback", groups = {Cadastrar.class, Alterar.class}) |
126 | @NotNull(message = "Parâmetro obrigatório não preenchido: Cliente do cashback", groups = {Cadastrar.class, Alterar.class}) |
| 127 | public Cliente getCliente() { |
127 | public Cliente getCliente() { |
| 128 | return cliente; |
128 | return cliente; |
| 129 | }
|
129 | }
|
| 130 | public void setCliente(Cliente cliente) { |
130 | public void setCliente(Cliente cliente) { |
| 131 | this.cliente = cliente; |
131 | this.cliente = cliente; |
| 132 | }
|
132 | }
|
| 133 | 133 | ||
| 134 | @ManyToOne |
134 | @ManyToOne |
| 135 | @ForeignKey(name="fk_cupom_venda") |
- | |
| - | 135 | @ForeignKey(name="fk_cashback_venda") |
|
| 136 | @JoinColumn(name = "seq_venda", nullable=true) |
136 | @JoinColumn(name = "seq_venda", nullable=true) |
| 137 | public Venda getVenda() { |
137 | public Venda getVenda() { |
| 138 | return venda; |
138 | return venda; |
| 139 | }
|
139 | }
|
| 140 | public void setVenda(Venda venda) { |
140 | public void setVenda(Venda venda) { |