Flex-objects relations. Any examples?

Here it’s stated that

“Flex objects can have relations to other Flex objects with few lines of code defining the relation”

Can we have any examples on creating these relations? One-to-one, one-to-many and many-to-many?