Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- * To change this license header, choose License Headers in Project Properties.
- * To change this template file, choose Tools | Templates
- * and open the template in the editor.
- */
- package database;
- import databag.Lid;
- import database.connect.ConnectionManager;
- import datatype.Geslacht;
- import datatype.Rijksregisternummer;
- import exception.ApplicationException;
- import exception.DBException;
- import java.sql.Connection;
- import java.sql.PreparedStatement;
- import java.sql.ResultSet;
- import java.sql.SQLException;
- import java.time.LocalDate;
- /**
- *
- * @author jens
- */
- public class Test {
- public static void main(String[] args) throws ApplicationException, DBException, SQLException {
- Rijksregisternummer r = new Rijksregisternummer("91082800159");
- Lid l = new Lid();
- l.setGeslacht(Geslacht.M);
- l.setRijksregisternummer(r);
- l.setTelnr("057696969");
- l.setNaam("Vanhouttegem");
- l.setVoornaam("Mike");
- l.setOpmerkingen("skippy");
- l.setEmailadres("Mike.Vanhouttgem@student.vives.be");
- LidDB liddb = new LidDB();
- liddb.toevoegenLid(l);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement