ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Butler <jeffgbut...@gmail.com>
Subject Re: ibator download
Date Thu, 20 May 2010 21:27:00 GMT
I usually add these types of methods directly to the generated
classes.  In my experience, it's pretty rare to have to regenerate
classes.  If you use Ibator through the eclipse plugin, then the added
methods will even survive a regeneration.  Here's documentation for
building a new version of the Eclipse plugin if you are interested:

http://svn.apache.org/repos/asf/ibatis/java/ibator/trunk/eclipse/org.apache.ibatis.ibator.eclipse.doc/html-src/eclipseui/buildingFromSVN.html

I'd not recommend the interfaces route - I went down that rabbit hole
myself onetime and lived to regret it.

Search/replace - tedious but effective.

Jeff Butler



On Wed, May 19, 2010 at 4:30 PM, Roy Bailey <tech@roybailey.info> wrote:
> Thanks Jeff,
>
> I've been able to follow the instructions and generate Ibatis 3 mappers from
> Ibator 1.2.2 build.  Great job.
>
> I've also been looking around the Ibator code because I want to use extended
> classes for result-sets (e.g. classes that extend the Ibator generated
> classes and add derived methods and/or nice toString() etc.).  Easiest way
> seems to be to search/replace the code generated with different package,
> where I define the extended versions.  Another thought was to generate/use
> interfaces with all the getter/setter type methods, as this would allow for
> other classes to be passed to native Ibator mappers instead of forcing the
> creation/population of Ibator concrete classes.  Low priority, but any
> suggestions or thoughts?
>
> regards...
> Roy
>
>
> On 10/05/2010 22:43, Jeff Butler wrote:
>>
>> "stable" is strictly in the opinion of the user :)  I've been using it
>> for many weeks and it seems stable to me.
>>
>> Honestly, I don't know when I'll get to publishing it.  Whenever I
>> give a date, I miss it by a mile - for lots of reasons, mainly that it
>> takes more time than I seem to have.
>>
>> It's very easy to build yourself with Maven.  I wrote some directions
>> here:
>>
>>
>> http://svn.apache.org/repos/asf/ibatis/java/ibator/trunk/core/ibator-core/doc/html/reference/building.html
>>
>> Jeff Butler
>>
>>
>>
>> On Mon, May 10, 2010 at 4:31 PM, Roy Bailey<tech@roybailey.info>  wrote:
>>
>>>
>>> Any idea when a version of Ibator for iBatis 3 will be ready for
>>> download?
>>>
>>> I'd be really interested in stable milestone of the ibator to go with the
>>> testing of iBatis 3, especially as I'm starting to spend a lot of time on
>>> basic table crud.
>>>
>>> thanks...Roy
>>> P.S. I don't use maven, but if the instructions are simple I can give it
>>> a
>>> go.
>>>
>>>
>>> ---------------------------------------------------------------------
>>> 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
>
>

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