Author: epbernard
Date: 2008-08-14 14:36:46 -0400 (Thu, 14 Aug 2008)
New Revision: 15079
Modified:
validator/trunk/src/java/org/hibernate/validator/PastValidator.java
Log:
HV-65 @Past no longer use current_date
Modified: validator/trunk/src/java/org/hibernate/validator/PastValidator.java
===================================================================
--- validator/trunk/src/java/org/hibernate/validator/PastValidator.java 2008-08-14
18:00:44 UTC (rev 15078)
+++ validator/trunk/src/java/org/hibernate/validator/PastValidator.java 2008-08-14
18:36:46 UTC (rev 15079)
@@ -36,8 +36,13 @@
}
}
+// ANSI SQL does not allow the use of current_date on check constraints :(
+// public void apply(Property property) {
+// Column col = (Column) property.getColumnIterator().next();
+// col.setCheckConstraint( col.getName() + " < current_date" );
+// }
+
+ //TODO Keep it here for ABI compatibility. Should be removed whe moving to Bean
Validation
public void apply(Property property) {
- Column col = (Column) property.getColumnIterator().next();
- col.setCheckConstraint( col.getName() + " < current_date" );
}
}