You may also create this as composing constraint using @Pattern (which accepts null) and a reg exp that matches your definition of not blank.