Rev 413 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 413 | Rev 623 | ||
|---|---|---|---|
| Line 35... | Line 35... | ||
| 35 | 35 | ||
| 36 | private static final long serialVersionUID = 1L; |
36 | private static final long serialVersionUID = 1L; |
| 37 | 37 | ||
| 38 | private Long sequencial; |
38 | private Long sequencial; |
| 39 | private Loja loja; |
39 | private Loja loja; |
| 40 | // private Cliente cliente;
|
- | |
| - | 40 | private Cliente cliente; |
|
| 41 | private Usuario usuario; |
41 | private Usuario usuario; |
| 42 | private Vendedor vendedor; |
42 | private Vendedor vendedor; |
| 43 | // private Vendedor indicacao;
|
43 | // private Vendedor indicacao;
|
| 44 | private Date dataVenda; |
44 | private Date dataVenda; |
| 45 | private String observacao; |
45 | private String observacao; |
| Line 131... | Line 131... | ||
| 131 | return loja; |
131 | return loja; |
| 132 | }
|
132 | }
|
| 133 | public void setLoja(Loja loja) { |
133 | public void setLoja(Loja loja) { |
| 134 | this.loja = loja; |
134 | this.loja = loja; |
| 135 | }
|
135 | }
|
| 136 | /*
|
- | |
| - | 136 | ||
| 137 | @ManyToOne
|
137 | @ManyToOne |
| 138 | @ForeignKey(name="fk_venda_cliente")
|
138 | @ForeignKey(name="fk_venda_cliente") |
| 139 | @JoinColumn(name = "seq_cliente", nullable = true)
|
139 | @JoinColumn(name = "seq_cliente", nullable = true) |
| 140 | public Cliente getCliente() {
|
140 | public Cliente getCliente() { |
| 141 | return cliente;
|
141 | return cliente; |
| 142 | }
|
142 | }
|
| 143 | public void setCliente(Cliente cliente) {
|
143 | public void setCliente(Cliente cliente) { |
| 144 | this.cliente = cliente;
|
144 | this.cliente = cliente; |
| 145 | }
|
145 | }
|
| 146 | */
|
- | |
| - | 146 | ||
| 147 | @ManyToOne |
147 | @ManyToOne |
| 148 | @ForeignKey(name="fk_venda_usuario") |
148 | @ForeignKey(name="fk_venda_usuario") |
| 149 | @JoinColumn(name = "seq_usuario", nullable = false) |
149 | @JoinColumn(name = "seq_usuario", nullable = false) |
| 150 | public Usuario getUsuario() { |
150 | public Usuario getUsuario() { |
| 151 | return usuario; |
151 | return usuario; |