Skip to content

Commit b6977e6

Browse files
committed
CDI needs the annotation also for properties, methods... so just copied
1 parent d171d84 commit b6977e6

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/main/java/org/apache/ibatis/annotations/Mapper.java

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* Copyright 2013-2016 the original author or authors.
2+
* Copyright 2009-2016 the original author or authors.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
@@ -15,6 +15,9 @@
1515
*/
1616
package org.apache.ibatis.annotations;
1717

18+
import static java.lang.annotation.ElementType.FIELD;
19+
import static java.lang.annotation.ElementType.METHOD;
20+
import static java.lang.annotation.ElementType.PARAMETER;
1821
import static java.lang.annotation.ElementType.TYPE;
1922
import static java.lang.annotation.RetentionPolicy.RUNTIME;
2023

@@ -29,13 +32,7 @@
2932
*/
3033
@Inherited
3134
@Retention(RUNTIME)
32-
@Target({TYPE})
35+
@Target({ TYPE, METHOD, FIELD, PARAMETER })
3336
public @interface Mapper {
34-
35-
/**
36-
* Mapper name that can be read by DI injection frameworks
37-
* @return Mapper name
38-
*/
39-
String value() default "";
40-
37+
// Interface Mapper
4138
}

0 commit comments

Comments
 (0)