Skip to content

Instantly share code, notes, and snippets.

@jconnolly
Created December 19, 2013 20:11
Show Gist options
  • Save jconnolly/8045428 to your computer and use it in GitHub Desktop.
Save jconnolly/8045428 to your computer and use it in GitHub Desktop.
OVal class-level validation butchery I just wrote.
@ValidateWithMethod.List({
@ValidateWithMethod(methodName = "validateRecruiterId", parameterType = Job.class, errorCode = "job.recruiterId.invalid"),
@ValidateWithMethod(methodName = "validateJreqJobHasValidApplication", parameterType = Job.class, errorCode = "job.application.invalid"),
@ValidateWithMethod(methodName = "validateJreqCompanySize", parameterType = Job.class, errorCode = "job.company.size.invalid")
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment