[
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3396?page=c...
]
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....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira