You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xbean-dev@geronimo.apache.org by "Dain Sundstrom (JIRA)" <ji...@apache.org> on 2008/02/29 00:29:51 UTC

[jira] Commented: (XBEAN-96) Enum properties appear as elements not attributes in the xsd schema

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

Dain Sundstrom commented on XBEAN-96:
-------------------------------------

Can you supply a test case or example?  Alternatively, a patch :)

> Enum properties appear as elements not attributes in the xsd schema
> -------------------------------------------------------------------
>
>                 Key: XBEAN-96
>                 URL: https://issues.apache.org/jira/browse/XBEAN-96
>             Project: XBean
>          Issue Type: Bug
>          Components: spring
>            Reporter: alex322
>
> XsdGenerator makes a decision on whether a property is going to be an attribute or an element  based on Util.isSimpleType
> isSimpleType doesn't have a specific check for Enums.
> Moreover I think it may make sense to allow attributes for complex properties to support references:
> <util:list id="mylist"....
> <my:mybean id="mybean" list="#mylist"/>

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