if (f == null)
throw new SpecificationViolationException("Method is neither a finder method nor is implemented in AutoDAO", method);
final int sum
= (hasText(f.query()) ? 1 : 0)
+ (hasText(f.queryName()) ? 1 : 0)
+ (hasText(f.sqlQuery()) ? 1 : 0)
+ (hasText(f.sqlQueryName()) ? 1 : 0);
if (sum < 1)
throw new SpecificationViolationException("You need to specify at least one of: query, queryName, sqlQuery, sqlQueryName", method);