You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xmlbeans.apache.org by "Philip Mark Donaghy (JIRA)" <xm...@xml.apache.org> on 2005/01/30 07:13:19 UTC

[jira] Created: (XMLBEANS-104) Tables descriptors are created for simple user defined types (a type based on one of the build-in 20)

Tables descriptors are created for simple user defined types (a type based on one of the build-in 20)
-----------------------------------------------------------------------------------------------------

         Key: XMLBEANS-104
         URL: http://issues.apache.org/jira/browse/XMLBEANS-104
     Project: XMLBeans
        Type: Bug
  Components: Samples  
    Versions: unspecified    
 Environment: All
    Reporter: Philip Mark Donaghy


WRT the xmlbeans/samples/db/vxsdb sample, users should
be aware that there is an issue. separate tables are 
created for user defined schema types with restrictions 
based on simple types.

We can determine this using the getPrimitiveType method
of SchemaType. The trick will be to use the
SchemaType object to determine if a datamodel type
will be sufficient to satisfy say a schema type
restricting xsd:string to 3 characters or an
enumeration of values who exceed no more that 5
characters.

In addition types which use these types as attributes or
elements create a database column with the commons sql 
OTHER datatype in their own table descriptor.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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


[jira] Resolved: (XMLBEANS-104) Tables descriptors are created for simple user defined types (a type based on one of the build-in 20)

Posted by "Kevin Krouse (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-104?page=history ]
     
Kevin Krouse resolved XMLBEANS-104:
-----------------------------------

    Resolution: Fixed

I've committed the patch.  Let me know if it helped.

> Tables descriptors are created for simple user defined types (a type based on one of the build-in 20)
> -----------------------------------------------------------------------------------------------------
>
>          Key: XMLBEANS-104
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-104
>      Project: XMLBeans
>         Type: Bug
>   Components: Samples
>     Versions: unspecified
>  Environment: All
>     Reporter: Philip Mark Donaghy
>  Attachments: xmlbeans-104a.patch
>
> WRT the xmlbeans/samples/db/vxsdb sample, users should
> be aware that there is an issue. separate tables are 
> created for user defined schema types with restrictions 
> based on simple types.
> We can determine this using the getPrimitiveType method
> of SchemaType. The trick will be to use the
> SchemaType object to determine if a datamodel type
> will be sufficient to satisfy say a schema type
> restricting xsd:string to 3 characters or an
> enumeration of values who exceed no more that 5
> characters.
> In addition types which use these types as attributes or
> elements create a database column with the commons sql 
> OTHER datatype in their own table descriptor.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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


[jira] Updated: (XMLBEANS-104) Tables descriptors are created for simple user defined types (a type based on one of the build-in 20)

Posted by "Philip Mark Donaghy (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-104?page=history ]

Philip Mark Donaghy updated XMLBEANS-104:
-----------------------------------------

    Attachment: xmlbeans-104a.patch

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.

> Tables descriptors are created for simple user defined types (a type based on one of the build-in 20)
> -----------------------------------------------------------------------------------------------------
>
>          Key: XMLBEANS-104
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-104
>      Project: XMLBeans
>         Type: Bug
>   Components: Samples
>     Versions: unspecified
>  Environment: All
>     Reporter: Philip Mark Donaghy
>  Attachments: xmlbeans-104a.patch
>
> WRT the xmlbeans/samples/db/vxsdb sample, users should
> be aware that there is an issue. separate tables are 
> created for user defined schema types with restrictions 
> based on simple types.
> We can determine this using the getPrimitiveType method
> of SchemaType. The trick will be to use the
> SchemaType object to determine if a datamodel type
> will be sufficient to satisfy say a schema type
> restricting xsd:string to 3 characters or an
> enumeration of values who exceed no more that 5
> characters.
> In addition types which use these types as attributes or
> elements create a database column with the commons sql 
> OTHER datatype in their own table descriptor.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


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


[jira] Closed: (XMLBEANS-104) Tables descriptors are created for simple user defined types (a type based on one of the build-in 20)

Posted by "Jacob Danner (JIRA)" <xm...@xml.apache.org>.
     [ http://issues.apache.org/jira/browse/XMLBEANS-104?page=all ]
     
Jacob Danner closed XMLBEANS-104:
---------------------------------


(Visible to xmlbeans-developers)


> Tables descriptors are created for simple user defined types (a type based on one of the build-in 20)
> -----------------------------------------------------------------------------------------------------
>
>          Key: XMLBEANS-104
>          URL: http://issues.apache.org/jira/browse/XMLBEANS-104
>      Project: XMLBeans
>         Type: Bug
>   Components: Samples
>     Versions: unspecified
>  Environment: All
>     Reporter: Philip Mark Donaghy
>  Attachments: xmlbeans-104a.patch
>
> WRT the xmlbeans/samples/db/vxsdb sample, users should
> be aware that there is an issue. separate tables are 
> created for user defined schema types with restrictions 
> based on simple types.
> We can determine this using the getPrimitiveType method
> of SchemaType. The trick will be to use the
> SchemaType object to determine if a datamodel type
> will be sufficient to satisfy say a schema type
> restricting xsd:string to 3 characters or an
> enumeration of values who exceed no more that 5
> characters.
> In addition types which use these types as attributes or
> elements create a database column with the commons sql 
> OTHER datatype in their own table descriptor.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


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