Postby phillipuniverse » Mon Nov 11, 2013 11:33 am
You're not only adding it as a spring bean. You're also hooking it up into Hibernate's persistent model (which is why you have to make an entry in your persistence.xml).
The modification to the Spring bean is so that Broadleaf knows the exact type it should create programmatically. For instance, when you create a new Order instead of Broadleaf just saying 'new OrderImpl()' it instead looks up in Spring what class it should instantiate and then persists that to the DB.
The Broadleaf forums are being retired as a readonly archive of questions. For active discussions and questions, check out the
broadleaf-commerce tag on Stack Overflow which is actively monitored by the Broadleaf team.