Hibernate Annotations Sample
源代码在线查看: target.java
//$Id: Target.java 14736 2008-06-04 14:23:42Z hardy.ferentschik $
package org.hibernate.annotations;
import java.lang.annotation.Retention;
import java.lang.annotation.ElementType;
import java.lang.annotation.RetentionPolicy;
/**
* Define an explicit target,a voiding reflection and generics resolving
*
* @author Emmanuel Bernard
*/
@java.lang.annotation.Target({ElementType.FIELD, ElementType.METHOD})
@Retention( RetentionPolicy.RUNTIME )
public @interface Target {
Class value();
}