[hibernate-issues] [Hibernate-JIRA] Updated: (HBX-1191) Reverse engineer one-to-one
Erki (JIRA)
noreply at atlassian.com
Mon Sep 26 02:00:38 EDT 2011
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-1191?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Erki updated HBX-1191:
----------------------
Attachment: hibernate.reveng2.xml
Perhaps I should have added the foreign key mappings to child tables?
If I add the foregin keys to the child table mapping, I dont get any child references in the generated parent table class.
> Reverse engineer one-to-one
> ----------------------------
>
> Key: HBX-1191
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-1191
> Project: Hibernate Tools
> Issue Type: Bug
> Components: reverse-engineer
> Affects Versions: 3.2LATER
> Environment: eclipse indigo 64bit, postgresql 9.1 64bit, java 6 64bit, windows 7 64bit
> Reporter: Erki
> Labels: hibernate
> Attachments: hibernate.reveng2.xml, hibernate.reveng.xml, hib_tools_one_to_one_create.sql
>
>
> Hello, I'm using the latest development milestone of hibernate tools 3.4.0.v20110915-1559-H24-M3.
> I am trying to reverse egineer the tables defined in the attached creeation sql file using the attached reveng file.
> Table parent has just an id column.
> Tables child and child2 have an id column and an unique parent_id column which references the parent.id.
> If I try to reverse engineer the parent with 2 child tables, I get an exception saying that parent table class does not exist.
> org.test.hibernate.MappingException: An association from the table child refers to an unmapped class: ee.hibernate.reveng.generated.Parent
> An association from the table child refers to an unmapped class: ee.test.hibernate.reveng.generated.Parent
> <No message>
> If try to reverse engineer the parent with only 1 child, it succeeds.
--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list