From: Mike D. (JIRA) <no...@at...> - 2006-06-06 01:41:41
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HBX-620?page=comments#action_23268 ] Mike Desjardins commented on HBX-620: ------------------------------------- FYI, here's a related case in the forums... http://forum.hibernate.org/viewtopic.php?p=2308784#2308784 > Bad hbm2hbmxml reverse-engineer > ------------------------------- > > Key: HBX-620 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HBX-620 > Project: Hibernate Tools > Type: Bug > Components: reverse-engineer > Environment: Hibernate tools 3.1.0 beta4, MySQL 4.1.12 > Reporter: Matteo > Attachments: ArticoliOfferti.hbm.xml, OfferteFornitori.hbm.xml, ddl.sql > > > Reverse engineering from the ddl attached produced two mappings also attached. > When trying to generate the code with hbm2java it fails with the following exception: > org.hibernate.MappingException: Foreign key (FK405FC7E1E8A9975D:articoli_offerti [fk_offerte_fornitori_for])) must have same number of columns as the referenced primary key (offerte_fornitori [fk_fornitori,fk_rdo]) -- 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.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira |