User: dsundstrom Date: 02/04/10 08:18:45 Modified: src/main/org/jboss/ejb/plugins/cmp/jdbc/metadata JDBCEntityMetaData.java JDBCRelationMetaData.java Log: Fixed bug [ 533686 ] JDBCStartCommand.tableExists() Oracle. Table names are now passed through SQLUtil.fixTableName(...). Currently, this only fixes the case based on the DatabaseMetaData, but in the future this is the place where the length will be fixed and reserved words will be detected. Revision Changes Path 1.17 +3 -3 jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/metadata/JDBCEntityMetaData.java Index: JDBCEntityMetaData.java =================================================================== RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/metadata/JDBCEntityMetaData.java,v retrieving revision 1.16 retrieving revision 1.17 diff -u -r1.16 -r1.17 --- JDBCEntityMetaData.java 1 Feb 2002 01:39:30 -0000 1.16 +++ JDBCEntityMetaData.java 10 Apr 2002 15:18:45 -0000 1.17 @@ -29,7 +29,7 @@ * @author <a href="mailto:[EMAIL PROTECTED]">Dain Sundstrom</a> * @author <a href="[EMAIL PROTECTED]">Sebastien Alborini</a> * @author <a href="mailto:[EMAIL PROTECTED]">Dirk Zimmermann</a> - * @version $Revision: 1.16 $ + * @version $Revision: 1.17 $ */ public final class JDBCEntityMetaData { /** @@ -375,7 +375,7 @@ if(tableStr != null) { tableName = tableStr; } else { - tableName = defaultValues.getTableName(); + tableName = defaultValues.getDefaultTableName(); } // create table? If not provided, keep default. @@ -817,7 +817,7 @@ * Gets the name of the table to which this entity is persisted * @return the name of the table to which this entity is persisted */ - public String getTableName() { + public String getDefaultTableName() { return tableName; } 1.13 +3 -3 jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/metadata/JDBCRelationMetaData.java Index: JDBCRelationMetaData.java =================================================================== RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/ejb/plugins/cmp/jdbc/metadata/JDBCRelationMetaData.java,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- JDBCRelationMetaData.java 3 Mar 2002 22:24:55 -0000 1.12 +++ JDBCRelationMetaData.java 10 Apr 2002 15:18:45 -0000 1.13 @@ -25,7 +25,7 @@ * have set methods. * * @author <a href="mailto:[EMAIL PROTECTED]">Dain Sundstrom</a> - * @version $Revision: 1.12 $ + * @version $Revision: 1.13 $ */ public final class JDBCRelationMetaData { private final static int TABLE = 1; @@ -215,7 +215,7 @@ String tableNameString = MetaData.getOptionalChildContent( mappingElement, "table-name"); if(tableNameString == null) { - tableNameString = defaultValues.getTableName(); + tableNameString = defaultValues.getDefaultTableName(); if(tableNameString == null) { // use defaultValues to create default, because left/right // have not been assigned yet, and values used to generate @@ -507,7 +507,7 @@ * Gets the name of the relation table. * @return the name of the relation table to which is relation is mapped */ - public String getTableName() { + public String getDefaultTableName() { return tableName; }
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development