package test05.pojo;

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

@Data
@AllArgsConstructor
@NoArgsConstructor
public class Student {
    @NonNull
    private Integer id =-1;
    @NonNull
    private String code ="";
    @NonNull
    private String name ="";
    @NonNull
    private Integer sex =-1;
    @NonNull
    private Integer grade =-1;
    @NonNull
    private Integer major =-1;
    @NonNull
    private String detail ="";
    public Student(int id){
        this.id =id;
    }
}
