The elephant in the room of course is lambda expressions, not sure though how we could benefit from that. In-promptu validations specified via the prog. API might be beneficial in some cases:
ConstraintMapping mapping = ...; mapping.type( Order.class ) .property( "code", FIELD ) .check( (String s) -> s.startsWith("ON" ) );