Uploaded image for project: 'XMLBeans'
  1. XMLBeans
  2. XMLBEANS-104

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • unspecified
    • None
    • Samples
    • None
    • All

    Description

      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.

      Attachments

        1. xmlbeans-104a.patch
          1 kB
          Philip Mark Donaghy

        Activity

          People

            Unassigned Unassigned
            donaghy Philip Mark Donaghy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: