[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-3396) minus sign in entity name causes invalid SQL
Diego Plentz (JIRA)
noreply at atlassian.com
Thu Aug 14 22:36:06 EDT 2008
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-3396?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_30877 ]
Diego Plentz commented on HHH-3396:
-----------------------------------
I think that one good approach is to remove everything that isnt word or decimal. Steve?
> minus sign in entity name causes invalid SQL
> --------------------------------------------
>
> Key: HHH-3396
> URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3396
> Project: Hibernate3
> Issue Type: Improvement
> Components: core
> Affects Versions: 3.2.6
> Environment: MySQL 5.0
> Reporter: Stefan Wachter
> Original Estimate: 15 minutes
> Remaining Estimate: 15 minutes
>
> An entity name that contains a minus sign leads to invalid SQL. The reason is that the minus signs are not replaced when alias names are derived from entity names.
> Maybe the org.hibernate.util.StringHelper.generateAliasRoot(String description) could replace minus signs by underscores? At the moment only "/" and "$" characters are replaced.
--
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