Segue meu método main:
public static void main(String[] args) throws SQLException {
try (Connection connection = Database.getConnection()) {
connection.setAutoCommit(false);
String sql = "insert into Produto (nome, descricao) values(?, ?)";
try (PreparedStatement smt = connection.prepareStatement(sql,
Statement.RETURN_GENERATED_KEYS)) {
adiciona("TV LCD", "TV LCD, 32 polegadas", smt);
adiciona("Blueray", "Blueray, Full HDMI", smt);
}
}
}
Segue erro: Exception in thread "main" java.lang.Error: Unresolved compilation problems: Syntax error on token "(", { expected Syntax error on token ")", ; expected Syntax error on token "(", { expected Syntax error on token ")", ; expected Syntax error, insert "Finally" to complete TryStatement Syntax error, insert "}" to complete Block Syntax error, insert "}" to complete Block Syntax error, insert "Finally" to complete BlockStatements
at br.com.techne.jdbc.TestaInsercao.main(TestaInsercao.java:11)