class ProductCartDao extends HibernateDao<ProductCart, String> {

   public void deleteCartOfUser(User user)
   {
      ProductCart cart = getCartOfUser(user);
      if (cart != null)
      {
         delete(cart);
      }
   }

}