Passing SQL fragment properties via XML attributes (enhancement)

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

Passing SQL fragment properties via XML attributes (enhancement)

Martin Basovník

what do you think about adding possibility to pass properties to SQL fragment via XML attributes? Sometimes we need to use a "oneliner" to improved readability.

Current syntax

<include refid="fragment">
<property name="key1" value="val1"/>
    <property name="key2" value="val2"/>


<include refid="fragment"><property name="key" value="val"/></include>

Suggested new syntax for oneliners:

<include refid="fragment" prop-key="val" />
Something like this:


<include refid="fragment" key1="val1" key2="val2"/>
All XML attributes, except for reserved ones, would become properties.


Any other suggestions?


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