Skip to content

Instantly share code, notes, and snippets.

View Nahasean94's full-sized avatar

Nahashon Njenga Nahasean94

View GitHub Profile
@Nahasean94
Nahasean94 / DatabaseImpl.java
Created October 19, 2019 16:30
Calling a stored procedure from Spring boot using JDBC template
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.jdbc.core.JdbcTemplate;
import org.springframework.jdbc.core.namedparam.MapSqlParameterSource;
import org.springframework.jdbc.core.namedparam.SqlParameterSource;
import org.springframework.jdbc.core.simple.SimpleJdbcCall;
import org.springframework.stereotype.Repository;
import javax.annotation.PostConstruct;
import javax.sql.DataSource;
import java.util.Map;
@Nahasean94
Nahasean94 / Controller.java
Created April 8, 2018 23:07
Controller class for Projo app
package controllers;
import database.DatabaseOperations;
import database.PasswordAuthentication;
import javafx.application.Platform;
import javafx.beans.binding.Bindings;
import javafx.beans.property.SimpleIntegerProperty;
import javafx.beans.property.SimpleStringProperty;;
import javafx.beans.value.ChangeListener;
import javafx.beans.value.ObservableValue;