Only in /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator: AbstractLuhnValidator.java
diff org/hibernate/validator/AssertFalse.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/AssertFalse.java
1c1
< //$Id: AssertFalse.java 9795 2006-04-26 06:41:18Z epbernard $
---
> //$Id: AssertFalse.java 11282 2007-03-14 22:05:59Z epbernard $
diff org/hibernate/validator/AssertFalseValidator.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/AssertFalseValidator.java
1c1
< //$Id: AssertFalseValidator.java 8194 2005-09-18 23:26:49Z epbernard $
---
> //$Id: AssertFalseValidator.java 11282 2007-03-14 22:05:59Z epbernard $
diff org/hibernate/validator/AssertTrue.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/AssertTrue.java
1c1
< //$Id: AssertTrue.java 9795 2006-04-26 06:41:18Z epbernard $
---
> //$Id: AssertTrue.java 11282 2007-03-14 22:05:59Z epbernard $
diff org/hibernate/validator/AssertTrueValidator.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/AssertTrueValidator.java
1c1
< //$Id: AssertTrueValidator.java 8194 2005-09-18 23:26:49Z epbernard $
---
> //$Id: AssertTrueValidator.java 11282 2007-03-14 22:05:59Z epbernard $
diff org/hibernate/validator/ClassValidator.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/ClassValidator.java
1c1
< //$Id: ClassValidator.java 10650 2006-10-25 01:18:29Z epbernard $
---
> //$Id: ClassValidator.java 11282 2007-03-14 22:05:59Z epbernard $
31,33d30
< import org.hibernate.validator.interpolator.DefaultMessageInterpolatorAggerator;
< import org.hibernate.cfg.annotations.Version;
< import org.hibernate.cfg.BinderHelper;
36,42c33,40
< import org.hibernate.reflection.Filter;
< import org.hibernate.reflection.ReflectionManager;
< import org.hibernate.reflection.XClass;
< import org.hibernate.reflection.XMember;
< import org.hibernate.reflection.XMethod;
< import org.hibernate.reflection.XProperty;
< import org.hibernate.reflection.java.JavaXFactory;
---
> import org.hibernate.mapping.Component;
> import org.hibernate.annotations.common.reflection.Filter;
> import org.hibernate.annotations.common.reflection.ReflectionManager;
> import org.hibernate.annotations.common.reflection.XClass;
> import org.hibernate.annotations.common.reflection.XMember;
> import org.hibernate.annotations.common.reflection.XMethod;
> import org.hibernate.annotations.common.reflection.XProperty;
> import org.hibernate.annotations.common.reflection.java.JavaReflectionManager;
43a42
> import org.hibernate.validator.interpolator.DefaultMessageInterpolatorAggerator;
123c122
<         this.reflectionManager = reflectionManager != null ? reflectionManager : new JavaXFactory();
---
>         this.reflectionManager = reflectionManager != null ? reflectionManager : new JavaReflectionManager();
141a141
> 		this.reflectionManager = reflectionManager;
207a208
> 				handleAggregateAnnotations(classAnnotation, null);
238a240,280
> 	private boolean handleAggregateAnnotations(Annotation annotation, XMember member) {
> 		Object[] values;
> 		try {
> 			Method valueMethod = annotation.getClass().getMethod( "value" );
> 			if ( valueMethod.getReturnType().isArray() ) {
> 				values = (Object[]) valueMethod.invoke( annotation );
> 			}
> 			else {
> 				return false;
> 			}
> 		}
> 		catch (NoSuchMethodException e) {
> 			return false;
> 		}
> 		catch (Exception e) {
> 			throw new IllegalStateException( e );
> 		}
> 
> 		boolean validatorPresent = false;
> 		for ( Object value : values ) {
> 			if ( value instanceof Annotation ) {
> 				annotation = (Annotation) value;
> 				Validator validator = createValidator( annotation );
> 				if ( validator != null ) {
> 					if ( member != null ) {
> 						//member
> 						memberValidators.add( validator );
> 						setAccessible( member );
> 						memberGetters.add( member );
> 					}
> 					else {
> 						//bean
> 						beanValidators.add( validator );
> 					}
> 					validatorPresent = true;
> 				}
> 			}
> 		}
> 		return validatorPresent;
> 	}
> 
251a294
> 				//ClassValidator added by side effect (added to childClassValidators during CV construction)
260,261c303
< 		for ( int j = 0; j < memberAnnotations.length ; j++ ) {
< 			Annotation methodAnnotation = memberAnnotations[j];
---
> 		for ( Annotation methodAnnotation : memberAnnotations ) {
268a311,312
> 			boolean agrValidPresent = handleAggregateAnnotations( methodAnnotation, member );
> 			validatorPresent = validatorPresent || agrValidPresent;
604c648
< 					Property property = BinderHelper.findPropertyByName(persistentClass, propertyName);
---
> 					Property property = findPropertyByName(persistentClass, propertyName);
653c697
< 		reflectionManager = new JavaXFactory();
---
> 		reflectionManager = new JavaReflectionManager();
655a700,755
> 
> 	/**
> 	 * Retrieve the property by path in a recursive way, including IndetifierProperty in the loop
> 	 * If propertyName is null or empty, the IdentifierProperty is returned
> 	 */
> 	public static Property findPropertyByName(PersistentClass associatedClass, String propertyName) {
> 		Property property = null;
> 		Property idProperty = associatedClass.getIdentifierProperty();
> 		String idName = idProperty != null ? idProperty.getName() : null;
> 		try {
> 			if ( propertyName == null
> 					|| propertyName.length() == 0
> 					|| propertyName.equals( idName ) ) {
> 				//default to id
> 				property = idProperty;
> 			}
> 			else {
> 				if ( propertyName.indexOf( idName + "." ) == 0 ) {
> 					property = idProperty;
> 					propertyName = propertyName.substring( idName.length() + 1 );
> 				}
> 				StringTokenizer st = new StringTokenizer( propertyName, ".", false );
> 				while ( st.hasMoreElements() ) {
> 					String element = (String) st.nextElement();
> 					if ( property == null ) {
> 						property = associatedClass.getProperty( element );
> 					}
> 					else {
> 						if ( ! property.isComposite() ) return null;
> 						property = ( (Component) property.getValue() ).getProperty( element );
> 					}
> 				}
> 			}
> 		}
> 		catch (MappingException e) {
> 			try {
> 				//if we do not find it try to check the identifier mapper
> 				if ( associatedClass.getIdentifierMapper() == null ) return null;
> 				StringTokenizer st = new StringTokenizer( propertyName, ".", false );
> 				while ( st.hasMoreElements() ) {
> 					String element = (String) st.nextElement();
> 					if ( property == null ) {
> 						property = associatedClass.getIdentifierMapper().getProperty( element );
> 					}
> 					else {
> 						if ( ! property.isComposite() ) return null;
> 						property = ( (Component) property.getValue() ).getProperty( element );
> 					}
> 				}
> 			}
> 			catch (MappingException ee) {
> 				return null;
> 			}
> 		}
> 		return property;
> 	}
Only in /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator: CreditCardNumber.java
Only in /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator: CreditCardNumberValidator.java
Only in /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator: Digits.java
Only in /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator: DigitsValidator.java
Only in /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator: EAN.java
Only in /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator: EANValidator.java
diff org/hibernate/validator/Email.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/Email.java
1c1
< //$Id: Email.java 9795 2006-04-26 06:41:18Z epbernard $
---
> //$Id: Email.java 11282 2007-03-14 22:05:59Z epbernard $
diff org/hibernate/validator/EmailValidator.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/EmailValidator.java
1c1
< //$Id: EmailValidator.java 10021 2006-06-15 19:07:03Z epbernard $
---
> //$Id: EmailValidator.java 11282 2007-03-14 22:05:59Z epbernard $
23c23,24
< 		Matcher m = pattern.matcher( string );
---
>       if ( string.length() == 0 ) return true;
>       Matcher m = pattern.matcher( string );
diff org/hibernate/validator/Environment.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/Environment.java
15a16,25
> 
> 	/**
> 	 * Apply DDL changes on Hibernate metamodel when using validator with Hibernate Annotations. Default to true.
> 	 */
> 	public static final String APPLY_TO_DDL = "hibernate.validator.apply_to_ddl";
> 
> 	/**
> 	 * Enable listeners auto registration in Hibernate Annotations and EntityManager. Default to true.
> 	 */
> 	public static final String AUTOREGISTER_LISTENERS = "hibernate.validator.autoregister_listeners";
Common subdirectories: org/hibernate/validator/event and /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/event
diff org/hibernate/validator/Future.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/Future.java
1c1
< //$Id: Future.java 9795 2006-04-26 06:41:18Z epbernard $
---
> //$Id: Future.java 11282 2007-03-14 22:05:59Z epbernard $
diff org/hibernate/validator/FutureValidator.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/FutureValidator.java
1c1
< //$Id: FutureValidator.java 8588 2005-11-16 18:34:08Z epbernard $
---
> //$Id: FutureValidator.java 11282 2007-03-14 22:05:59Z epbernard $
23,32c23
< 		if ( value instanceof String ) {
< 			try {
< 				Date date = DateFormat.getTimeInstance().parse( (String) value );
< 				return date.after( new Date() );
< 			}
< 			catch (ParseException nfe) {
< 				return false;
< 			}
< 		}
< 		else if ( value instanceof Date ) {
---
> 		if ( value instanceof Date ) {
Common subdirectories: org/hibernate/validator/interpolator and /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/interpolator
diff org/hibernate/validator/InvalidStateException.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/InvalidStateException.java
1c1
< //$Id: InvalidStateException.java 7852 2005-08-11 19:45:28Z epbernard $
---
> //$Id: InvalidStateException.java 11282 2007-03-14 22:05:59Z epbernard $
diff org/hibernate/validator/InvalidValue.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/InvalidValue.java
1c1
< //$Id: InvalidValue.java 8584 2005-11-15 19:47:38Z epbernard $
---
> //$Id: InvalidValue.java 11282 2007-03-14 22:05:59Z epbernard $
diff org/hibernate/validator/Length.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/Length.java
1c1
< //$Id: Length.java 9795 2006-04-26 06:41:18Z epbernard $
---
> //$Id: Length.java 11282 2007-03-14 22:05:59Z epbernard $
diff org/hibernate/validator/LengthValidator.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/LengthValidator.java
1c1
< //$Id: LengthValidator.java 8680 2005-11-27 15:05:03Z epbernard $
---
> //$Id: LengthValidator.java 11282 2007-03-14 22:05:59Z epbernard $
diff org/hibernate/validator/Max.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/Max.java
1c1
< //$Id: Max.java 10896 2006-11-30 17:08:46Z epbernard $
---
> //$Id: Max.java 11282 2007-03-14 22:05:59Z epbernard $
diff org/hibernate/validator/MaxValidator.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/MaxValidator.java
1c1
< //$Id: MaxValidator.java 10896 2006-11-30 17:08:46Z epbernard $
---
> //$Id: MaxValidator.java 11282 2007-03-14 22:05:59Z epbernard $
diff org/hibernate/validator/Min.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/Min.java
1c1
< //$Id: Min.java 10896 2006-11-30 17:08:46Z epbernard $
---
> //$Id: Min.java 11282 2007-03-14 22:05:59Z epbernard $
diff org/hibernate/validator/MinValidator.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/MinValidator.java
1c1
< //$Id: MinValidator.java 10896 2006-11-30 17:08:46Z epbernard $
---
> //$Id: MinValidator.java 11282 2007-03-14 22:05:59Z epbernard $
diff org/hibernate/validator/NotNull.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/NotNull.java
1c1
< //$Id: NotNull.java 9795 2006-04-26 06:41:18Z epbernard $
---
> //$Id: NotNull.java 11282 2007-03-14 22:05:59Z epbernard $
diff org/hibernate/validator/NotNullValidator.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/NotNullValidator.java
1c1
< //$Id: NotNullValidator.java 9795 2006-04-26 06:41:18Z epbernard $
---
> //$Id: NotNullValidator.java 11282 2007-03-14 22:05:59Z epbernard $
diff org/hibernate/validator/Past.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/Past.java
1c1
< //$Id: Past.java 9795 2006-04-26 06:41:18Z epbernard $
---
> //$Id: Past.java 11282 2007-03-14 22:05:59Z epbernard $
diff org/hibernate/validator/PastValidator.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/PastValidator.java
1c1
< //$Id: PastValidator.java 9795 2006-04-26 06:41:18Z epbernard $
---
> //$Id: PastValidator.java 11282 2007-03-14 22:05:59Z epbernard $
26,35c26
< 		if ( value instanceof String ) {
< 			try {
< 				Date date = DateFormat.getTimeInstance().parse( (String) value );
< 				return date.before( new Date() );
< 			}
< 			catch (ParseException nfe) {
< 				return false;
< 			}
< 		}
< 		else if ( value instanceof Date ) {
---
> 		if ( value instanceof Date ) {
diff org/hibernate/validator/Pattern.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/Pattern.java
1c1
< //$Id: Pattern.java 9795 2006-04-26 06:41:18Z epbernard $
---
> //$Id: Pattern.java 11282 2007-03-14 22:05:59Z epbernard $
Only in /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator: Patterns.java
diff org/hibernate/validator/PatternValidator.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/PatternValidator.java
1c1
< //$Id: PatternValidator.java 9795 2006-04-26 06:41:18Z epbernard $
---
> //$Id: PatternValidator.java 11282 2007-03-14 22:05:59Z epbernard $
diff org/hibernate/validator/PersistentClassConstraint.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/PersistentClassConstraint.java
1c1
< //$Id: PersistentClassConstraint.java 7852 2005-08-11 19:45:28Z epbernard $
---
> //$Id: PersistentClassConstraint.java 11282 2007-03-14 22:05:59Z epbernard $
diff org/hibernate/validator/PropertyConstraint.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/PropertyConstraint.java
1c1
< //$Id: PropertyConstraint.java 7852 2005-08-11 19:45:28Z epbernard $
---
> //$Id: PropertyConstraint.java 11282 2007-03-14 22:05:59Z epbernard $
diff org/hibernate/validator/Range.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/Range.java
1c1
< //$Id: Range.java 9795 2006-04-26 06:41:18Z epbernard $
---
> //$Id: Range.java 11282 2007-03-14 22:05:59Z epbernard $
diff org/hibernate/validator/RangeValidator.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/RangeValidator.java
1c1
< //$Id: RangeValidator.java 10384 2006-08-31 04:10:44Z epbernard $
---
> //$Id: RangeValidator.java 11282 2007-03-14 22:05:59Z epbernard $
Common subdirectories: org/hibernate/validator/resources and /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/resources
diff org/hibernate/validator/Size.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/Size.java
1c1
< //$Id: Size.java 9795 2006-04-26 06:41:18Z epbernard $
---
> //$Id: Size.java 11282 2007-03-14 22:05:59Z epbernard $
diff org/hibernate/validator/SizeValidator.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/SizeValidator.java
1c1
< //$Id: SizeValidator.java 9795 2006-04-26 06:41:18Z epbernard $
---
> //$Id: SizeValidator.java 11282 2007-03-14 22:05:59Z epbernard $
Common subdirectories: org/hibernate/validator/.svn and /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/.svn
diff org/hibernate/validator/ValidatorClass.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/ValidatorClass.java
1c1
< //$Id: ValidatorClass.java 9795 2006-04-26 06:41:18Z epbernard $
---
> //$Id: ValidatorClass.java 11282 2007-03-14 22:05:59Z epbernard $
diff org/hibernate/validator/Validator.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/Validator.java
1c1
< //$Id: Validator.java 7852 2005-08-11 19:45:28Z epbernard $
---
> //$Id: Validator.java 11282 2007-03-14 22:05:59Z epbernard $
diff org/hibernate/validator/Valid.java /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator/Valid.java
1c1
< //$Id: Valid.java 9795 2006-04-26 06:41:18Z epbernard $
---
> //$Id: Valid.java 11282 2007-03-14 22:05:59Z epbernard $
Only in /home/jcosta/Projetos/compatibility-check/eap4-components3.3/validator/src/java/org/hibernate/validator: Version.java
