Here are the examples of the java api org.hibernate.annotations.AnyMetaDefs taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.
1 Examples
16
Source : BinderHelper.java
with GNU General Public License v2.0
from lamsfoundation
with GNU General Public License v2.0
from lamsfoundation
public static void bindAnyMetaDefs(XAnnotatedElement annotatedElement, MetadataBuildingContext context) {
AnyMetaDef defAnn = annotatedElement.getAnnotation(AnyMetaDef.clreplaced);
AnyMetaDefs defsAnn = annotatedElement.getAnnotation(AnyMetaDefs.clreplaced);
boolean mustHaveName = XClreplaced.clreplaced.isreplacedignableFrom(annotatedElement.getClreplaced()) || XPackage.clreplaced.isreplacedignableFrom(annotatedElement.getClreplaced());
if (defAnn != null) {
checkAnyMetaDefValidity(mustHaveName, defAnn, annotatedElement);
bindAnyMetaDef(defAnn, context);
}
if (defsAnn != null) {
for (AnyMetaDef def : defsAnn.value()) {
checkAnyMetaDefValidity(mustHaveName, def, annotatedElement);
bindAnyMetaDef(def, context);
}
}
}