From: M. Dietrich <mdt@em...> - 2005-08-03 16:56:59
i like a naming style where all names are prefixed by a string to
prevent name collitions with sql keywords. i did one which uses
MixedCaseUnderscoreStyle as base.
it converts mixedCase to md_mixed_case or whatever the prefix is.
please drop me a note if you are interested to integrate it into
sqlobject as standard.
From: Ian Bicking <ianb@co...> - 2005-08-03 17:07:02
M. Dietrich wrote:
> i like a naming style where all names are prefixed by a string to
> prevent name collitions with sql keywords. i did one which uses
> MixedCaseUnderscoreStyle as base.
A prefix on the table name, or a prefix on the columns? Column prefixes
seem excessive; really the issue is that SQLObject should quote columns
that collide with keywords (this quoting is database-dependent, which
complicates it a little bit). But table prefixes seem more generally
useful, and fairly common.
Ian Bicking / ianb@... / http://blog.ianbicking.org