1 package myorg.relex.one2one;
2
3 import java.util.Date;
4 import javax.persistence.*;
5
6 /**
7 * This class provides an example of a recipient of cascade actions.
8 */
9 @Entity
10 @Table(name="RELATIONEX_LICENSE")
11 public class License {
12 @Id @GeneratedValue
13 private int id;
14 @Temporal(TemporalType.DATE)
15 private Date renewal;
16
17 public int getId() { return id; }
18
19 public Date getRenewal() { return renewal; }
20 public void setRenewal(Date renewal) {
21 this.renewal = renewal;
22 }
23 }