Hi
I checked out 1.5.0-M4 trunk code and broadleaf site project i tried to replace a bean(Entity bean) with my own bean which extends from DynamicPricesDiscreteOrderItem. Though I have mentioned it in context with the same id as DynamicPricesDiscreteOrderItem, it is not available in spring context. spring context value still refers to DynamicPricesDiscreteOrderItem. MergeXmlContextLoader shows the logs that it is being merged but not loaded in context. Table corresponding to the extended Entity is created in DB.
<bean id="org.broadleafcommerce.core.order.domain.DynamicPriceDiscreteOrderItem" class="com.mycompany.order.domain.MpmOrderItemImpl" scope="prototype"/>
I have put a debug point in OrderItemServiceImpl at below line
(DiscreteOrderItem) orderItemDao.create(OrderItemType.EXTERNALLY_PRICED);
it is supposed to return an instance of MpmOrderItemImpl where as it is returning DynamicPriceDiscreteOrderItem
Please help me resolving the issue.
Thanks.
This forum is in readonly mode and serves as an archive of old information. All posting, registration and commenting abilities have been turned off. To get help, the Broadleaf team reguarly monitors the broadleaf-commerce tag on Stack Overflow so please ask your questions there.