package com.example.demo.model;

/**
 * 用户实体类
 * 
 * 学习点：
 * - JavaBean / POJO 设计模式
 * - Lombok 可以简化 getter/setter（这里用原生写法演示）
 */
public class User {
    private Long id;
    private String name;
    private String email;
    private Integer age;

    public User() {}

    public User(Long id, String name, String email, Integer age) {
        this.id = id;
        this.name = name;
        this.email = email;
        this.age = age;
    }

    // Getters and Setters
    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; }
    public String getEmail() { return email; }
    public void setEmail(String email) { this.email = email; }
    public Integer getAge() { return age; }
    public void setAge(Integer age) { this.age = age; }
}