public void bankaMemuruListele() throws Exception { System.out.println(""); System.out.println("bankaMemuru LISTELE"); BankaMemuruDBOperator k = new BankaMemuruDBOperator(); k.baslat(); HibernateSession.beginTransaction(); session = k.getSession(); List<BankaMemuru> bankaMemuruDonmelik = session.createQuery("select m from BankaMemuru as m").list(); for (BankaMemuru m : bankaMemuruDonmelik) { System.out.println( "bankaMemuru bilgileri : " + m.getBankaMemuruAdi() + " " + m.getBankaMemuruId()); if (m.getSube() != null) { System.out.println( "bankaMemuru þube bilgileri: " + m.getSube().getSubeAdi() + " " + m.getSube().getSubeId()); } } HibernateSession.commitTransaction(); System.out.println("bankaMemuru LISTELE BITTI"); } // end of
public List<BankaMemuru> getBankaMemuru() throws Exception { System.out.println(""); System.out.println("GET bankaMemuru"); BankaMemuruDBOperator k = new BankaMemuruDBOperator(); k.baslat(); HibernateSession.beginTransaction(); session = k.getSession(); List<BankaMemuru> bankaMemuruDonmelik = session.createQuery("select m from BankaMemuru as m").list(); for (BankaMemuru m : bankaMemuruDonmelik) { System.out.println( "bankaMemuru bilgileri : " + m.getBankaMemuruAdi() + " " + m.getBankaMemuruId()); } HibernateSession.commitTransaction(); System.out.println("GET bankaMemuru"); return bankaMemuruDonmelik; } // end of