[jira] Created: (XBEAN-136) xsd generator needs to be aware of @org.apache.xbean.Property propertyEditor feature so that types with propertyEditors are mapped to strings

View: New views
6 Messages — Rating Filter:   Alert me  

[jira] Created: (XBEAN-136) xsd generator needs to be aware of @org.apache.xbean.Property propertyEditor feature so that types with propertyEditors are mapped to strings

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

xsd generator needs to be aware of @org.apache.xbean.Property propertyEditor feature so that types with propertyEditors are mapped to strings
---------------------------------------------------------------------------------------------------------------------------------------------

                 Key: XBEAN-136
                 URL: https://issues.apache.org/jira/browse/XBEAN-136
             Project: XBean
          Issue Type: Bug
          Components: spring
    Affects Versions: 3.5
            Reporter: Gary Tully


with {code}+    /**
+    * @org.apache.xbean.Property propertyEditor="org.apache.xbean.spring.example.MilliLittersPropertyEditor"
+    */
+    public void setVolumeWithPropertyEditor(long volume) {
+     this.volume = volume;
+    }
{code}
the generated xsd needs to map the attribute type to string to allow "X ml" to be valid against the schema. Otherwise, any xml that uses the string representation and utilises the propertyEditor will not validate.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (XBEAN-136) xsd generator needs to be aware of @org.apache.xbean.Property propertyEditor feature so that types with propertyEditors are mapped to strings

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/jira/browse/XBEAN-136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gary Tully updated XBEAN-136:
-----------------------------

    Attachment: xbean-136.diff.patch

patch that provides a test and fix such that the generated xsd, wiki and html represent attributes with a propertyEditor as xs:string thus alowing scheams that make use of the feature to validate.

> xsd generator needs to be aware of @org.apache.xbean.Property propertyEditor feature so that types with propertyEditors are mapped to strings
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: XBEAN-136
>                 URL: https://issues.apache.org/jira/browse/XBEAN-136
>             Project: XBean
>          Issue Type: Bug
>          Components: spring
>    Affects Versions: 3.5
>            Reporter: Gary Tully
>         Attachments: xbean-136.diff.patch
>
>
> with {code}+    /**
> +    * @org.apache.xbean.Property propertyEditor="org.apache.xbean.spring.example.MilliLittersPropertyEditor"
> +    */
> +    public void setVolumeWithPropertyEditor(long volume) {
> +     this.volume = volume;
> +    }
> {code}
> the generated xsd needs to map the attribute type to string to allow "X ml" to be valid against the schema. Otherwise, any xml that uses the string representation and utilises the propertyEditor will not validate.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (XBEAN-136) xsd generator needs to be aware of @org.apache.xbean.Property propertyEditor feature so that types with propertyEditors are mapped to strings

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ https://issues.apache.org/jira/browse/XBEAN-136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12752164#action_12752164 ]

Gary Tully commented on XBEAN-136:
----------------------------------

fyi: this is relevant to activemq.xml auto generation: https://issues.apache.org/activemq/browse/AMQ-2342

> xsd generator needs to be aware of @org.apache.xbean.Property propertyEditor feature so that types with propertyEditors are mapped to strings
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: XBEAN-136
>                 URL: https://issues.apache.org/jira/browse/XBEAN-136
>             Project: XBean
>          Issue Type: Bug
>          Components: spring
>    Affects Versions: 3.5
>            Reporter: Gary Tully
>         Attachments: xbean-136.diff.patch
>
>
> with {code}+    /**
> +    * @org.apache.xbean.Property propertyEditor="org.apache.xbean.spring.example.MilliLittersPropertyEditor"
> +    */
> +    public void setVolumeWithPropertyEditor(long volume) {
> +     this.volume = volume;
> +    }
> {code}
> the generated xsd needs to map the attribute type to string to allow "X ml" to be valid against the schema. Otherwise, any xml that uses the string representation and utilises the propertyEditor will not validate.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (XBEAN-136) xsd generator needs to be aware of @org.apache.xbean.Property propertyEditor feature so that types with propertyEditors are mapped to strings

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/jira/browse/XBEAN-136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Jencks reassigned XBEAN-136:
----------------------------------

    Assignee: David Jencks

