cancel
Showing results for 
Search instead for 
Did you mean: 

How to understand the meaning of relations in *-items.xml?

Former Member
0 Kudos

Hi Experts, I'm always confused about the relations in *-items.xml. If you are free, can you give me some explaintion about it,If you are not,give me some resources pls. Thank you very much.

Former Member
0 Kudos

And give some usages about relations would be fine!

former_member190306
Participant
0 Kudos

Hi Devin, to answer your question, maybe lets start with a question: WHAT exactly is confusing you? Do you have specific questions regarding relations?

The general Type System documentation (https://help.hybris.com/6.0.0/hcd/8c755da8866910149c27ec908fc577ef.html) is not too bad to understand, so you could start there to understand Relations. But maybe there are some specific questions left open for you?!

Former Member
0 Kudos

yeah,you're right! I'm not clear about what's the usage about relations,just like search one model,etc. Thanks Rainer

former_member190306
Participant
0 Kudos

Ok, understand. In this case, Arthur's answer is a very god guidance. Just do this trail and especially the pbout relations... and then you will understand, how relations work and how you handle them e.g. on code level with models.

E.g. create the "StadiumMatchRelation"...and then browse the StadiuModel class and the MatchModel class... find the methods StadiuModel.getMatches() or MatchModel.getStadium() etc..... or the related sette methods.... and just play around with these methods.

Accepted Solutions (0)

Answers (1)

Answers (1)

ArthurPerry
Employee
Employee
0 Kudos

Start with the RelationTypes section of the Type System documentation. The Core training trail has step by step instructions too.

Former Member
0 Kudos

Hi Arthur,

May i know that what's the usages in FlexibleSearch,just like SQL? Thanks your reply

ArthurPerry
Employee
Employee
0 Kudos

Please st new question to capture the new topic "Flexible Search". It is based on SQL with specific enhancements to support the Hybris type system.