Page 1 of 1

Customer vs. User entities in Broadleaf data model

Posted: Fri Feb 17, 2012 5:56 pm
by rgendler
Hi,

I am not sure if this question was already asked. I apologize in advance if I am repeating this.
I am not sure what's the difference between User and Customer entities in the system?
It seems that a User is a subset of a Customer in terms of attributes and both entities contain user name and password.
In addition both UserService and CustomerService implementations are provided. It seems that CustomerService also provides more functionality.

Is User a deprecated entity, provided for backward compatibility ?

Thank you.

Re: Customer vs. User entities in Broadleaf data model

Posted: Sat Feb 18, 2012 3:05 pm
by bpolster
User is an entity for your internal users (e.g. business users that manage promotions, catalog, etc.).

Customer represents those who have website profiles and place orders.

Re: Customer vs. User entities in Broadleaf data model

Posted: Sun Feb 19, 2012 3:50 pm
by rgendler
Ok,

But you also have something called AdminUser which contains info for the Admin web site users - those are the ones that handle site content, user administration, and other admin functions. In that case what's the difference between the User and AdminUser ?

Re: Customer vs. User entities in Broadleaf data model

Posted: Thu Mar 01, 2012 7:46 pm
by sai
I have the same question as to what is being asked here. User vs AdminUser, assuming Customer is customer.

Re: Customer vs. User entities in Broadleaf data model

Posted: Thu Mar 01, 2012 8:22 pm
by bpolster
Nice catch guys. User and UserService appear to be cruft. We will verify and remove if that is the case.

Re: Customer vs. User entities in Broadleaf data model

Posted: Mon Jul 23, 2012 7:01 am
by dilupa.m
Guys just for a quick clarification. The latest data model still have tables blc_user, blc_customer and blc_admin_user. playing around using the broadleaf demo and admin, i noticed that data only get populated under blc_customer and blc_admin. Is it safe to disregard blc_user if we're extending the customer and admin entities.
Thanks

Re: Customer vs. User entities in Broadleaf data model

Posted: Mon Jul 23, 2012 1:39 pm
by charchar
Yes it's safe to disregard blc_user. User will be removed in 2.0.