package test05.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.NonNull;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class User {
    @NonNull
    private Integer id =-1;
    @NonNull
    private String name ="";
    @NonNull
    private String password ="";
    public User(int id){
        this.id = id;
    }
    public User(@NonNull String name, @NonNull String password){
        this.name = name;
        this.password = password;
    }
}
