[
http://galaxy.andromda.org:8080/jira/browse/HIB-82?page=comments#action_11278 ]
Wouter Zoons commented on HIB-82:
---------------------------------
In particular it appears to affect all many-to-many self-associations, of which
we have a few, nothing special about them - navigable in only one direction.
We were getting mapping code that looked like this (sorry if this is confusing):
<set name="seeAlso" table="SEE_ALSO" order-by="SEE_ALSO_FK" outer-join="auto"
lazy="true" inverse="false">
<key foreign-key="BIBLIOGRAPHIC_REFERENCE_SEE_ALSO_FKC">
<column name="BIBLIOGRAPHIC_REFERENCES_FK"/>
</key>
<many-to-many
class="edu.columbia.gemma.common.description.BibliographicReferenceImpl"
column="SEE_ALSO_FK" foreign-key="BIBLIOGRAPHIC_REFERENCE_SEE_ALSO_FKC"/>
</set>
I think BIBLIOGRAPHIC_REFERENCE_SEE_ALSO_FKC should not be used twice? I see
you changed it from 'sourceEnd' to 'otherEnd' in the first instance. The
SEE_ALSO table ends up with two foreign key constraints with the same name.
> foreign key constraint name cause SchemaExport error
> ----------------------------------------------------
>
> Key: HIB-82
> URL: http://galaxy.andromda.org:8080/jira/browse/HIB-82
> Project: Hibernate Cartridge
> Type: Bug
> Versions: 3.0RC1
> Reporter: Wouter Zoons
> Assignee: Wouter Zoons
> Priority: Blocker
>
> The bug results in errors of this ilk during schema-export:
> Foreign key (SEE_ALSO [SEE_ALSO_FK,BIBLIOGRAPHIC_REFERENCES_FK])) must have
> same number of columns as the referenced primary key (BIBLIOGRAPHIC_REFERENCE
> [ID])
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://galaxy.andromda.org:8080/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
Andromda-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/andromda-devel