Search code examples
javaspringsap-commerce-cloud

Using extends in itemtype in Hybris


What happens if I do not specify extends in itemtype in Hybris when I create a new itemtype?

Eg:

<itemtype code="Unit
              jaloclass="de.hybris.platform.jalo.product.Unit"
              autocreate="true"
              generate="true">
        <deployment table="Units" typecode="10"/>

Solution

  • I found the answer. It extends by default to GenericItem. So the above code will automatically be converted to:

    <itemtype code="PaymentInfo"
                  extends="GenericItem"
                  jaloclass="de.hybris.platform.jalo.order.payment.PaymentInfo"
                  autocreate="true"
                  generate="true">