Selecting a Linked Entity View
Learn how to link an entity to another entity in a Spring application with Thymeleaf.
We'll cover the following
Implementation
A common requirement in an application is the ability to select an entity from a list of entities to link that entity to another entity. Let’s make it practical.
We’ll create a Team
entity. Each Team
has a coach. When we create a form to create or edit a Team
, we will have a combobox
to select a coach. That combobox
will contain all users of the application.
Creating a team will look like this:
Get hands-on with 1200+ tech skills courses.