Skip to content

Instantly share code, notes, and snippets.

Avatar

Nahashon Njenga Nahasean94

View GitHub Profile
@Nahasean94
Nahasean94 / DatabaseImpl.java
Created Oct 19, 2019
Calling a stored procedure from Spring boot using JDBC template
View DatabaseImpl.java
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 Apr 8, 2018
Controller class for Projo app
View Controller.java
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;