Hi there. Hibernate doesn't quote table and column names by default [and that's evil]. Instead, it suggests adding `` to each name that you need to quote. I wonder if there is some way to globally enable quoting so I do not need to bother about manual quoting. Manual qouting has two troubles:
1) you must remember to add it.
2) different databases have different sets of reserved names.
So what i suggest is to add global qouting feature and enable it by default.
The only drawback is a little bit increased app <-> db traffic. And great benefit - no more ANY troubles with reserved names (some of them are used pretty often in models, such as User, Order, etc.).
Hope this will make Hibernate better.
--
Marat Radchenko,
Dev Lead at Pronto-Moscow
|