use of org.hibernate.annotations.ParamDef in project hibernate-orm by hibernate.
the class AnnotationBinder method bindFilterDef.
private static void bindFilterDef(FilterDef defAnn, MetadataBuildingContext context) {
Map<String, org.hibernate.type.Type> params = new HashMap<String, org.hibernate.type.Type>();
for (ParamDef param : defAnn.parameters()) {
params.put(param.name(), context.getMetadataCollector().getTypeResolver().heuristicType(param.type()));
}
FilterDefinition def = new FilterDefinition(defAnn.name(), defAnn.defaultCondition(), params);
LOG.debugf("Binding filter definition: %s", def.getFilterName());
context.getMetadataCollector().addFilterDefinition(def);
}
Aggregations