*/
public class CartDAO extends GenericDAOImpl<Cart, Serializable> {
public Cart getByCustomer(Serializable customer) {
Cart cart = null;
try {
Query query = getPersistenceManager().newQuery(getPersistentClass(), "customer == :customer");
query.setUnique(true);
cart = (Cart) query.execute(customer);