Browse Source

--修正Annotition没有定义@Target @Retention

jiapeng 8 years ago
parent
commit
60d6737d04

+ 7 - 0
jfwAptOrm/src/main/java/org/jfw/apt/orm/annotation/dao/method/operator/SelectList.java

@ -1,5 +1,12 @@
1 1
package org.jfw.apt.orm.annotation.dao.method.operator;
2 2
3
import java.lang.annotation.ElementType;
4
import java.lang.annotation.Retention;
5
import java.lang.annotation.RetentionPolicy;
6
import java.lang.annotation.Target;
7
8
@Target({ElementType.METHOD})
9
@Retention(RetentionPolicy.SOURCE)
3 10
public @interface SelectList {
4 11
5 12
}

+ 7 - 0
jfwAptOrm/src/main/java/org/jfw/apt/orm/annotation/entry/PrimaryKey.java

@ -1,5 +1,12 @@
1 1
package org.jfw.apt.orm.annotation.entry;
2 2
3
import java.lang.annotation.ElementType;
4
import java.lang.annotation.Retention;
5
import java.lang.annotation.RetentionPolicy;
6
import java.lang.annotation.Target;
7
8
@Target(ElementType.TYPE)
9
@Retention(RetentionPolicy.SOURCE)
3 10
public @interface PrimaryKey {
4 11
	String[] value();
5 12
}