wsr wrote:
The problem is sometimes hibernate will generate the Integrity Constraints SQL Statements in the DDL. Then there will be some problem for those databases which don't support such constraints. e.g. some older version of MySQL.
Is there anyway of making the Integrity Constraints DLL generation an option step?
e.g. imagine the schemaexport can accept a parameter that omit the integrity constraints DDL generation, then it will generate only the create table statements. And the actual integrity is managed by the Hibernate API as specified in the mapping xml file.
Is it possible doing something like that? Or any other alternatives?
Thx.
Some background information: one objective of the software project that I am working on is to support as many kinds of DBMS as possible. Our team has insight on Hibernate having such edge. So we try to adpot it.
The success of this decision relys on how Hibernate generate DDL for a specific kinds of database in different versions.
Can we consider all the DB type and its version by changing the SQLDialect class supplied in the configuration?
Thx.