[hibernate-issues] [Hibernate-JIRA] Resolved: (ANN-563) DefaultComponentSafeNamingStrategy generates too long column ids

Christian Bauer (JIRA) noreply at atlassian.com
Wed Feb 21 08:11:31 EST 2007


     [ http://opensource.atlassian.com/projects/hibernate/browse/ANN-563?page=all ]
     
Christian Bauer resolved ANN-563:
---------------------------------

    Resolution: Rejected

Nonsense. Get a real DBMS with reasonable limits or override the name with annotations.


> DefaultComponentSafeNamingStrategy generates too long column ids
> ----------------------------------------------------------------
>
>          Key: ANN-563
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/ANN-563
>      Project: Hibernate Annotations
>         Type: Bug

>     Versions: 3.2.0.ga
>  Environment: Hibernate-Version: 3.2.1.ga
> Hibernate Annotations Version: 3.2.0.GA
> Oracle 10.1.0 
>     Reporter: Ilya Kuleshov

>
>
> Column ids are really long indeed! Embedded entities names are being concatenated without limit.
> I have a Person entity with an embedded personalData property. PersonalData has an embedded homeAddress property. Finally, HomeAddress has a zipcode property. Use of DefaultComponentSafeNamingStrategy results to the column named personaldata_homeaddress_zipcode and "ORA-00972: identifier is too long" error. 
> It should be reasonable to expect hibernate to trim the column name automatically for me.

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