myBatisGenerator

26 views
Skip to first unread message

Andrey Rogov

unread,
Mar 2, 2020, 8:23:14 AM3/2/20
to mybati...@googlegroups.com
Are JavaService and JavaController implemented in 1.4.0 generator?

regards
Andrey

Jeff Butler

unread,
Mar 2, 2020, 8:54:02 AM3/2/20
to mybati...@googlegroups.com
I'm not sure what you mean. Are you referring to Spring @Service and @Controller?

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mybatis-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/mybatis-user/CAAJ_J17r0JC_37j5ao0FPk4aY-KkDtzJzfE7xiWg3dSZoSzM1A%40mail.gmail.com.

Andrey Rogov

unread,
Mar 2, 2020, 9:21:02 AM3/2/20
to mybati...@googlegroups.com
yes Jeff. I'm about Spring @Service and @Controller?


пн, 2 мар. 2020 г. в 15:54, Jeff Butler <jeffg...@gmail.com>:

Jeff Butler

unread,
Mar 2, 2020, 9:27:13 AM3/2/20
to mybatis-user
The generator doesn't add these annotations to anything it generates. I think you could make a case that a generated mapper is somewhat like a service. Although, in my opinion, a generated MyBatis mapper is too fine grained to be considered a real service. In my experience it is more common to inject mappers into services.

MyBatis Spring support implements a scanner for the @Mapper annotation that makes it easy to inject mappers into other Spring objects. The generator will add the @Mapper annotation to generated objects.


On Monday, March 2, 2020 at 9:21:02 AM UTC-5, andrey.rogov wrote:
yes Jeff. I'm about Spring @Service and @Controller?


пн, 2 мар. 2020 г. в 15:54, Jeff Butler <jeffg...@gmail.com>:
I'm not sure what you mean. Are you referring to Spring @Service and @Controller?

On Mon, Mar 2, 2020 at 8:23 AM Andrey Rogov <andre...@gmail.com> wrote:
Are JavaService and JavaController implemented in 1.4.0 generator?

regards
Andrey

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mybati...@googlegroups.com.

--
You received this message because you are subscribed to the Google Groups "mybatis-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mybati...@googlegroups.com.
Reply all
Reply to author
Forward
0 new messages