NutzCN Logo
问答 创建表奇怪的BUG seller
发布于 2945天前 作者 Hamming 1489 次浏览 复制 上一个帖子 下一个帖子
标签:

seller 或者sell_id 都不会创建字段

package nuoshang.bluejay.modules.app.models;

import nuoshang.bluejay.common.base.Model;
import org.nutz.dao.entity.annotation.*;

import java.io.Serializable;

/**
 * 支付宝配置
 * Created by yuhaiming on 2016/11/29 0029.
 */
@Table("app_alipay_conf")
public class App_alipay_conf extends Model implements Serializable {
    private   final long serialVersionUID = 1L;
    /********** attribute ***********/

    @Id
    @Comment("ID")
    @Column("id")
    private Long id;

    @Comment("合作身份者ID")
    @Column("partner")
    public String partner;

    @Comment("商户的私钥")
    @Column("private_key")
    @ColDefine(type = ColType.VARCHAR, width = 500)
    public String private_key;

    @Comment("支付宝的公钥")
    @Column("ali_public_key")
    @ColDefine(type = ColType.VARCHAR, width = 500)
    public String ali_public_key;

    @Comment("签约卖家支付宝账号")
    @Column("sell_id")
    public static String sell_id;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getPartner() {
        return partner;
    }

    public void setPartner(String partner) {
        this.partner = partner;
    }

    public String getPrivate_key() {
        return private_key;
    }

    public void setPrivate_key(String private_key) {
        this.private_key = private_key;
    }

    public String getAli_public_key() {
        return ali_public_key;
    }

    public void setAli_public_key(String ali_public_key) {
        this.ali_public_key = ali_public_key;
    }

    public static String getSell_id() {
        return sell_id;
    }

    public static void setSell_id(String sell_id) {
        App_alipay_conf.sell_id = sell_id;
    }
}

2 回复

静态属性不参与映射

添加回复
请先登陆
回到顶部