1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16 package org.apache.ibatis.autoconstructor;
17
18 import org.apache.ibatis.annotations.AutomapConstructor;
19
20 public class BadAnnotatedSubject {
21 private final int id;
22 private final String name;
23 private final int age;
24 private final int height;
25 private final int weight;
26
27 @AutomapConstructor
28 public BadAnnotatedSubject(final int id, final String name, final int age, final int height, final int weight) {
29 this.id = id;
30 this.name = name;
31 this.age = age;
32 this.height = height;
33 this.weight = weight;
34 }
35
36 @AutomapConstructor
37 public BadAnnotatedSubject(final int id, final String name, final int age) {
38 this.id = id;
39 this.name = name;
40 this.age = age;
41 this.height = 0;
42 this.weight = 0;
43 }
44 }