I have an Address component and I want a different behavior whether the country is Romania or not.
I want something like:
<resultMap class="Address" id="one" resultMap="commonFieldsMap">
<discriminator column="COUNTRY" javaType="int">
<subMap value="123" resultMap="romania"/>
<subMap value="!123" resultMap="foreign"/>
</discriminator>
</resultMap>
Is this possible ?
I found out you can create a
typeHandlerand apply there anifand you return0or1, values which you put insubMap value.