Page 1 of 1

Property or field 'averageHeatRatingBought' cannot be found

Posted: Thu May 07, 2015 4:45 am
by rvujji
Hi all,

I am following the demo on http://www.broadleafcommerce.com/docs/c ... c-tutorial . Followed all the steps. But,when I try to register, I am getting the exception
Property or field 'averageHeatRatingBought' cannot be found on object of type 'org.broadleafcommerce.profile.core.domain.CustomerImpl' - maybe not public?


I just downloaded eclipse luna, then imported the broadleaf provided workspace, and then made this change.

For some reason, it is not identifying the new HCCusomerImpl. It is going to the basic implementation. Can any of you please help me with this?

Thanks
Raj

Re: Property or field 'averageHeatRatingBought' cannot be found

Posted: Tue May 12, 2015 11:30 pm
by Swamy K
I am also facing the same issue..

Re: Property or field 'averageHeatRatingBought' cannot be found

Posted: Sat May 16, 2015 11:59 am
by Swamy K
Add the below highlighted line to HCCustomerImpl.

@Entity
@Table(name="HC_CUSTOMER")
@PrimaryKeyJoinColumn(name="CUSTOMER_ID")
public class HCCustomerImpl extends CustomerImpl implements HCCustomer {

Then give clean build and try with new registration flow.

Re: Property or field 'averageHeatRatingBought' cannot be found

Posted: Tue May 19, 2015 5:41 am
by rvujji
Hi,

1. I tried adding the annotation. Still it didn't work.
2. I thought it may be a problem with the version. So, changed the version number. Still it didn't work.

Thanks
Raj

Re: Property or field 'averageHeatRatingBought' cannot be found

Posted: Tue May 19, 2015 6:05 am
by Swamy K
Please try the below steps and check.
1 . Delete or backup core.jar from core module
2 . Do maven clean and install
3 . Start the site server
4 . Create new account and login.

Re: Property or field 'averageHeatRatingBought' cannot be found

Posted: Tue May 19, 2015 7:02 am
by rvujji
Hi Swamy,

IT worked perfect. Last time, I tried to login with the old user id. Sorry. It was my mistake. Thanks a lot. You saved my life.

Thanks
Raj