public Ugovor(int sifra, Pas pasPr, Klijent klijentPr, Radnik radnikPr)
        {
            PasDAO p = new PasDAO("localhost", "Centar", "root", "");
            List<Pas> pas = new List<Pas>();
            pas = p.getByExample(Convert.ToString(pasPr.id));

            KlijentDAO k = new KlijentDAO("localhost", "Centar", "root", "");
            List<Klijent> klij = new List<Klijent>();
            klij = k.getByExample(klijentPr.jmb);

            RadnikDAO r = new RadnikDAO("localhost", "Centar", "root", "");
            List<Radnik> rad = new List<Radnik>();
            rad = r.getByExample(radnikPr.jmb);

            Sifra = sifra;
            Pas = pas[0];
            Vlasnik = klij[0];
            Radnik = rad[0];
        }