|
When using org.hibernate.tool.hbm2ddl.SchemaExport to export a schema file, the generated file should quote SQL key words to enable them to be run.
As an example, I have an entity which results in the following invalid statement, because the entity is named "user" which is a key word. I've tested this on PostgreSQL 9.3 and it requires that the column name be quoted (with double quotes, single quotes don't work)
create table record ( id varchar(36) not null, changetime timestamp, user varchar(128), primary key (id) );
|