-
Notifications
You must be signed in to change notification settings - Fork 12.9k
New @Mapper marker annotation for DI frameworks #629
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
The @Mapper annotation is not showed in Mapper Annotations of document http://www.mybatis.org/mybatis-3/java-api.html. Is the annotation public to the users without using spring, boot or CDI? |
Hi Guys,
I have just noticed this message and I am wondering if is there any
conflict with the Mapper annotation already existing in mybatis-cdi:
https://github.com/mybatis/cdi/blob/master/src/main/java/org/mybatis/cdi/Mapper.java
…On Fri, Apr 21, 2017 at 1:24 AM, Jeff Fang ***@***.***> wrote:
The @Mapper <https://github.com/Mapper> annotation is not showed in
Mapper Annotations of document http://www.mybatis.org/
mybatis-3/java-api.html. Is the annotation public to the users without
using spring, boot or CDI?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#629 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ABCXVWonqDspUOaxjZcT250ywe-j0E6-ks5ryEungaJpZM4IDpUm>
.
--
Frank D. Martínez M.
|
Hi Mnesarco, I'm not using mybatis-cdi. Actually, I want to scan the mapper interfaces by myself with the new added @Mapper interface, but the annotation seems not be displayed in mybatis document. Is it recommended to use the annotation for scanning mapper interfaces for regular users(not mybatis-cdi or spring-boot developer)? |
@mnesarco , @jefffangji , |
Our project is based on Play and MyBatis-Guice. And I don't find there is mapper auto-scan functionality in MyBatis-Guice. That's why I need to scan the mappers by myself. |
@harawata , |
@mnesarco ,
Now I agree with you. @emacarron @eddumelendez @kazuki43zoo @jeffgbutler @jefffangji , |
@harawata @mnesarco
I think so. I think we should be provide a migration period for mybatis-spring-boot users. (e.g. Change to deprecated annotation (+ provide a new annotation) -> Remove |
I will propose adding new |
@kazuki43zoo Sounds good to me. |
A new annotation has been created so they can use it for scanning purposes.
Change in b6977e6
Know about the history in mybatis/spring-boot-starter#46
The text was updated successfully, but these errors were encountered: