D
D
DmitryPros2018-03-25 00:25:46
MySQL
DmitryPros, 2018-03-25 00:25:46

JPA (Hibernate): How to automatically create many tables?

Hello everyone, toaster readers and writers!
I had the following question, in connection with the need to implement the following feature:
To optimize the operation of the database, it is necessary to create many different and similar tables (with the same structure), which will differ only in the name, how can this be implemented?
It would be possible to simply generate a SQL query in a txt file with a script and execute it, but it would be much better if the program creates additional tables in realtime according to the type of the same entity when certain conditions occur.
I am using Java 9 and Hibernate

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question