Имеется таблица с загрузчиком описанным Java кодом.
Таблица формируется из результатов следующего запроса:
Query query = entityManager
.createNativeQuery(" select passenger_name as name, " +
" contact_data :: json → ‘phone’ as phone, " +
" contact_data :: json → ‘email’ as email, " +
" book_ref as booking " +
" from tickets limit 20 " + getPredicateString(id));
Код загрузчика:
KeyValueCollectionLoader keyValueCollectionLoader = dataComponents.createKeyValueCollectionLoader();
setLoadDelegate(keyValueCollectionLoader);
KeyValueCollectionContainer keyValueCollectionContainer = dataComponents.createKeyValueCollectionContainer();
keyValueCollectionLoader.setContainer(keyValueCollectionContainer);
setNameInContainer(keyValueCollectionContainer);
ContainerTableItems containerTableItems = new ContainerTableItems(keyValueCollectionContainer);
customTable.setItems(containerTableItems);
т.е имеет четыре атрибута:
passenger_name as name;
phone;
email;
booking ;
Где booking - это FK ссылающийся на сущность Booking.
Как сделать так чтобы кликая по booking в строке отображаемой таблицы перейти в карточку просмотра данного Booking, т.е. Booking с id по которому кликнули?