summaryrefslogtreecommitdiffstats
path: root/java/MyMyBatis/src/Model.java
blob: 6e817ed1cec97e04573b3b76297876b3fb07b65a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
package ch.asynk;

import lombok.Setter;
import lombok.Getter;

public class Model
{
    private @Setter @Getter Integer id;
    private @Setter @Getter String name;

    public Model(Integer id, String name)
    {
        this.id = id;
        this.name = name;
    }

    @Override
    public String toString()
    {
        return String.format("model [%d] %s", id, name);
    }
}