PS:  If we can get a good approach to converting the iBATIS 2 XML
files to iBATIS 3, then I think it will be quite easy to create an
iBATIS 2 Java API wrapper for iBATIS 3.  That way older codebases
could get away with minimal Java code changes.

Cheers,
Clinton

On Tue, Aug 18, 2009 at 6:13 PM, Clinton Begin<clinton.be...@gmail.com> wrote:
> Thanks Trenton... That's exactly how iBATIS 1 > 2 worked.  But then I
> swore I'd never write XSLT again.  :-)  That said, if you have it,
> that is awesome.
>
> The approach we're looking at would be a ConfigurationWriter that took
> an instance of Configuration and wrote out the XML files.  That way
> you could more easily handle the edge cases that require logic that's
> difficult to implement in XSLT... like some of the dynamic SQL
> changes, and the type aliases that need to be rolled up into the
> configuration file, etc.
>
> Any and all ideas and implementations are welcome here though.  I'm
> not sure I'll have time to write the ConfigurationWriter any time
> soon.
>
> Clinton
>
> On Tue, Aug 18, 2009 at 4:10 PM, Trenton D. Adams<tre...@athabascau.ca> wrote:
>> Why not just use an XSL to convert it?
>>
>> I've attached one that I use now and then, to spit out full SQL from a bunch
>> of fragments, as well as output bean code.
>>
>> Trenton D. Adams
>> Systems Analyst/Web Software Engineer
>> Navy Penguins at your service!
>> Athabasca University
>> (780) 675-6195
>> :wq!
>>
>> ----- "Nathan Maves" <nathan.ma...@gmail.com> wrote:
>>> From: "Nathan Maves" <nathan.ma...@gmail.com>
>>> To: user-java@ibatis.apache.org, "larry meadors" <larry.mead...@gmail.com>
>>> Sent: Tuesday, August 18, 2009 4:04:46 PM GMT -07:00 US/Canada Mountain
>>> Subject: Re: Request for input on porting iBatis XML from 2.x to 3.0
>>>
>>> We actually already started the talks on how to automate this.  We did
>>> this for the last major upgrade and it was a huge help.
>>>
>> Thanks again for your notes.
>>>
>>>
>>> On Tue, Aug 18, 2009 at 3:49 PM, Larry Meadors <larry.mead...@gmail.com>
>>> wrote:
>>>
>>>
>>> Thanks for sharing!
>>> >
>>> > You rock.
>>> >
>>> > Larry
>>> >
>>> >
>>> >
>>> > On Tue, Aug 18, 2009 at 3:20 PM, Joel
>>> > Barciauskas<jbarciaus...@nexaweb.com> wrote:
>>> > > Hey everyone,
>>> > >
>>> > >
>>> > >
>>> > > I just posted the notes that I took as I worked on porting my 2.x XML
>>> > > mapping and configuration files to the wiki:
>>> > >
>>> > > http://opensource.atlassian.com/confluence/oss/display/IBATIS/Porting+sqlMapConfig+and+sqlMap+XML+from+2.x+to+3.0
>>> > >
>>> > >
>>> > >
>>> > > I canceled the port part-way through since I didn’t think I’d be able
>>> > > to
>>> > > finish and test it in a reasonable amount of time for my current
>>> > > project,
>>> > > but I thought the notes that I took might be useful for bootstrapping
>>> > > some
>>> > > documentation, so I went ahead and created this page.  If you are
>>> > > familiar
>>> > > with the 3.0 schema, please review it, as I am sure there are items
>>> > > that are
>>> > > incorrect.
>>> > >
>>> > >
>>> > >
>>> > > Hope someone finds this of value!
>>> > >
>>> > >
>>> > >
>>> > > __________________________________________________________
>>> > > Joel Barciauskas | Technical Consultant
>>> > > Nexaweb Technologies | www.nexaweb.com
>>> > > 781.345.5428 o | 617.899.8273 m
>>> > > Skype™: jbarciauskas
>>> > >
>>> > >
>>> > >
>>> > >
>>> >
>>> >
>>> ---------------------------------------------------------------------
>>> > To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org
>>> > For additional commands, e-mail: user-java-h...@ibatis.apache.org
>>> >
>>> >
>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org
>> For additional commands, e-mail: user-java-h...@ibatis.apache.org
>>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: user-java-unsubscr...@ibatis.apache.org
For additional commands, e-mail: user-java-h...@ibatis.apache.org

Reply via email to