TestPost

作者: Defei | 来源:发表于2014-05-06 18:26 被阅读0次

    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;

    }

    相关文章

      网友评论

          本文标题:TestPost

          本文链接:https://www.haomeiwen.com/subject/tjurtttx.html