Nice.
On 12/02/2009, at 1:12 PM, qdola..bjectstyle.org wrote:
> Author: qdolan
> Date: 2009-02-11 21:12:20 -0500 (Wed, 11 Feb 2009)
> New Revision: 5672
>
> Modified:
> trunk/woproject/wolips/core/plugins/
> org.objectstyle.wolips.eomodeler.core/templates/EntityMigration0.java
> Log:
> Add support for wonder's longText prototype to migration template
>
> Modified: trunk/woproject/wolips/core/plugins/
> org.objectstyle.wolips.eomodeler.core/templates/EntityMigration0.java
> ===================================================================
> --- trunk/woproject/wolips/core/plugins/
> org.objectstyle.wolips.eomodeler.core/templates/
> EntityMigration0.java 2009-02-10 04:51:49 UTC (rev 5671)
> +++ trunk/woproject/wolips/core/plugins/
> org.objectstyle.wolips.eomodeler.core/templates/
> EntityMigration0.java 2009-02-12 02:12:20 UTC (rev 5672)
>.. -6,7 +6,8 @@
> #end
> #foreach ($attribute in $entity.sortedAttributes)
> #if ($attribute.sqlGenerationCreateProperty)
> - #if ($attribute.javaClassName == "String" && $attribute.width)$
> {migrationTableName}.newStringColumn("${attribute.columnName}", $
> {attribute.width}, ${attribute.sqlGenerationAllowsNull});
> + #if ($attribute.prototype.name == "longText")$
> {migrationTableName}.newLargeStringColumn("${attribute.columnName}",
> ${attribute.sqlGenerationAllowsNull});
> +#elseif ($attribute.javaClassName == "String" && $attribute.width)$
> {migrationTableName}.newStringColumn("${attribute.columnName}", $
> {attribute.width}, ${attribute.sqlGenerationAllowsNull});
> #elseif ($attribute.javaClassName == "String")$
> {migrationTableName}.newStringColumn("${attribute.columnName}", $
> {attribute.sqlGenerationAllowsNull});
> #elseif ($attribute.javaClassName == "BigDecimal" ||
> $attribute.javaClassName == "java.math.BigDecimal")$
> {migrationTableName}.newBigDecimalColumn("${attribute.columnName}", $
> {attribute.precision}, ${attribute.scale}, $
> {attribute.sqlGenerationAllowsNull});
> #elseif ($attribute.javaClassName == "Integer" &&
> $attribute.precision)${migrationTableName}.newIntegerColumn("$
> {attribute.columnName}", ${attribute.precision}, $
> {attribute.sqlGenerationAllowsNull});
>
with regards,
--Lachlan Deck
This archive was generated by hypermail 2.0.0 : Wed Feb 11 2009 - 21:27:14 EST