ibatis-user-java mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Chad McHenry <mchen...@gmail.com>
Subject Re: Multiple values in a plugin property
Date Mon, 22 Jun 2009 00:01:41 GMT
It is for Spring annotations that I started this, so I'll continue on.
SuppressWarnings annotations were an afterthought, but the
suppressTypeWarnings property is a useful find, as is the
targetRuntime="Ibatis2Java5" attribute, which I'd somehow missed before,
thanks for the pointer.
On Sun, Jun 21, 2009 at 12:21 PM, Dan Turkenkopf <dturkenk@gmail.com> wrote:

> Hi Chad,
>
> As far as I know there's no preferred delimiter.  In some conversations
> I've had with Jeff, he's suggested commas were a good way to go.
>
> I've done something similar before with a plugin, adding a Spring @Service
> annotation to my generated DAOs, but nothing as generic as you're trying.
>
> In the particular case of your example, however, you can use the
> "suppressTypeWarnings" property of the ibatorContext element rather than
> using a plugin.
>
> I agree some sort of repository listing for plugins would be a great
> thing.  In the past, people have suggested adding them to the 3rd Party
> Contributions page on the Wiki (
> http://opensource.atlassian.com/confluence/oss/display/IBATIS/3rd+Party+Contributions).
> I keep meaning to clean mine up and post them, but it always seems to slip
> through the cracks.
>
> Hope this helps,
> Dan
>
>
> On Sun, Jun 21, 2009 at 8:55 AM, Chad McHenry <mchenryc@gmail.com> wrote:
>
>> I'm developing an Ibator plugin and wondering if there is a preferred way
>> to specify multiple values. I'm expecting to implement a comma separated
>> list
>>
>>     <ibatorPlugin type="com.example.ibatis.ibator.plugins.ClassAnnotator">
>>       <property name="classTypes" value="modelBaseRecord,modelExample" />
>>       <property name="annotations"
>> value='java.lang.SuppressWarnings("unchecked"),' />
>>     </ibatorPlugin>
>>
>> Alternatively, has anyone already made this plugin (to annotate classes
>> generated by Ibator)? I understand there are many plugins out there, but
>> searching google and the ibatis site only turned up the 5 that are in the
>> svn repository:
>> http://svn.apache.org/repos/asf/ibatis/trunk/java/tools/ibator/core/src/org/apache/ibatis/ibator/plugins/
>>
>> ...Chad
>>
>
>

Mime
View raw message