I mean, I just want to include the MapperConfig.xml ( including connection configuration and mapper resources) and Java DAO files ( POJO java with MyBatis Anntonations)
For example, *MapperConfig.xml* <settings> ...</settings> <environments> ... </environments> <mappers> <mapper resource="* ILogin .java"*/> (but not via XXXMapper.xml) ... </mappers>
And in* ILogin.java* public interface ILogin { @Select("SELECT user_id, username,tribe_name, locked FROM iqu.tb_user WHERE username = #{unm} and tribe_name=#{tribe} and password=#{pwd}") @Results(value = { @Result(property = "userId", column = "user_id"), @Result(property = "username"), @Result(property = "tribeName", column = "tribe_name"), @Result(property = "locked") }) ...
> I mean, I just want to include the MapperConfig.xml ( including connection
> configuration and mapper resources) and Java DAO files ( POJO java with
> MyBatis Anntonations)
> For example, MapperConfig.xml
> <settings> ...</settings>
> <environments> ... </environments>
> <mappers>
> <mapper resource=" ILogin .java"/> (but not via XXXMapper.xml)
> ...
> </mappers>
> And in ILogin.java
> public interface ILogin {
> @Select("SELECT user_id, username,tribe_name, locked FROM iqu.tb_user WHERE
> username = #{unm} and tribe_name=#{tribe} and password=#{pwd}")
> @Results(value = { @Result(property = "userId", column = "user_id"),
> @Result(property = "username"),
> @Result(property = "tribeName", column = "tribe_name"),
> @Result(property = "locked") })
> ...
> 2012/11/9 FromBasic <grain...@gmail.com <javascript:>>: > > I mean, I just want to include the MapperConfig.xml ( including > connection > > configuration and mapper resources) and Java DAO files ( POJO java with > > MyBatis Anntonations)
> > For example, MapperConfig.xml > > <settings> ...</settings> > > <environments> ... </environments> > > <mappers> > > <mapper resource=" ILogin .java"/> (but not via XXXMapper.xml) > > ... > > </mappers>
> > And in ILogin.java > > public interface ILogin { > > @Select("SELECT user_id, username,tribe_name, locked FROM iqu.tb_user > WHERE > > username = #{unm} and tribe_name=#{tribe} and password=#{pwd}") > > @Results(value = { @Result(property = "userId", column = "user_id"), > > @Result(property = "username"), > > @Result(property = "tribeName", column = "tribe_name"), > > @Result(property = "locked") }) > > ...
>> 2012/11/9 FromBasic <grain...@gmail.com>:
>> > I mean, I just want to include the MapperConfig.xml ( including
>> > connection
>> > configuration and mapper resources) and Java DAO files ( POJO java with
>> > MyBatis Anntonations)
>> > For example, MapperConfig.xml
>> > <settings> ...</settings>
>> > <environments> ... </environments>
>> > <mappers>
>> > <mapper resource=" ILogin .java"/> (but not via XXXMapper.xml)
>> > ...
>> > </mappers>
>> > And in ILogin.java
>> > public interface ILogin {
>> > @Select("SELECT user_id, username,tribe_name, locked FROM iqu.tb_user
>> > WHERE
>> > username = #{unm} and tribe_name=#{tribe} and password=#{pwd}")
>> > @Results(value = { @Result(property = "userId", column = "user_id"),
>> > @Result(property = "username"),
>> > @Result(property = "tribeName", column = "tribe_name"),
>> > @Result(property = "locked") })
>> > ...