1 22 package org.jboss.tutorial.interceptor.bean; 23 24 import java.util.Date ; 25 26 import javax.persistence.Entity; 27 import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; 28 import javax.persistence.Id; 29 30 35 @Entity 36 public class Confirmation 37 { 38 long orderId; 39 Date date; 40 41 public Confirmation() 42 { 43 44 } 45 46 public Confirmation(long orderId, Date date) 47 { 48 this.orderId = orderId; 49 this.date = date; 50 } 51 52 @Id 53 public long getOrderId() 54 { 55 return orderId; 56 } 57 58 public void setOrderId(long orderId) 59 { 60 this.orderId = orderId; 61 } 62 63 public Date getDate() 64 { 65 return date; 66 } 67 68 public void setDate(Date date) 69 { 70 this.date = date; 71 } 72 } 73 | Popular Tags |