NamingStrategy sometimes not work
---------------------------------
Key: HHH-3156
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-3156
Project: Hibernate3
Issue Type: Bug
Environment: 3.2.6ga
Reporter: Krashan Brahmanjara
I just run standard junit test from Hibernate 3.2.6ga for Informix database and see many
failed tests.
I saw there few problems.
- adding to junit TectCase.java line with ImprovedNamingStrategy seems to not work.
Behaviour not changed.
Especially for org.hibernate.test.sql.hand.query.NativeSQLQueriesTest
I don't see any other place to make this settings. Would be great to do it in
configuration file (HBX-612)
code
TestCase.cfg = new Configuration();
+ cfg.setNamingStrategy(ImprovedNamingStrategy.INSTANCE);
After some test I see also that
- native SQL queries are not converted with NamingStrategy rules in Session.createSQLQuery
- databases export/import not read NamingStrategy from configuration. It only read default
values from configuration.
The problem exists in folder hbm2ddl and file SchemaExportTask etc. in lines :
Configuration cfg = new Configuration();
if (namingStrategy!=null) {
cfg.setNamingStrategy(
If user set new strategy in session then SchemaExport don't see that.
At this moment one good method to succesfully change NamingStrategy for all classes is
manual modification of Configuration.java file ... I know it's stupid idea.
--
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