Skip to content

Instantly share code, notes, and snippets.

View jeffersonchaves's full-sized avatar
😎
Focusing

Jefferson Chaves jeffersonchaves

😎
Focusing
  • Instituto Federal do Paraná - IFPR
  • Foz do Iguaçu - PR
View GitHub Profile
package br.edu.ifpr.persistproject.repository;
import br.edu.ifpr.persistproject.connection.ConnectionFactory;
import br.edu.ifpr.persistproject.exception.DatabaseIntegrityException;
import br.edu.ifpr.persistproject.model.Seller;
import java.sql.*;
import java.text.SimpleDateFormat;
public class SellerRepository {
package br.edu.ifpr.persistproject.repository;
import br.edu.ifpr.persistproject.connection.ConnectionFactory;
import br.edu.ifpr.persistproject.model.Seller;
import java.sql.*;
import java.text.SimpleDateFormat;
public class SellerRepository {
public class SellerRepository {
private Connection conn;
private SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
public SellerRepository(){
ConnectionFactory connectionFactory = new ConnectionFactory();
conn = connectionFactory.getConnection();
}
public class SellerRepository {
private Connection conn;
private SimpleDateFormat sdf = new SimpleDateFormat("dd/MM/yyyy");
public SellerRepository(){
ConnectionFactory connectionFactory = new ConnectionFactory();
conn = connectionFactory.getConnection();
}
public class SellerRepository {
private Connection conn;
public SellerRepository(){
ConnectionFactory connectionFactory = new ConnectionFactory();
conn = connectionFactory.getConnection();
}
public List<Seller> getSellers(){
public class Seller {
private String Id;
private String name;
private String email;
private LocalDate birthDate;
private Double BaseSalary;
//private Department department;
public String getId() {
public class ConnectionFactory {
public Connection getConnection(){
String database = "";
String user = "";
String pass = ""
try {
CREATE TABLE department (
Id int NOT NULL AUTO_INCREMENT,
Name varchar(60) DEFAULT NULL,
PRIMARY KEY (Id)
);
CREATE TABLE seller (
Id int NOT NULL AUTO_INCREMENT,
Name varchar(60) NOT NULL,
Email varchar(100) NOT NULL,
@jeffersonchaves
jeffersonchaves / gist:b7876c39240b062e5fc0749609e74141
Created March 15, 2023 02:28 — forked from rxaviers/gist:7360908
Complete list of github markdown emoji markup

People

:bowtie: :bowtie: 😄 :smile: 😆 :laughing:
😊 :blush: 😃 :smiley: ☺️ :relaxed:
😏 :smirk: 😍 :heart_eyes: 😘 :kissing_heart:
😚 :kissing_closed_eyes: 😳 :flushed: 😌 :relieved:
😆 :satisfied: 😁 :grin: 😉 :wink:
😜 :stuck_out_tongue_winking_eye: 😝 :stuck_out_tongue_closed_eyes: 😀 :grinning:
😗 :kissing: 😙 :kissing_smiling_eyes: 😛 :stuck_out_tongue:
programa
{
inclua biblioteca Util
inteiro listaSorteados[50] //maior numero de dezenas possível
funcao inicio()
{
mega()