⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 user.java

📁 一个Java持久层类库
💻 JAVA
字号:
package ActiveObject.po;import ActiveObject.core.ActiveRecord;import ActiveObject.core.column;import ActiveObject.core.has_one;import ActiveObject.core.id;import ActiveObject.core.link;/** *  @author Administrator */@has_one(Role.class)public class User extends ActiveRecord {    @id @column("id") private long userId;    @column("name") private String name;    private int rank;    @link(value=Role.class, refer="id") @column()private String roleId;//    @link(value=Role.class, refer="classId") @column() private String claId;    public String getName() {        return name;    }    public void setName(String name) {        this.name = name;    }    public int getRank() {        return rank;    }    public void setRank(int rank) {        this.rank = rank;    }    /**     * @return the userId     */    public long getUserId() {        return userId;    }    /**     * @param userId the userId to set     */    public void setUserId(long userId) {        this.userId = userId;    }}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -