diff options
Diffstat (limited to 'java/MyMyBatis/src/Model.java')
-rw-r--r-- | java/MyMyBatis/src/Model.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/java/MyMyBatis/src/Model.java b/java/MyMyBatis/src/Model.java index daa7938..a8b1bca 100644 --- a/java/MyMyBatis/src/Model.java +++ b/java/MyMyBatis/src/Model.java @@ -42,4 +42,10 @@ public class Model implements AbstractModel<Integer, Model> { return String.format("model [%d] %s", id, name); } + + @Override + public void feedFrom(Model other) + { + this.name = other.name; + } } |