xmlbeans-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From kkro...@apache.org
Subject svn commit: r151244 - xmlbeans/trunk/samples/db/vxsdb/type.vm
Date Thu, 03 Feb 2005 22:58:30 GMT
Author: kkrouse
Date: Thu Feb  3 14:58:28 2005
New Revision: 151244

URL: http://svn.apache.org/viewcvs?view=rev&rev=151244
Log:
XMLBEANS-104: Tables descriptors are created for simple user defined types (a type based on
one of the build-in 20)

This patch solves the first half of this issue. Column datatypes are correctly
set for elements and attributes that use the user defined type who's primitive
type is one of the built in types. Table descriptor are still being created
for the user defined type.

Contributed by Philip Mark Donaghy

Modified:
    xmlbeans/trunk/samples/db/vxsdb/type.vm

Modified: xmlbeans/trunk/samples/db/vxsdb/type.vm
URL: http://svn.apache.org/viewcvs/xmlbeans/trunk/samples/db/vxsdb/type.vm?view=diff&r1=151243&r2=151244
==============================================================================
--- xmlbeans/trunk/samples/db/vxsdb/type.vm (original)
+++ xmlbeans/trunk/samples/db/vxsdb/type.vm Thu Feb  3 14:58:28 2005
@@ -19,4 +19,4 @@
 ##
 ## See doc for constant values:
 ## http://xmlbeans.apache.org/docs/v2/reference/constant-values.html
-#if($property.type.simpleVariety == 1)#if($property.type.name.localPart == "boolean")BOOLEAN#elseif($property.type.name.localPart
== "dateTime")TIMESTAMP#elseif($property.type.name.localPart == "decimal")DECIMAL#elseif($property.type.name.localPart
== "int")TINYINT#elseif($property.type.name.localPart == "integer")INTEGER#elseif($property.type.name.localPart
== "long")INTEGER#elseif($property.type.name.localPart == "string")VARCHAR#end#end
\ No newline at end of file
+#if($property.type.simpleVariety == 1)#if($property.type.primitiveType.name.localPart ==
"boolean")BOOLEAN#elseif($property.type.primitiveType.name.localPart == "dateTime")TIMESTAMP#elseif($property.type.primitiveType.name.localPart
== "decimal")DECIMAL#elseif($property.type.primitiveType.name.localPart == "int")INTEGER#elseif($property.type.primitiveType.name.localPart
== "integer")INTEGER#elseif($property.type.primitiveType.name.localPart == "long")INTEGER#elseif($property.type.primitiveType.name.localPart
== "string")VARCHAR#elseif(true)OTHER#end#end



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: commits-help@xmlbeans.apache.org


Mime
View raw message