11520: It's possible create a column with 'class' name
authorAsier Lostalé <asier.lostale@openbravo.com>
Thu, 28 Jan 2010 10:36:20 +0100
changeset 6004 aeb4c8f8156f
parent 6003 b990840f14ba
child 6005 98d31cbff884
11520: It's possible create a column with 'class' name
src-db/database/model/functions/AD_ISJAVAWORD.xml
--- a/src-db/database/model/functions/AD_ISJAVAWORD.xml	Tue Jan 26 17:45:15 2010 +0100
+++ b/src-db/database/model/functions/AD_ISJAVAWORD.xml	Thu Jan 28 10:36:20 2010 +0100
@@ -16,62 +16,14 @@
 * under the License.
 * The Original Code is Openbravo ERP.
 * The Initial Developer of the Original Code is Openbravo SL
-* All portions are Copyright (C) 2009 Openbravo SL
+* All portions are Copyright (C) 2009-2010 Openbravo SL
 * All Rights Reserved.
 * Contributor(s):  ______________________________________.
 ************************************************************************/
 BEGIN
-  RETURN case when lower(WORD) in (
-          'abstract',
-          'assert',
-          'boolean',
-          'break',
-          'byte',
-          'case',
-          'catch',
-          'char',
-          'class',
-          'const',
-          'continue',
-          'default',
-          'do',
-          'double',
-          'else',
-          'enum',
-          'extends',
-          'final',
-          'finally',
-          'float',
-          'for',
-          'goto',
-          'if',
-          'implements',
-          'import',
-          'instanceof',
-          'int',
-          'interface',
-          'long',
-          'native',
-          'new',
-          'package',
-          'private',
-          'protected',
-          'public',
-          'return',
-          'short',
-          'static',
-          'strictfp',
-          'super',
-          'switch',
-          'synchronized',
-          'this',
-          'throw',
-          'throws',
-          'transient',
-          'try',
-          'void',
-          'volatile',
-          'while') THEN 'Y' ELSE 'N' END;
+  --Prevents column names to generate conflicts with DAL's getters and setters
+  RETURN case when lower(WORD) in ('class')
+    THEN 'Y' ELSE 'N' END;
 END AD_ISJAVAWORD
 ]]></body>
     </function>