[hibernate-issues] [Hibernate-JIRA] Commented: (ANN-563) DefaultComponentSafeNamingStrategy generates too long column ids
Emmanuel Bernard (JIRA)
noreply at atlassian.com
Fri Feb 23 12:56:32 EST 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/ANN-563?page=comments#action_26260 ]
Emmanuel Bernard commented on ANN-563:
--------------------------------------
That's why naming strategies are pluggable, change the implementation to match your limitations.
> 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