From a93dc7e59e767e6d5b8114bf5d65523fcfe1056d Mon Sep 17 00:00:00 2001 From: Steve Ebersole Date: Wed, 8 Feb 2012 16:03:26 -0600 Subject: [PATCH] HHH-7038 - Define sources for filters, filter-defs, type-defs, fetch-profiles --- .../source/annotations/FilterDefSourceImpl.java | 12 ++++++------ .../source/annotations/FilterSourceImpl.java | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/FilterDefSourceImpl.java b/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/FilterDefSourceImpl.java index f90999b0a4..5c66bc1afc 100644 --- a/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/FilterDefSourceImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/FilterDefSourceImpl.java @@ -39,15 +39,15 @@ public class FilterDefSourceImpl implements FilterDefSource { private final String condition; private List parameterSources; - public FilterDefSourceImpl(AnnotationInstance filerDefAnnotation) { - this.name = JandexHelper.getValue( filerDefAnnotation, "name", String.class ); - this.condition = JandexHelper.getValue( filerDefAnnotation, "defaultCondition", String.class ); - this.parameterSources = buildParameterSources( filerDefAnnotation ); + public FilterDefSourceImpl(AnnotationInstance filterDefAnnotation) { + this.name = JandexHelper.getValue( filterDefAnnotation, "name", String.class ); + this.condition = JandexHelper.getValue( filterDefAnnotation, "defaultCondition", String.class ); + this.parameterSources = buildParameterSources( filterDefAnnotation ); } - private List buildParameterSources(AnnotationInstance filerDefAnnotation) { + private List buildParameterSources(AnnotationInstance filterDefAnnotation) { final List parameterSources = new ArrayList(); - for ( AnnotationInstance paramAnnotation : JandexHelper.getValue( filerDefAnnotation, "parameters", AnnotationInstance[].class ) ) { + for ( AnnotationInstance paramAnnotation : JandexHelper.getValue( filterDefAnnotation, "parameters", AnnotationInstance[].class ) ) { parameterSources.add( new FilterParameterSourceImpl( paramAnnotation ) ); } return parameterSources; diff --git a/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/FilterSourceImpl.java b/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/FilterSourceImpl.java index e0ec460644..f46b4a122e 100644 --- a/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/FilterSourceImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/metamodel/internal/source/annotations/FilterSourceImpl.java @@ -34,9 +34,9 @@ public class FilterSourceImpl implements FilterSource { private final String name; private final String condition; - public FilterSourceImpl(AnnotationInstance filerDefAnnotation) { - this.name = JandexHelper.getValue( filerDefAnnotation, "name", String.class ); - this.condition = JandexHelper.getValue( filerDefAnnotation, "condition", String.class ); + public FilterSourceImpl(AnnotationInstance filterAnnotation) { + this.name = JandexHelper.getValue( filterAnnotation, "name", String.class ); + this.condition = JandexHelper.getValue( filterAnnotation, "condition", String.class ); } @Override