Hi !
Thanks for the tipp !
unique is a reserved keyword in postgres, but i can create a column with this name.
SQL of my table looks like this:
Code:
CREATE TABLE typepropertyimpl
(
id integer NOT NULL,
"value" character varying(255),
"key" character varying(255),
description character varying(255),
optional boolean NOT NULL,
fixed boolean NOT NULL,
unikue boolean NOT NULL,
type_id bigint,
"unique" boolean,
CONSTRAINT typepropertyimpl_pkey PRIMARY KEY (id),
CONSTRAINT fk6609d5af161736b4 FOREIGN KEY (type_id)
REFERENCES types (id) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION
)
But you see the name is escaped. And by the way: it works too create columns with name 'value' and with the name 'key'. Maybe hibernate developers simply forgot to escape the 'unique' keyword.
regards
Michael