<select id="getModelById" resultMap="modelTypeMap"> SELECT id as id, model_id AS modelId, model_type AS modelType, created_by AS createdBy, model_name AS modelName, model_def AS modelDef, start_date AS startDate, end_date AS endD…
Single Table策略 通过 discriminator鉴别器来区分是父类还是子类 Employee public class Employee { private Long id; private String name; HourlyEmployee public class HourlyEmployee extends Employee { private Double rate; SalariedEmployee public class SalariedEmployee exte…
转:https://blog.csdn.net/cjt20100/article/details/46547617. 1 constructor – 用来将结果反射给一个实例化好的类的构造器 a) idArg – ID 参数:将结果集标记为ID,以方便全局调用 b) arg –反射到构造器的通常结果2. id – ID 结果,将结果集标记为ID,以方便全局调用3. result – 反射到JavaBean 属性的普通结果4. association – 复杂类型的结合:多个结果合成…