package test.db; import com.firefly.db.annotation.Column; import com.firefly.db.annotation.Id; import com.firefly.db.annotation.Table; @Table(value = "user", catalog = "test") public class User { @Id("id") private Long id; @Column("pt_name") private String name; private String password; private String otherInfo; public Long getId() { return id; } public void setId(Long id) { this.id = id; } public String getName() { return name; } public void setName(String name) { this.name = name; } @Column("pt_password") public String getPassword() { return password; } public void setPassword(String password) { this.password = password; } public String getOtherInfo() { return otherInfo; } public void setOtherInfo(String otherInfo) { this.otherInfo = otherInfo; } @Override public String toString() { return "User [id=" + id + ", name=" + name + ", password=" + password + ", otherInfo=" + otherInfo + "]"; } }