Advertisement
Guest User

Untitled

a guest
Nov 27th, 2014
153
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Java 0.42 KB | None | 0 0
  1. @Entity
  2. @Table(name = "pedido")
  3. public class PedidoVO {
  4.     @Id @GeneratedValue
  5.     private Integer id;
  6.    
  7.     @Temporal(TemporalType.DATE)
  8.     @Column(nullable=true)
  9.     private Date dtpedido;
  10.    
  11.     @ManyToOne(fetch= FetchType.EAGER)
  12.     @JoinColumn(nullable=false)
  13.     private ClienteVO cliente;
  14.    
  15.     @OneToMany(fetch= FetchType.EAGER, cascade={CascadeType.ALL})
  16.     private List<ItemPedidoVO> itens;
  17. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement