How can I select some records from two defferent tables and insert the selected records in a third table in spring boot application without having any association between the entities.
Insert into lager_product(ean,articleNumber,productText,productMaterial)
select lot_lager.EAN, lot_lager.ART_NR, product.p_text, product.p_comp_material_
from lot_lager join product on lot_lager.EAN = product.a_ean