Package org.bigk.invoices.exceptions

Examples of org.bigk.invoices.exceptions.DBAccessException


    try {
      session = HibernateUtils.getCurrentSession();
      user = (User) session.get(User.class, id);
    } catch (HibernateException ex) {
      logger.error("getUser(Long)", ex);
      throw new DBAccessException(ex);
    }

    if (logger.isDebugEnabled()) {
      logger.debug("getUser(Long) - end - return value=" + user);
    }
View Full Code Here


            crit.add(Restrictions.eq("login", login));
            user = (User) crit.uniqueResult();
           
        } catch(HibernateException ex) {
      logger.error("getUser4Login(String)", ex);
          throw new DBAccessException(ex);
        }

    if (logger.isDebugEnabled()) {
      logger.debug("getUser4Login(String) - end - return value=" + user);
    }
View Full Code Here

TOP

Related Classes of org.bigk.invoices.exceptions.DBAccessException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.