> xsd generator needs to be aware of @org.apache.xbean.Property propertyEditor feature so that types with propertyEditors are mapped to strings
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: XBEAN-136
>                 URL: https://issues.apache.org/jira/browse/XBEAN-136
>             Project: XBean
>          Issue Type: Bug
>          Components: spring
>    Affects Versions: 3.5
>            Reporter: Gary Tully
>            Assignee: David Jencks
>         Attachments: xbean-136.diff.patch
>
>
> with {code}+    /**
> +    * @org.apache.xbean.Property propertyEditor="org.apache.xbean.spring.example.MilliLittersPropertyEditor"
> +    */
> +    public void setVolumeWithPropertyEditor(long volume) {
> +     this.volume = volume;
> +    }
> {code}
> the generated xsd needs to map the attribute type to string to allow "X ml" to be valid against the schema. Otherwise, any xml that uses the string representation and utilises the propertyEditor will not validate.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (XBEAN-136) xsd generator needs to be aware of @org.apache.xbean.Property propertyEditor feature so that types with propertyEditors are mapped to strings

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


     [ https://issues.apache.org/jira/browse/XBEAN-136?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Jencks closed XBEAN-136.
------------------------------

       Resolution: Fixed
    Fix Version/s: 3.6

Patch applied rev 812229, thanks gary!

> xsd generator needs to be aware of @org.apache.xbean.Property propertyEditor feature so that types with propertyEditors are mapped to strings
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: XBEAN-136
>                 URL: https://issues.apache.org/jira/browse/XBEAN-136
>             Project: XBean
>          Issue Type: Bug
>          Components: spring
>    Affects Versions: 3.5
>            Reporter: Gary Tully
>            Assignee: David Jencks
>             Fix For: 3.6
>
>         Attachments: xbean-136.diff.patch
>
>
> with {code}+    /**
> +    * @org.apache.xbean.Property propertyEditor="org.apache.xbean.spring.example.MilliLittersPropertyEditor"
> +    */
> +    public void setVolumeWithPropertyEditor(long volume) {
> +     this.volume = volume;
> +    }
> {code}
> the generated xsd needs to map the attribute type to string to allow "X ml" to be valid against the schema. Otherwise, any xml that uses the string representation and utilises the propertyEditor will not validate.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (XBEAN-136) xsd generator needs to be aware of @org.apache.xbean.Property propertyEditor feature so that types with propertyEditors are mapped to strings

by JIRA jira@apache.org :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


    [ https://issues.apache.org/jira/browse/XBEAN-136?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12753518#action_12753518 ]

Gary Tully commented on XBEAN-136:
----------------------------------

david, can you make a snapshot of 3.6 available? thx. would like to make a activemq 5.3 snapshot available with the auto generated schemas.

> xsd generator needs to be aware of @org.apache.xbean.Property propertyEditor feature so that types with propertyEditors are mapped to strings
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: XBEAN-136
>                 URL: https://issues.apache.org/jira/browse/XBEAN-136
>             Project: XBean
>          Issue Type: Bug
>          Components: spring
>    Affects Versions: 3.5
>            Reporter: Gary Tully
>            Assignee: David Jencks
>             Fix For: 3.6
>
>         Attachments: xbean-136.diff.patch
>
>
> with {code}+    /**
> +    * @org.apache.xbean.Property propertyEditor="org.apache.xbean.spring.example.MilliLittersPropertyEditor"
> +    */
> +    public void setVolumeWithPropertyEditor(long volume) {
> +     this.volume = volume;
> +    }
> {code}
> the generated xsd needs to map the attribute type to string to allow "X ml" to be valid against the schema. Otherwise, any xml that uses the string representation and utilises the propertyEditor will not validate.

--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.