I want Spring not to create tables for some of my entities

Viewed 31

I currently have a multi-tenant application with a "main" database. On the other hand, I have a few entities that correspond to tables that belong to other databases.

I need to have these other entities and their repositories to be able to retrieve data from the other databases, but when I launch the application Spring will create a new table in my "main" database for each of those entities.

Is it possible to tell spring not to create such tables?

(I thought of setting spring.jpa.hibernate.ddl-auto: update to "none", but I'd like to keep this property as it is right now)

0 Answers
Related