Discussion:
[Middlegen-user] Problem with PK and FK
Stefano Maestri
2003-10-16 15:20:05 UTC
Permalink
I'm using middlegen from cvs (ValueObject branch) and I have a trouble when in
a table on Oracle have PK and FK constraint on the same field(inheritance of
Relational Model) because the column is not seen as PK from middlegen. I'm
using hibernate plugin, and I try to modify the Velocity script to output in
my hbm file a comment when $column.pkis true:
----
#if ($column.pk)
<!--PK $column.sqlName -->
-- -

It's working fine with all table except ones described before.
Any ideas?
---
Stefano Maestri

Loading...