Here you can find the source of createTableRecommendation(DataSource dataSource)
private static void createTableRecommendation(DataSource dataSource)
//package com.java2s; //License from project: Apache License import java.sql.Connection; import java.sql.SQLException; import java.sql.Statement; import javax.sql.DataSource; public class Main { private static void createTableRecommendation(DataSource dataSource) { try (Connection connection = dataSource.getConnection(); Statement stmt = connection.createStatement()) { stmt.execute("CREATE TABLE recommendation (person_id int, index_ int, skill_id int, feedback boolean)"); } catch (SQLException e) { throw new RuntimeException(e); }// w w w. ja va 2 s. c o m } }