From: Paul B. (JIRA) <no...@at...> - 2006-03-01 03:16:37
|
Allow specifying foreign key constraint name using annotations -------------------------------------------------------------- Key: ANN-261 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-261 Project: Hibernate Annotations Type: Improvement Versions: 3.1beta8 Reporter: Paul Barry Priority: Minor Using hbm.xml configuration for many-to-one, there is a foreign-key property that allows you to specify the name of the FK constraint. It would be nice if there was something similar for annotations, such as @ManyToOne ( constraintName = "FK_WHATEVER"). Also, a sensible default would be nice to, for example FK_TABLE_NAME_COLUMN_NAME, rather than FK20708CF6792111. I know Oracle has a 30 char limit for constraint names, so there would have to me some logic to find a way to abbreviate it. -- 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 |