I am facing a problem :
I have 2 entities that extend from a Broadleaf Customer :
Code: Select all
BusinessCustomer extends ConsumerCustomer extends CustomerImpl
I added in applicationContext-entity.xml the following line :
Code: Select all
<bean id="org.broadleafcommerce.profile.core.domain.Customer" class="fr.mycompany.core.domain.ConsumerCustomer" scope="prototype"/>
As expected when i click on "add" button from the admin i have the choice between ConsumerCustomer and BusinessCustomer. However, if i choose ConsumerCustomer it works, the object is fully created in the database in ConsumerCustomer table.
But if i choose a BusinessConsumer, only a ConsumerCustomer is created, nothing in BusinessCustomer table.
It's normal because we have overrided Broadleaf Consumer by ConsumerCustomer in the applicationContext-entity.xml
We want to know how to do what we want, is there a solution ?
Thanks in advance for your help