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
Hi,

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>

Oneliner:

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

Suggested new syntax for oneliners:

<include refid="fragment" prop-key="val" />
Something like this: http://www.w3schools.com/tags/att_global_data.asp

OR

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

OR

Any other suggestions?

Martin

--
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 https://groups.google.com/d/optout.