Package org.simplecart.dao

Source Code of org.simplecart.dao.CustomerDAO

package org.simplecart.dao;

import org.simplecart.account.Customer;
import net.sf.hibernate.*;

public class CustomerDAO extends BaseDAO {

    public CustomerDAO() {
        super();
        DAOClassType = Customer.class;
    }

    /**
     * @return Customer object by ID
     * @param id
     * @param lock
     */
    public Customer findById(Long id, boolean lock) throws HibernateException {
        Customer customer = null;

        customer = (Customer) abstractFindById(id, lock);
        return customer;
    }
}
TOP

Related Classes of org.simplecart.dao.CustomerDAO

TOP
Copyright © 2018 www.massapi.com. 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.