diff options
Diffstat (limited to 'java/MyMyBatis/src/Model.java')
-rw-r--r-- | java/MyMyBatis/src/Model.java | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/java/MyMyBatis/src/Model.java b/java/MyMyBatis/src/Model.java new file mode 100644 index 0000000..6e817ed --- /dev/null +++ b/java/MyMyBatis/src/Model.java @@ -0,0 +1,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); + } +} |