01: /*
02: * JFox - The most lightweight Java EE Application Server!
03: * more details please visit http://www.huihoo.org/jfox or http://www.jfox.org.cn.
04: *
05: * JFox is licenced and re-distributable under GNU LGPL.
06: */
07: package org.jfox.entity.annotation;
08:
09: import java.lang.annotation.Target;
10: import java.lang.annotation.Retention;
11: import java.lang.annotation.RetentionPolicy;
12: import java.lang.annotation.ElementType;
13:
14: /**
15: * @author <a href="mailto:jfox.young@gmail.com">Young Yang</a>
16: */
17: @Retention(RetentionPolicy.RUNTIME)
18: @Target({ElementType.FIELD,ElementType.METHOD})
19: public @interface MappingColumn {
20: /**
21: * 用�查询的 query
22: */
23: String namedQuery();
24:
25: /**
26: * ä¼ ç»™ namedQuery çš„å?‚数,è¦?引用自身,使用$this,比如 $this.getId()
27: */
28: ParameterMap[] params() default {};
29: }
|