Rev 468 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
| Rev 468 | Rev 495 | ||
|---|---|---|---|
| Line 4... | Line 4... | ||
| 4 | import java.util.Date; |
4 | import java.util.Date; |
| - | 5 | import java.util.List; |
|
| 5 | 6 | ||
| - | 7 | import javax.persistence.CascadeType; |
|
| 6 | import javax.persistence.Column; |
8 | import javax.persistence.Column; |
| 7 | import javax.persistence.Entity; |
9 | import javax.persistence.Entity; |
| - | 10 | import javax.persistence.FetchType; |
|
| 8 | import javax.persistence.GeneratedValue; |
11 | import javax.persistence.GeneratedValue; |
| 9 | import javax.persistence.GenerationType; |
12 | import javax.persistence.GenerationType; |
| 10 | import javax.persistence.Id; |
13 | import javax.persistence.Id; |
| 11 | import javax.persistence.JoinColumn; |
14 | import javax.persistence.JoinColumn; |
| 12 | import javax.persistence.ManyToOne; |
15 | import javax.persistence.ManyToOne; |
| - | 16 | import javax.persistence.OneToMany; |
|
| 13 | import javax.persistence.SequenceGenerator; |
17 | import javax.persistence.SequenceGenerator; |
| 14 | import javax.persistence.Table; |
18 | import javax.persistence.Table; |
| 15 | import javax.persistence.Transient; |
19 | import javax.persistence.Transient; |
| 16 | import javax.validation.constraints.Size; |
20 | import javax.validation.constraints.Size; |
| 17 | 21 | ||
| 18 | import org.hibernate.annotations.ForeignKey; |
22 | import org.hibernate.annotations.ForeignKey; |
| 19 | 23 | ||
| 20 | import br.com.ec.core.util.VerificadorUtil; |
24 | import br.com.ec.core.util.VerificadorUtil; |
| 21 | import br.com.ec.web.util.DataUtil; |
- | |
| 22 | 25 | ||
| 23 | @Entity |
26 | @Entity |
| 24 | @Table(name="sec_compra_produto", schema="sc_sec") |
27 | @Table(name="sec_compra_produto", schema="sc_sec") |
| 25 | public class CompraProduto implements Serializable { |
28 | public class CompraProduto implements Serializable { |
| 26 | 29 | ||
| Line 242... | Line 245... | ||
| 242 | return descricaoProdutoNotaFiscal; |
245 | return descricaoProdutoNotaFiscal; |
| 243 | }
|
246 | }
|
| 244 | public void setDescricaoProdutoNotaFiscal(String descricaoProdutoNotaFiscal) { |
247 | public void setDescricaoProdutoNotaFiscal(String descricaoProdutoNotaFiscal) { |
| 245 | this.descricaoProdutoNotaFiscal = descricaoProdutoNotaFiscal; |
248 | this.descricaoProdutoNotaFiscal = descricaoProdutoNotaFiscal; |
| 246 | }
|
249 | }
|
| 247 | - | ||
| 248 | 250 | ||
| 249 | /*********************************************/
|
251 | /*********************************************/
|
| 250 | 252 | ||
| 251 | @Transient |
253 | @Transient |
| 252 | public String getCodigoNCM() { |
254 | public String getCodigoNCM() { |