How to extend the Customer entity?
Posted: Wed Sep 14, 2016 10:39 am
Hello,
I was trying to extend the Customer entity in my application based on DemoSite 5.0.1-GA. I had extended the original Customer interface and CustomerImpl class. Then added my CustomerImpl class into persistence-core.xml and applicationContext-entity.xml in the core project, overriding the bean with id "org.broadleafcommerce.profile.core.domain.Customer".
I had already extended the Order entity successfully by these steps. But this time for the Customer entity, I found that I would still get an instance of org.broadleafcommerce.profile.core.domain.CustomerImpl, but not the instance of my extended class as expected. Is there any different step to extend the Customer than the Order?
Thanks,
Alex
I was trying to extend the Customer entity in my application based on DemoSite 5.0.1-GA. I had extended the original Customer interface and CustomerImpl class. Then added my CustomerImpl class into persistence-core.xml and applicationContext-entity.xml in the core project, overriding the bean with id "org.broadleafcommerce.profile.core.domain.Customer".
I had already extended the Order entity successfully by these steps. But this time for the Customer entity, I found that I would still get an instance of org.broadleafcommerce.profile.core.domain.CustomerImpl, but not the instance of my extended class as expected. Is there any different step to extend the Customer than the Order?
Thanks,
Alex