Approach 1 Extending TWMProduct from Product and TWMItem from VariantProduct. Type denition:
> > > Total Total Wines Wines Product Product type that contains contains additional additional attribute specifc to TWM product model. > > >short!ame o" the product. product. > /> /> > > > > > Total Total Wines Wines Product Product type that contains contains additional additional attribute specifc to TWM product model. > > >#olume o" the item. item. > /> /> > > > >
TWMProduct creation in hmc:
Aboe appoarch !i"" not expo#e TWMProduct #pecic attribute# to TWMItem becau#e of the no direct inheritance
Approach $ Extending TWMProduct from VariantProduct and TWMItem from VariantProduct. Type denition:
Total Wines Product type that contains additional attribute specifc to TWM product model.
short!ame o" the product. Total Wines Product type that contains additional attribute specifc to TWM product model. #olume o" the item.
Error !hi"e creating TWMProduct:
Approach % Extending TWMProduct from VariantProduct and TWMItem from VariantProduct. Ma&ing ba#eProduct at TWMProduct "ee" optiona". Type denition:
Total Wines Product type that contains additional attribute specifc to TWM product model. short!ame o" the product. Total Wines Product type that contains additional attribute specifc to TWM product model. #olume o" the item.
Error !hi"e creating TWMProduct in hmc:
Exception in "og#: %&&'& (hybris)TTP*+, (-enerictemreate0ction, create1...23 %xception occured during creation process4 de.hybris.plat"orm.ser#icelayer.exceptions.Model5a#ing%xception3 missing (baseProduct, "or creating a ne$ 6ariantProduct at de.hybris.plat"orm.ser#icelayer.exceptions.Model5a#ing%xception3 missing (baseProduct, "or creating a ne$ 6ariantProduct at de.hybris.plat"orm.ser#icelayer.internal.con#erter.impl.temModelon#erter.create! e$tem1temModelon#erter.ja#a378972
Type 'enition:
After Initia"i(ation
Exception in "og#: %&&'& (hybris)TTP*+, (-enerictemreate0ction, create1...23 %xception occured during creation process4 de.hybris.plat"orm.ser#icelayer.exceptions.Model5a#ing%xception3 missing (baseProduct, "or creating a ne$ 6ariantProduct at de.hybris.plat"orm.ser#icelayer.exceptions.Model5a#ing%xception3 missing (baseProduct, "or creating a ne$ 6ariantProduct at de.hybris.plat"orm.ser#icelayer.internal.con#erter.impl.temModelon#erter.create! e$tem1temModelon#erter.ja#a378972
Type 'enition
Approach ) Extending TWMProduct from VariantProduct and TWMItem from VariantProduct. Ma&ing ba#eProduct at VariantProduct "ee" optiona". Type denition:
Total Wines Product type that contains additional attribute specifc to TWM product model. short!ame o" the product. Total Wines Product type that contains additional attribute specifc to TWM product model. #olume o" the item. Total Wines Product type that contains additional attribute specifc to TWM product model.
*o e+ect on the type #y#tem after #y#tem update:
After Initia"i(ation