Hello,
I'm running SchemaExport on my hbm file and generating DDL file for a postgresql database. I have a hibernate config file that sets the dialect to postresql.
My issue is that the DDL that gets generated does not have a semi-colon at the end of each DDL command. I went through the hibernate code that generates the DDL and found that the dialect is not consulted for this (ie: a semi-colon will never be produced no matter what dialect you use).
I'm wondering if anyone else has experienced this problem? Is this a bug, or am I setting something up wrong?
I'm using hibernate 2.0.3.
Here is a snip from the DDL that I am generating:
Code:
drop table portfolio
create table portfolio (
portfolio_id INT8 not null,
title VARCHAR(255),
size INT8,
primary key (portfolio_id)
);
The above gives me errors when I try to execute it. When I add semi-colon's as follows, it runs fine:
Code:
drop table portfolio;
create table portfolio (
portfolio_id INT8 not null,
title VARCHAR(255),
size INT8,
primary key (portfolio_id)
);
Any ideas?
Thanks!