Fixed issue 0006946. Now CLASSNAME has a better onCreateDefault.
authorAntonio Moreno <antonio.moreno@openbravo.com>
Wed, 28 Jan 2009 09:51:29 +0000
changeset 2766 432b309c11e5
parent 2765 a0952e02ddeb
child 2767 60b4784e54aa
Fixed issue 0006946. Now CLASSNAME has a better onCreateDefault.
build.xml
src-db/database/model/tables/AD_TABLE.xml
--- a/build.xml	Wed Jan 28 08:39:58 2009 +0000
+++ b/build.xml	Wed Jan 28 09:51:29 2009 +0000
@@ -286,7 +286,7 @@
 		<ant dir="${base.src}" target="export.sample.data" inheritAll="true" inheritRefs="true" />
 	</target>
 
-	<target name="import.sample.data">
+	<target name="import.sample.data" depends="code.rev">
 		<ant dir="${base.src}" target="import.sample.data" inheritAll="true" inheritRefs="true" />
 	</target>
 
--- a/src-db/database/model/tables/AD_TABLE.xml	Wed Jan 28 08:39:58 2009 +0000
+++ b/src-db/database/model/tables/AD_TABLE.xml	Wed Jan 28 09:51:29 2009 +0000
@@ -51,7 +51,7 @@
       </column>
       <column name="CLASSNAME" primaryKey="false" required="true" type="VARCHAR" size="60" autoIncrement="false">
         <default/>
-        <onCreateDefault><![CDATA[NAME]]></onCreateDefault>
+        <onCreateDefault><![CDATA[REPLACE(NAME,'_','')]]></onCreateDefault>
       </column>
       <column name="ISVIEW" primaryKey="false" required="true" type="CHAR" size="1" autoIncrement="false">
         <default><![CDATA[N]]></default>