diff --git a/sql/mysql/script_mysql.sql b/sql/mysql/script_mysql.sql index 628a6e3..71dee91 100644 --- a/sql/mysql/script_mysql.sql +++ b/sql/mysql/script_mysql.sql @@ -17,3 +17,9 @@ CREATE TABLE contatti ( CREATE TABLE ordini ( telefono INT8 PRIMARY KEY REFERENCES contatti (telefono) ); + +CREATE TABLE utenti ( + nickname VARCHAR(255) NOT NULL, + password VARCHAR(255) NOT NULL, + ruolo VARCHAR(255) +); diff --git a/src/dao/UtenteDao.java b/src/dao/UtenteDao.java index 34436f6..cf77e6a 100644 --- a/src/dao/UtenteDao.java +++ b/src/dao/UtenteDao.java @@ -9,7 +9,7 @@ import bean.Utente; public class UtenteDao implements UtenteDaoI { - OracleConnection c = new OracleConnection(); + MySqlConnection c = new MySqlConnection(); @Override public boolean registrazione(String nickname, String password, String ruolo) {