Re: How to use @SelectProvider

2010-01-13 Thread Clinton Begin
Now it's time to read the user guide :-) Clinton On Wed, Jan 13, 2010 at 2:35 PM, kruba02 wrote: > > Thanks Clinton > > I am still missing one piece i.e. how to invoke this mapper. Do I use > SqlMapClient? An example code will be great. > > Thanks a lot! > > > > Clinton Begin wrote: > > >

Re: How to use @SelectProvider

2010-01-13 Thread kruba02
Thanks Clinton I am still missing one piece i.e. how to invoke this mapper. Do I use SqlMapClient? An example code will be great. Thanks a lot! Clinton Begin wrote: > > @SelectProvider should be applied to your Mapper interface. For example: > > public interface MyMapper { > @Select("SE

Re: How to use @SelectProvider

2010-01-13 Thread Clinton Begin
@SelectProvider should be applied to your Mapper interface. For example: public interface MyMapper { @Select("SELECT * FROM users") User selectUsers(); } The SelectProvider equivalent of this would be: public interface MyMapper { @SelectProvider(type=com.me.SomeHelperClass,method="getSel