L
L
lovk4ch2019-11-11 16:36:19
Java
lovk4ch, 2019-11-11 16:36:19

How to display columns from two tables in Vaadin Grid (inner join)?

Let's say I have two entities: a loan and a bank employee. It is necessary to display information on the loan, as well as the name of the employee who issued it through Foreign Key. That is, the query is something like this:
select C.ID, C.DATE, E.FIRST_NAME, E.LAST_NAME from CREDIT C
inner join EMPLOYEE E on C.EMPLOYEE_ID = E.ID
Vaadin Grid supports mapping of an already defined class. How can I display a structure containing data from multiple tables?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
R
Roman, 2020-01-12
@Terran37

Do you have this relationship defined at the entity level?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question