1 Star 11 Fork 11

charjay/distributed

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
该仓库未声明开源许可证文件(LICENSE),使用请关注具体项目描述及其代码上游依赖。
克隆/下载
User.java 704 Bytes
一键复制 编辑 原始数据 按行查看 历史
charjay 提交于 7年前 . mongodb
package com.charjay.test;
import org.mongodb.morphia.annotations.Entity;
import org.mongodb.morphia.annotations.Id;
@Entity
public class User {
@Id
private long id;
private String name;
private boolean sex;
private int age;
private String address;
public User() {
}
public User(long id, String name, boolean sex, int age, String address) {
super();
this.id = id;
this.name = name;
this.sex = sex;
this.age = age;
this.address = address;
}
//getter、setter
@Override
public String toString() {
return this.id + "#" + this.name + "#" + this.age + "#" + this.sex + "#" + this.address;
}
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/charjay/distributed.git
git@gitee.com:charjay/distributed.git
charjay
distributed
distributed
master

搜索帮助