Hi :-),
well the default names for id (id) and index (idx) are okay and both
attributes have reasonable datatypes (integer). To get the datatype of
the element reflection is used (i think). The name of the element is
"elt" - it should be easy to find a better one.
Calling the hbm2ddl results in this Database:
CREATE TABLE tags
(
id integer NOT NULL,
elt character varying(255),
idx integer NOT NULL,
CONSTRAINT tags_pkey PRIMARY KEY (id, idx),
CONSTRAINT fk2b61aab359e28fd5 FOREIGN KEY (id)
REFERENCES item (id) MATCH SIMPLE
ON UPDATE NO ACTION ON DELETE NO ACTION
)
CREATE TABLE item
(
id serial NOT NULL,
"name" character varying(255),
CONSTRAINT item_pkey PRIMARY KEY (id)
)
You should be right about cascade, but it works with cascade="none"
(/default-cascade="none") and I don't know why. Does anyone have an
idea?
Bye
--
You received this message because you are subscribed to the Google Groups
"nhusers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/nhusers?hl=en.