-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
 Post subject: Global table/column name quoting.
PostPosted: Tue Oct 09, 2007 6:40 am 
Newbie

Joined: Tue Oct 09, 2007 6:30 am
Posts: 2
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


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.