@Override protected boolean supportsGeneratedKeys(ExecutionContext context, Command command) { if (command instanceof Insert) { Insert insert = (Insert) command; if (insert.getParameterValues() != null) { return false; // bulk inserts result in an exception if keys are flaged for return } } return super.supportsGeneratedKeys(context, command); }