new operator entity

This commit is contained in:
Sola
2015-12-07 13:43:16 +08:00
parent bdf3cfe74e
commit b0ba46cc77
16 changed files with 212 additions and 145 deletions

View File

@@ -23,6 +23,7 @@ public class Ticket {
public static final String PROPERTY_USER = "user";
public static final String PROPERTY_STATUS = "status";
public static final String PROPERTY_SUBMIT_TIME = "submitTime";
@Id
@GeneratedValue(strategy = GenerationType.IDENTITY)
@@ -31,13 +32,13 @@ public class Ticket {
@JoinColumn(name = TableTicket.COLUMN_SID)
private User user;
private String description;
@Column(name = TableTicket.COLUMN_SUBMIT_TIME, insertable = false)
@Column(name = TableTicket.COLUMN_SUBMIT_TIME, insertable = false, updatable = false)
private Date submitTime;
private String remark;
private Date updateTime;
@ManyToOne(optional = true)
@JoinColumn(name = TableTicket.COLUMN_OPSID)
private User operator;
private Operator operator;
private Integer status;
}