Problem with PK and FK

Stefano Maestri <[email protected]>
Newsgroups gmane.comp.java.ejb.middlegen.user
Message-ID <[email protected]>
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



-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
SourceForge.net hosts over 70,000 Open Source Projects.
See the people who have HELPED US provide better services:
Click here: http://sourceforge.net/supporters.php
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.