How to extend the Customer entity?

Topics related to running, modifying, or working with the Broadleaf Commerce Demo application

Moderator: jocanas

Posts: 2
Joined: Tue Apr 26, 2016 8:38 pm

How to extend the Customer entity?

Postby lunastone » Wed Sep 14, 2016 10:39 am


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?


Return to “Broadleaf Commerce Demo”

Who is online

Users browsing this forum: No registered users and 1 guest