SG Tech Edge
SG Tech Edge

Reputation: 507

how to see if a relation is created in hybris?

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>

Upvotes: 0

Views: 775

Answers (1)

mkysoft
mkysoft

Reputation: 5758

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

Upvotes: 2

Related Questions