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