Multiple Data Sources in Spring Data JPA and Spring Boot MVC

preview_player
Показать описание
In this video, I will demo how to use Multiple Data Sources in Spring Data JPA and Spring Boot MVC
======================================================
======================================================
======================================================
======================================================
======================================================
======================================================
======================================================
======================================================
======================================================
======================================================
======================================================
Check out our new online store for some programming merchandise!
======================================================
TODAY IS A GREAT DAY TO LEARN SOMETHING NEW!
======================================================
Рекомендации по теме
Комментарии
Автор

I have a question: I have two data source in my application, and entities for it ( table1, table2 ), i would like to create @query in table1 repository with join table2 entity how I can do this, query like that not working
@Query("""
SELECT t1 FROM Table1 t1
JOIN t2 ON t1.code = t2.code
WHERE t2.postCode <> ''
""")
How i should do this corecctly ?

kacperdygas