Answer the question
In order to leave comments, you need to log in
Is it possible in Spring to access dynamically created tables?
The situation is as follows:
Postgres has a statistics schema. This schema has core tables, such as mobile_stat. Once a day, a duplicate table is created, but with a different name, for example, mobile_stat_partition_w46. So is it possible to somehow create an object with the @Table annotation to avoid writing a direct SQL query to update this table.
Alya so that you can dynamically create @Entity with a new table name, because the data structure is the same inside
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question