Relationships are not generated by rev.eng. from Derby database
---------------------------------------------------------------
Key: HBX-1089
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HBX-1089
Project: Hibernate Tools
Issue Type: Bug
Components: ant
Affects Versions: 3.2.1
Environment: Apache Derby Network Server - 10.2.2.1
Hibernate Tools 3.2.2.GA
Hibernate 3.2.5
Reporter: Jan Horvath
Attachments: stacktrace.txt
I'm trying to generate HBMs using rev.eng. HBMs are generated correctly except there
are relationships missing.
While the task is running SqlException is logged (stacktrace attached)
steps to reproduce:
-create two tables with 1:M relation
CREATE TABLE DOG (ID INT PRIMARY KEY, NAME VARCHAR(64), BREED_ID INT);
CREATE TABLE BREED (ID INT PRIMARY KEY, NAME VARCHAR(64), COLOR VARCHAR(32));
ALTER TABLE DOG ADD CONSTRAINT BREED_FK FOREIGN KEY (BREED_ID) REFERENCES BREED;
-run hibernate rev. eng.
<hibernatetool destdir="src/generated" >
<jdbcconfiguration
configurationfile="src/java/hibernate.cfg.xml"
packagename="test"/>
<hbm2hbmxml/>
<hbm2java/>
</hibernatetool>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira