What level of hibernate.hbm2ddl.auto to use in development mode
Вопрос
my case is as follows:
- I make changes in already existing tables.
- I add new tables.
- In the import script for hibernate (import.sql) sometimes i make changes in old queries and sometimes i add new queries.
- In Production it should be set to none, and use an sql script instead, right ?
please advise.
Решение
Yes. It should be
hibernate.hbm2ddl.auto=update
Also the other important properties should be set at a development env only,
hibernate.show_sql=true
hibernate.format_sql=true
To track the hibernate queries generated.
Не связан с StackOverflow