portals-jetspeed-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From a..@apache.org
Subject svn commit: r524587 - /portals/jetspeed-2/branches/J2-M2-REDUX/maven/jetspeed-maven-plugins/src/main/java/org/apache/jetspeed/maven/plugins/DDLGeneratorMojo.java
Date Sun, 01 Apr 2007 12:43:13 GMT
Author: ate
Date: Sun Apr  1 05:43:13 2007
New Revision: 524587

URL: http://svn.apache.org/viewvc?view=rev&rev=524587
Log:
Hack to map LONGVARCHAR to VARCHAR2(4000) on Oracle platform: the default CLOB really isn't
useful for our purposes.
Note: this should allow reverting back to ddlutils-RC1, no longer need the ddlutils-RC1-patched.

First need to put ddlutils-RC1 on bluesunrise m2 repo though

Modified:
    portals/jetspeed-2/branches/J2-M2-REDUX/maven/jetspeed-maven-plugins/src/main/java/org/apache/jetspeed/maven/plugins/DDLGeneratorMojo.java

Modified: portals/jetspeed-2/branches/J2-M2-REDUX/maven/jetspeed-maven-plugins/src/main/java/org/apache/jetspeed/maven/plugins/DDLGeneratorMojo.java
URL: http://svn.apache.org/viewvc/portals/jetspeed-2/branches/J2-M2-REDUX/maven/jetspeed-maven-plugins/src/main/java/org/apache/jetspeed/maven/plugins/DDLGeneratorMojo.java?view=diff&rev=524587&r1=524586&r2=524587
==============================================================================
--- portals/jetspeed-2/branches/J2-M2-REDUX/maven/jetspeed-maven-plugins/src/main/java/org/apache/jetspeed/maven/plugins/DDLGeneratorMojo.java
(original)
+++ portals/jetspeed-2/branches/J2-M2-REDUX/maven/jetspeed-maven-plugins/src/main/java/org/apache/jetspeed/maven/plugins/DDLGeneratorMojo.java
Sun Apr  1 05:43:13 2007
@@ -27,6 +27,7 @@
 import org.apache.ddlutils.model.Database;
 import org.apache.ddlutils.model.Table;
 import org.apache.ddlutils.platform.CreationParameters;
+import org.apache.ddlutils.platform.oracle.Oracle8Platform;
 import org.apache.ddlutils.task.TableSpecificParameter;
 import org.apache.maven.plugin.AbstractMojo;
 import org.apache.maven.plugin.MojoExecutionException;
@@ -135,6 +136,11 @@
                     {
                         // we're generating SQL comments if possible
                         platform.setSqlCommentsOn(true);
+                    }
+                    if ( platform instanceof Oracle8Platform )
+                    {
+                        // hack to map LONGVARCHAR to VARCHAR2(4000) on Oracle, the predefined
CLOB type really isn't usable
+                        platform.getPlatformInfo().addNativeTypeMapping("LONGVARCHAR", "VARCHAR2(4000)");
                     }
                     boolean isCaseSensitive = platform.isDelimitedIdentifierModeOn();
                     CreationParameters params = getFilteredParameters(model, platform.getName(),
isCaseSensitive);



---------------------------------------------------------------------
To unsubscribe, e-mail: jetspeed-dev-unsubscribe@portals.apache.org
For additional commands, e-mail: jetspeed-dev-help@portals.apache.org


Mime
View raw message