[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-4245) Foreign key name on @OneToOne
Matthias Hanisch (JIRA)
noreply at atlassian.com
Mon Nov 16 07:30:08 EST 2009
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-4245?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=34611#action_34611 ]
Matthias Hanisch commented on HHH-4245:
---------------------------------------
I am facing the same problem. Specifing the relation and the foreign key in an hbm.xml using
<one-to-one name="..." class="..." constrained="true" foreign-key="..."/>
seems to work instead.
> Foreign key name on @OneToOne
> -----------------------------
>
> Key: HHH-4245
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-4245
> Project: Hibernate Core
> Issue Type: Bug
> Components: annotations
> Environment: Hibernate Core 3.2.5.GA , Hibernate Annotations 3.3.0.GA, Sybase ASE 15
> Reporter: Immo Heikkinen
> Priority: Minor
> Attachments: Child.java, Parent.java
>
>
> Foreign key constraint name cannot be changed using @org.hibernate.annotations.ForeignKey on a @OneToOne with foreign key. It doesn't matter which class is annotated with @ForeignKey. Please find the test case as an attachment.
> Original thread on the user forum: http://forum.hibernate.org/viewtopic.php?p=2367400
--
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
More information about the hibernate-issues
mailing list