cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-7200) wadl2java does not see generated classes with jaxb:nameXmlTransform
Date Fri, 24 Feb 2017 10:49:44 GMT

    [ https://issues.apache.org/jira/browse/CXF-7200?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15882441#comment-15882441
] 

Sergey Beryozkin commented on CXF-7200:
---------------------------------------

The problem is I can not see how WADL SourceGenerator can be aware of the fact that a custom
prefix is added to the generated classes - it would need to parse and understand the jaxb
binding files. Though may be a wadl2java parameter can be added, ex, "jaxbClassNamePrefix",
that might work, I'll check  

> wadl2java does not see generated classes with jaxb:nameXmlTransform 
> --------------------------------------------------------------------
>
>                 Key: CXF-7200
>                 URL: https://issues.apache.org/jira/browse/CXF-7200
>             Project: CXF
>          Issue Type: Improvement
>          Components: JAXB Databinding
>    Affects Versions: 3.1.9
>            Reporter: Vjacheslav Borisov
>            Assignee: Freeman Fang
>            Priority: Minor
>
> wadl2java does not see generated classes with jaxb:nameXmlTransform enabled 
> E.g. If i want to add suffix DTO to all generated classes, wadl2java stops finding them
> Example config 
> <jaxb:schemaBindings>
>         <jaxb:nameXmlTransform>
>             <jaxb:elementName suffix="DTO" />
>             <jaxb:typeName suffix="DTO" />
>             <jaxb:anonymousTypeName suffix="DTO"/>
>         </jaxb:nameXmlTransform>    
>     </jaxb:schemaBindings>    
> Without this setting i see generated  method
> ...
>     Test list();
> ...
> With this setting expected to see 
>     TestDTO  list();
> but I see 
> Response list();
> This is example project 
> https://github.com/slavb18/namexmltransform
> schemas here  https://github.com/slavb18/namexmltransform/tree/master/src/main/resources/schemas/test



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message