ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Clinton Begin <clinton.be...@gmail.com>
Subject Re: Request for input on porting iBatis XML from 2.x to 3.0
Date Wed, 19 Aug 2009 00:14:19 GMT
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.begin@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<trenta@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.maves@gmail.com> wrote:
>>> From: "Nathan Maves" <nathan.maves@gmail.com>
>>> To: user-java@ibatis.apache.org, "larry meadors" <larry.meadors@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.meadors@gmail.com>
>>> wrote:
>>>
>>>
>>> Thanks for sharing!
>>> >
>>> > You rock.
>>> >
>>> > Larry
>>> >
>>> >
>>> >
>>> > On Tue, Aug 18, 2009 at 3:20 PM, Joel
>>> > Barciauskas<JBarciauskas@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-unsubscribe@ibatis.apache.org
>>> > For additional commands, e-mail: user-java-help@ibatis.apache.org
>>> >
>>> >
>>
>>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: user-java-unsubscribe@ibatis.apache.org
>> For additional commands, e-mail: user-java-help@ibatis.apache.org
>>
>

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


Mime
View raw message