Guest User

Untitled

a guest
Dec 14th, 2018
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. package br.com.Login.Conexao;
  2. import java.sql.SQLException;
  3. import com.mysql.jdbc.Connection;
  4. import br.com.Login.login.Login;
  5. import br.com.Login.login.LoginDAO;
  6.  
  7. public class Main {
  8.  
  9. public static void main(String args) throws SQLException {
  10. Connection con = (Connection) CriarConexao.getConexao();
  11.  
  12. Login l = new Login();
  13. l.setUsuario("gustavo");
  14. l.setSenha("12345");
  15.  
  16. LoginDAO dao = new LoginDAO(con);
  17. dao.adicionar(l);
  18. }
  19.  
  20. }
Add Comment
Please, Sign In to add comment