Przeglądaj źródła

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

jiapeng 8 lat temu
rodzic
commit
60d6737d04

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

1
package org.jfw.apt.orm.annotation.dao.method.operator;
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
public @interface SelectList {
10
public @interface SelectList {
4
11
5
}
12
}

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

1
package org.jfw.apt.orm.annotation.entry;
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
public @interface PrimaryKey {
10
public @interface PrimaryKey {
4
	String[] value();
11
	String[] value();
5
}
12
}