Cool...even better... On Wed, May 21, 2008 at 2:43 PM, Clinton Begin <[EMAIL PROTECTED]> wrote:
> No, we took a different approach. You can declare a <sql > id="blah">block</sql> and then use it with <include id="blah"/> in your > statement. I believe the way iBATIS for Java does it is more flexible and > predictable. Direction becomes a problem with "extends". > > Clinton > > > On Wed, May 21, 2008 at 1:34 PM, Josh Joy <[EMAIL PROTECTED]> wrote: > >> Hi, >> >> I saw in the ibatis docs for dotnet there is a way to use extends with >> select elements... >> http://ibatis.apache.org/docs/dotnet/datamapper/ch03s03.html >> >> Is there something similar for Java? I am looking to append the following >> xml to lots of my sql select statements... >> <dynamic prepend="ORDER BY "> >> <isNotEmpty property="SortField"> >> ORDER BY $SortField$ $SortType$ >> </isNotEmpty> >> </dynamic> >> >> >> Thanks, >> Josh >> > >
