Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
Is it possible avoid using XXXMapper.xml?
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
FromBasic  
View profile  
 More options Nov 9 2012, 12:21 pm
From: FromBasic <grainbac...@gmail.com>
Date: Fri, 9 Nov 2012 09:21:42 -0800 (PST)
Local: Fri, Nov 9 2012 12:21 pm
Subject: Is it possible avoid using XXXMapper.xml?

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") })
...

Thank you !


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eduardo Macarron  
View profile  
 More options Nov 9 2012, 12:54 pm
From: Eduardo Macarron <eduardo.macar...@gmail.com>
Date: Fri, 9 Nov 2012 18:54:40 +0100
Local: Fri, Nov 9 2012 12:54 pm
Subject: Re: Is it possible avoid using XXXMapper.xml?
Yep, use:

<mappers>
  <mapper class="org.mybatis.builder.AuthorMapper"/>
  <mapper class="org.mybatis.builder.BlogMapper"/>
  <mapper class="org.mybatis.builder.PostMapper"/>
</mappers>

More details in:
http://www.mybatis.org/core/configuration.html#mappers

2012/11/9 FromBasic <grainbac...@gmail.com>:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
FromBasic  
View profile  
 More options Nov 9 2012, 1:08 pm
From: FromBasic <grainbac...@gmail.com>
Date: Fri, 9 Nov 2012 10:08:41 -0800 (PST)
Local: Fri, Nov 9 2012 1:08 pm
Subject: Re: Is it possible avoid using XXXMapper.xml?

Thanks Eduardo!
It seems I must change my user manual ... Is the pdf version not the latest
one?

在 2012年11月10日星期六UTC+8上午1时54分49秒,Eduardo写道:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Eduardo Macarron  
View profile  
 More options Nov 9 2012, 1:24 pm
From: Eduardo Macarron <eduardo.macar...@gmail.com>
Date: Fri, 9 Nov 2012 19:23:57 +0100
Local: Fri, Nov 9 2012 1:23 pm
Subject: Re: Is it possible avoid using XXXMapper.xml?
Seems so. You have an updated pdf in the bundle at the downloads page.

2012/11/9 FromBasic <grainbac...@gmail.com>:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »