public boolean bankaMemuruEkle_uyeAdiKontrol(BankaMemuru par_mEklenecek) {

    par_mEklenecek.setBankaMemuruSifre(
        PasswordHash.hashPassword(par_mEklenecek.getBankaMemuruSifre()));

    baslat();

    Transaction transaction = null;

    try {
      transaction = session.beginTransaction();

      session.save(par_mEklenecek);

      transaction.commit();
    } catch (HibernateException e) {
      transaction.rollback();
      //			e.printStackTrace();
      System.out.println("ekleme sýrasýnda hata");
      return false;
    } finally {
      sonlandir();
    }
    return true;
  }
  public BankaMemuru checkBankaMemuruLoginInfo(
      String par_sBankaMemuruName, String par_sBankaMemuruPass) {
    BankaMemuru currentBankaMemuru = null;

    System.out.println(
        "checkBankaMemuruLoginInfo " + par_sBankaMemuruName + " " + par_sBankaMemuruPass);

    par_sBankaMemuruPass = PasswordHash.hashPassword(par_sBankaMemuruPass);

    System.out.println(
        "hashten sonra checkUserLoginInfo " + par_sBankaMemuruPass + " " + par_sBankaMemuruName);

    baslat();
    HibernateSession.beginTransaction();
    session = getSession();

    Criteria crit = session.createCriteria(BankaMemuru.class);

    if (par_sBankaMemuruName != null && par_sBankaMemuruName != "") {
      System.out.println("girdim2");
      Criterion name = Restrictions.like("bankaMemuruUyeAdi", par_sBankaMemuruName);
      crit.add(name);
    }
    if (par_sBankaMemuruPass != null && par_sBankaMemuruPass != "") {
      System.out.println("girdim3");
      Criterion name = Restrictions.like("bankaMemuruSifre", par_sBankaMemuruPass);
      crit.add(name);
    }

    List results = crit.list();
    for (Object o : results) {
      currentBankaMemuru = (BankaMemuru) o;
      System.out.println(
          "\nsonuc müþteri: "
              + ((BankaMemuru) o).getBankaMemuruUyeAdi()
              + " "
              + ((BankaMemuru) o).getBankaMemuruId()
              + "\n");
    }

    HibernateSession.commitTransaction();
    sonlandir();

    System.out.println("\ncheckBankaMemuruLoginInfo bitti");

    return currentBankaMemuru;
  }
  public boolean bankaMemuruEkle(BankaMemuru par_mEklenecek) {

    par_mEklenecek.setBankaMemuruSifre(
        PasswordHash.hashPassword(par_mEklenecek.getBankaMemuruSifre()));

    baslat();

    HibernateSession.beginTransaction();

    session = getSession();

    session.save(par_mEklenecek);

    HibernateSession.commitTransaction();

    sonlandir();

    return true;
  }