Author: epbernard
Date: 2006-11-30 12:08:46 -0500 (Thu, 30 Nov 2006)
New Revision: 10896
Modified:
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/validator/Max.java
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/validator/MaxValidator.java
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/validator/Min.java
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/validator/MinValidator.java
Log:
ANN-449 @Max/@Min now use long
Modified:
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/validator/Max.java
===================================================================
---
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/validator/Max.java 2006-11-30
17:03:45 UTC (rev 10895)
+++
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/validator/Max.java 2006-11-30
17:08:46 UTC (rev 10896)
@@ -18,7 +18,7 @@
@Target({METHOD, FIELD})
@Retention(RUNTIME)
public @interface Max {
- int value();
+ long value();
String message() default "{validator.max}";
}
Modified:
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/validator/MaxValidator.java
===================================================================
---
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/validator/MaxValidator.java 2006-11-30
17:03:45 UTC (rev 10895)
+++
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/validator/MaxValidator.java 2006-11-30
17:08:46 UTC (rev 10896)
@@ -16,7 +16,7 @@
*/
public class MaxValidator implements Validator<Max>, PropertyConstraint,
Serializable {
- private int max;
+ private long max;
public void initialize(Max parameters) {
max = parameters.value();
Modified:
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/validator/Min.java
===================================================================
---
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/validator/Min.java 2006-11-30
17:03:45 UTC (rev 10895)
+++
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/validator/Min.java 2006-11-30
17:08:46 UTC (rev 10896)
@@ -18,7 +18,7 @@
@Target({METHOD, FIELD})
@Retention(RUNTIME)
public @interface Min {
- int value();
+ long value();
String message() default "{validator.min}";
}
Modified:
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/validator/MinValidator.java
===================================================================
---
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/validator/MinValidator.java 2006-11-30
17:03:45 UTC (rev 10895)
+++
branches/Branch_3_2/HibernateExt/metadata/src/java/org/hibernate/validator/MinValidator.java 2006-11-30
17:08:46 UTC (rev 10896)
@@ -16,7 +16,7 @@
*/
public class MinValidator implements Validator<Min>, PropertyConstraint,
Serializable {
- private int min;
+ private long min;
public void initialize(Min parameters) {
min = parameters.value();