Untitled

mail@pastecode.io avatar
unknown
java
a month ago
312 B
1
Indexable
Never
@Entity
@Table(name = "user")
public class User {
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Long id;

    @Column(name = "username")
    private String username;

    @Column(name = "password")
    private String password;

    // 省略构造函数、getter 和 setter 方法
}
Leave a Comment