package org.broadleafcommerce.profile.dao;

import java.util.List;

import org.broadleafcommerce.profile.domain.CustomerAddress;

public interface CustomerAddressDao {

    public List<CustomerAddress> readActiveCustomerAddressesByCustomerId(Long userId);

    public CustomerAddress maintainCustomerAddress(CustomerAddress customerAddress);

    public CustomerAddress readCustomerAddressById(Long customerAddressId);

    public void makeCustomerAddressDefault(Long customerAddressId, Long customerId);

    public void deleteCustomerAddressByIdAndCustomerId(Long customerAddressId, Long customerId);
}

@@ -248,18 +248,22 @@
 Id(Long 
+c
 us
+tom
 erId);%0D%0A

refactor address entity (which was mapped to table blc_customer_address) to not know about customer, instead have a CustomerAddress entity to resolve customer to address