After reading Hibernate: hbm2ddl.auto = update in production? some questions have arisen. First of all, the reason that I use Hibernate is an independent database provider (there is no need to write 10 versions of a “single” SQL query, for example, tsql vs sql).
My problem arises when I need to create database schemas (production environment). As far as I can see, I have two alternatives.
- hbm2dll = update
- pure sql (ddl) scripts.
The first option is widely discussed in the stream above. The second option is bad, because it means that I returned to my first problem: "I do not want to create SQL queries that depend on the database provider." (This statement may not be true if "everything" (currently Hibernate database support) implements DDL (a subset of SQL used to define and examine the database structure.) Is equal).
anon
source
share