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

Andrej Golovnin (JIRA) noreply at atlassian.com
Fri Jul 13 04:26:52 EDT 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-538?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_27485 ] 

Andrej Golovnin commented on ANN-538:
-------------------------------------

What about "ELEMENT_POSITION" or "ELEMENT_INDEX" as the default name?

> Give @IndexColumn a default name
> --------------------------------
>
>                 Key: ANN-538
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-538
>             Project: Hibernate Annotations
>          Issue Type: Improvement
>          Components: binder
>    Affects 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