Binding a text field to foreign key

Hello,

I am trying to bind a text field (String) to a Bean property (Java Bean) which itself is a foreign key of another table. I couldn’t find any docs so far on this topic. I am using vaadin 18.

How can I use binder to bind the data?

Could somebody please suggest any examples or documentation I can follow to solve this?