[hibernate-issues] [Hibernate-JIRA] Commented: (ANN-538) Give @IndexColumn a default name

Emmanuel Bernard (JIRA) noreply at atlassian.com
Sat Feb 10 12:13:40 EST 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-538?page=comments#action_26073 ] 

Emmanuel Bernard commented on ANN-538:
--------------------------------------

I don't like hibernate_index
In the Entity model, nowhere id expressed the name hibernate. It only happens in the id generation support artefacts

> Give @IndexColumn a default name
> --------------------------------
>
>          Key: ANN-538
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-538
>      Project: Hibernate Annotations
>         Type: Improvement

>     Versions: 3.2.1
>     Reporter: Sven Meier
>     Priority: Minor

>
>
> It would be great, if the @IndexColumn annotation had a default 'name'.
> This would support users (e.g. me ;) in their effort to keep persistence annotations clear of database specifics. Additionally @IndexColumn is a rather often used annotation and it's tedious to repeat the same information (i.e. the 'name') over and over again.
> I'd propose 'hibernate_index', similar to the defaults in net.sf.hibernate.id.TableGenerator.
> Preferably this default would come from NamingStrategy, but I'm not sure how stable this interface is supposed to be.

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