> For the complete documentation index, see [llms.txt](https://proxetta.jodd.org/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://proxetta.jodd.org/refs/pathref.md).

# Pathref

Similar to `Methref`, the `Pathref` returns the *bean path* of the property. The usage is very similar:

```java
Pathref<User> p = Pathref.on(User.class);

p.path(p.to()
    .getFriends()
    .get(2)
    .getAddress()
    .getStreet());        // friends[2].address.street
```

Bean path can be used later in reading the property using e.g. `BeanUtil`.
