Documentation Home

2.1.x to 2.2.0 Migration

Alter the BLC_CATALOG_ACCESS_ACCT_RULE_XREF table with the following sql:

ALTER TABLE BLC_CATALOG_ACCESS_ACCT_RULE_XREF CHANGE COLUMN CATALOG_ACCESS_ACCT_RULE_XREF_ID CAT_ACCESS_ACC_RL_XREF_ID BIGINT NOT NULL;

RENAME TABLE BLC_CATALOG_ACCESS_ACCT_RULE_XREF TO BLC_CATALOG_ACCESS_ACC_RL_XREF;

Note: The sql statements above are MySQL and may need to be modified slightly for other databases.

Removal of Account Customer

AccountCustomer has been removed from the Account module, and the current account for the customer is not longer stored on the customer in the customer state. Instead, the current account for a request is now stored on the AccountMemberRequestContext and can be retrieved by calling AccountMemberRequestContext.getCurrentAccountMember().getAccount()

Since account has been removed from customer, account can no longer be retrieved from the customer object in thymeleaf templates like this:

 <span th:text="${customer.account?.name}"></span>

Instead the AccountMemberVariableExpression can be used to retrieve the current account for the request. Example:

 <span th:text="${#account.getCurrentAccountMember()?.account?.name}"></span>