Reformat iBATIS XML Files
The SQL in iBATIS files doesn't get reformatted very well.
e.g. this is formatted by IDEA
<select id="selectRange" parameterClass="com.me.FilteredSortedRange" resultClass="com.me.Response">
select * from (
select ROWNUM num, a.* from (
select * from (
<include refid="statusresponse.selectAgg"/>
)
) a
)
<include refid="statusresponse.filterWhereRange"/>
<include refid="statusresponse.orderBy"/>
</select>
whereas this makes the query clearer as you can see the nested SQL blocks
<select id="selectRange" parameterClass="com.me.FilteredSortedRange" resultClass="com.me.Response">
select * from (
select ROWNUM num, a.* from (
select * from (
<include refid="statusresponse.selectAgg"/>
)
) a
)
<include refid="statusresponse.filterWhereRange"/>
<include refid="statusresponse.orderBy"/>
</select>
How do I configure this?
请先登录再写评论。
Please file a ticket.
On 10.07.2010 0:15, opticyclic wrote:
>
>
>
>
http://youtrack.jetbrains.net/issue/IDEA-56456