[jbosstools-issues] [JBoss JIRA] Created: (JBIDE-8606) Reverse Engineering FK-Detection in parent table

Peter Rader (JIRA) jira-events at lists.jboss.org
Fri Mar 18 10:09:47 EDT 2011


Reverse Engineering FK-Detection in parent table
------------------------------------------------

                 Key: JBIDE-8606
                 URL: https://issues.jboss.org/browse/JBIDE-8606
             Project: Tools (JBoss Tools)
          Issue Type: Bug
          Components: Eclipse Migration, Hibernate
    Affects Versions: LATER
         Environment: winxp32 vista64 postgresql8.3
            Reporter: Peter Rader


Postgresql does allow to inherit a table from another table.
But the RevEng does not detect Foregin-keys from parent table.

Example:

CREATE TABLE changed (
  created_from_user_id INTEGER NOT NULL,
  CONSTRAINT "created_user" FOREIGN KEY ("created_from_user_id") REFERENCES user("user_id")
)

CREATE TABLE guestbook (
  caption TEXT,
) INHERITS (changed)

insert into guestbook (1,'hi')


RevEng will create 
  public int getCreatedFromUserId()
instead of
  public User getCreatedFromUser()
what i expected to become.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jbosstools-issues mailing list