Skip to content

Commit 7e91f28

Browse files
committed
Make SessionFactoryProvider a Stereotype to be more CDI friendly
1 parent f25f831 commit 7e91f28

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/main/java/org/mybatis/cdi/SessionFactoryProvider.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,12 +21,14 @@
2121
import java.lang.annotation.Inherited;
2222
import java.lang.annotation.Retention;
2323
import java.lang.annotation.Target;
24+
import javax.enterprise.inject.Stereotype;
2425

2526
/**
2627
* Qualifies an SqlSessionFactory provider method as usable by mybatis-cdi.
2728
*
2829
* @author Frank David Martínez
2930
*/
31+
@Stereotype
3032
@Inherited
3133
@Retention(RUNTIME)
3234
@Target({ ElementType.METHOD })

0 commit comments

Comments
 (0)