Hello guys,
I've developing a project with NHibernate and Oracle. We have a table which has a column named Level and Level is a keyword used on oracle, which we should escape with quotes to make a sql statement. I've looking how to do it on NHibernate and I saw we have a configuration that we can add on the hibernate.cfg.xml, like this tag:
<property name="hbm2ddl.keywords">auto-quote</property>
We saw it on the
Fabio Maulo's blog, and we understand it should escape all the table/column names with quotes, but it does not work fine to me. Instead "auto-quote" we also tried "keywords" but we have gotten the same result.
I know we can change our mapping and force to map the column name with quotes, but it looks like a workaround for us. Is there any way to get the column names escaped with quotes for the sql statements?
Thank you.
--
______________________________________
Felipe B Oriani