Can I use 'autoMapping' with `discriminator` ?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

Can I use 'autoMapping' with `discriminator` ?

Sangpil BYUN
Can I use 'autoMapping' with `discriminator` ?
Without set global configuration `autoMappingBehaviro` to `FULL`.

like this.

<resultMap id="vehicleResult" type="Vehicle" autoMapping="true">
  <id property="id" column="id" />
  <discriminator javaType="int" column="vehicle_type">
    <case value="1" resultType="carResult" autoMapping="true" />
    <case value="2" resultType="truckResult" autoMapping="true" />
    <case value="3" resultType="vanResult" autoMapping="true" />
    <case value="4" resultType="suvResult" autoMapping="true" />

Thank you.

You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
For more options, visit