0

I have created a relation in hybris. How to see if the relation was created? Is there a field created in backoffice or in code? My code

        <relation code="CartEntries2B2BUnits" autocreate="true" localized="false" generate="true">
            <sourceElement qualifier="cartEntry" type="CartEntry" cardinality="many">
                <modifiers read="true" write="true" search="true" optional="true"/>
            </sourceElement>
            <targetElement qualifier="b2bUnit" type="B2BUnit" cardinality="one">
                <modifiers read="true" write="true" search="true" optional="true"/>
            </targetElement>
        </relation>
geffchang
  • 3,279
  • 2
  • 32
  • 58
SG Tech Edge
  • 477
  • 4
  • 16

1 Answers1

2

After build you can see changes on java code. After initialize/update you can see new relation type and new fields on source and target type in type system at backoffice.

Sidenote

  • By an one-to-many relation you will find a new attribute on the model.
  • By a many-to-many relation an own ModelType will be created. Here is a picture with an example for it. other stackoverflow question
Mafick
  • 1,128
  • 1
  • 12
  • 27
mkysoft
  • 5,392
  • 1
  • 21
  • 30