[ http://galaxy.andromda.org:8080/jira/browse/HIB-81?page=history ]
     
Wouter Zoons closed HIB-81:
---------------------------

    Resolution: Fixed

> Generate foreign key constraint names
> -------------------------------------
>
>          Key: HIB-81
>          URL: http://galaxy.andromda.org:8080/jira/browse/HIB-81
>      Project: Hibernate Cartridge
>         Type: New Feature
>     Versions: 3.0M3
>  Environment: AndromMDA RC1 latest build
>     Reporter: Johnny Macchione
>     Assignee: Wouter Zoons
>     Priority: Minor
>      Fix For: 3.0RC1

>
> We're using Hibernate's SchemaExport tool to generate the database schema SQL 
> script.
> By default, this tool names foreign key constraints as follows: 
> FK + hash(table name) + hash(column name)
> This guarantees the foreign key constraint name uniqueness, but really isn't 
> meaningful when used in foreign key constraint violation error messages 
> (e.g.: FK78191C2991B).
> It isn't possible to use a custom NamingStrategy, like for table and column 
> names, 
> but it is still possible to override the default name by adding a 
> 'foreign-key' attribute on the following elements of the Hibernate mapping 
> file (See Hibernate Reference chapter 15): <one-to-one>, <many-to-one>, 
> <key>, and <many-to-many>.
> I think AndroMDA could make a good use of association-end names to generate 
> meaningful unique names for foreign key constraints or use a naming pattern 
> like: fk + table name + column name.

-- 
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

Reply via email to