BroadleafCommercePrivate - 5.1.2-GA
Released on April 6, 2017
This is the 2nd patch release for Broadleaf Framework 5.1.x.
Noteworthy Changes
Broadleaf entities's table name changes are now possible
In the 5.1.1-GA
release of Broadleafcommerce there was a class introduced with a table name that exceeded 30 characters. If using an Oracle Database this will cause a full incompatibility since Oracle
table names cap at 30 characters. With the feature added in 5.1.2-GA
we now have a way to address the issue.
We can now change the table of ProratedOrderItemAdjustmentImpl
from BLC_PRORATED_ORDER_ITEM_ADJUSTMENT
to BLC_PRORATED_ORDER_ITEM_ADJ
by adding the following configuration in applicationContext.xml
<bean id="blAlterProductTableClassTransformer" class="org.broadleafcommerce.common.extensibility.jpa.convert.AlterTableNameClassTransformer">
<constructor-arg name="tableName" value="BLC_PRORATED_ORDER_ITEM_ADJ" />
<constructor-arg name="targetedClass" value="org.broadleafcommerce.core.offer.domain.ProratedOrderItemAdjustmentImpl" />
</bean>
<bean id="customClassTransformers" class="org.springframework.beans.factory.config.ListFactoryBean">
<property name="sourceList">
<list>
<ref bean="blAlterProductTableClassTransformer" />
</list>
</property>
</bean>
<bean class="org.broadleafcommerce.common.extensibility.context.merge.LateStageMergeBeanPostProcessor">
<property name="collectionRef" value="customClassTransformers" />
<property name="targetRef" value="blMergedClassTransformers" />
<property name="placement" value="SPECIFIC"/>
<property name="position" value="0"/>
</bean>
An at-a-glance view of the issues that were closed in this release:
Enhancements(1)
- Added ability to change the
name
member value for the@Table
class annotation.
Total Resolved Issues: 1