Skip to content

Instantly share code, notes, and snippets.

@dmagda
Created August 30, 2023 15:18
Show Gist options
  • Save dmagda/83f77ddbb53113ef5baa8aa97b4d7ee6 to your computer and use it in GitHub Desktop.
Save dmagda/83f77ddbb53113ef5baa8aa97b4d7ee6 to your computer and use it in GitHub Desktop.
orders snippet
orders = jdbcTemplate.query(
    "SELECT * FROM pizza_order WHERE id = ? and location = ?::store_location",
    (prepStmt) -> {
        prepStmt.setInt(1, id);
        prepStmt.setString(2, location);
    },
    new OrderRowMapper());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment