How to override ProductImpl?
Posted: Sat Jun 14, 2014 5:11 am
I would want to entirely replace ProductImpl with my own implementation so that there is no ProductImpl in my site at all!. I no longer want to associate the table BLC_PRODUCT with the ProductImpl class provided by the Broadleaf commerce. Rather, I would like to write a new class which is associated with the BLC_PRODUCT table only (i.e. I don't want to change the table name).
I wrote a class that directly implements interfaces that are implemented by the ProductImpl class. My class looks pretty much similar to the ProductImpl with two additional fields.
Now, how would I project it as an alternative to the default ProductImpl class and make sure that ProductImpl class is no longer accessed in my Broadleaf site.
I've gone through the Broadleaf documentation and have not found an answer for my question.
Hope it is clear.
Thanks in advance.
I wrote a class that directly implements interfaces that are implemented by the ProductImpl class. My class looks pretty much similar to the ProductImpl with two additional fields.
Now, how would I project it as an alternative to the default ProductImpl class and make sure that ProductImpl class is no longer accessed in my Broadleaf site.
I've gone through the Broadleaf documentation and have not found an answer for my question.
Hope it is clear.
Thanks in advance.