TestPost
Have a play.
@Id
@Column(length = 32, unique = true, nullable = false, name = "authcode_f")
private String authCode;
Not cool, I found a bug.
package net.ftng.qq.fight.domain;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
@Entity(name = "authcode_t")
public class AuthCode {
@Id
@Column(length = 32, unique = true, nullable = false, name = "authcode_f")
private String authCode;
@Column(name = "days_f")
private int workDays;
@Column(name = "paystatus_f")
private int payStatus;
public AuthCode() {
}
public AuthCode(final String authCode, final int workDays, final int payStatus) {
this.authCode = authCode;
this.workDays = workDays;
this.payStatus = payStatus;
}
public String getAuthCode() {
return authCode;
}
public void setAuthCode(final String authCode) {
this.authCode = authCode;
}
public int getWorkDays() {
return workDays;
}
public void setWorkDays(final int workDays) {
this.workDays = workDays;
}
public int getPayStatus() {
return payStatus;
}
public void setPayStatus(final int payStatus) {
this.payStatus = payStatus;
}