cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benson Margulies (JIRA)" <j...@apache.org>
Subject [jira] Commented: (CXF-2382) Problem with annotations in Aegis & CXF
Date Wed, 05 Aug 2009 22:39:14 GMT

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

Benson Margulies commented on CXF-2382:
---------------------------------------

Put the annotation on the get method and all will be well. I'm checking in a unit test of
this.

> Problem with annotations in Aegis & CXF
> ---------------------------------------
>
>                 Key: CXF-2382
>                 URL: https://issues.apache.org/jira/browse/CXF-2382
>             Project: CXF
>          Issue Type: Bug
>          Components: Aegis Databinding
>    Affects Versions: 2.2.2
>         Environment: apache-cxf-2.2.2, apache-tomcat-5.5.27, java 1.6.0_10
>            Reporter: Alexey Moskvin
>            Assignee: Benson Margulies
>         Attachments: test_project.zip
>
>
> I am using cxf 2.2 with aegis. Here is a part of my spring config:
> <bean id="aegisBean" class="org.apache.cxf.aegis.databinding.AegisDatabinding" scope="prototype">
>  		<property name="configuration"> 
>  			<bean class="org.apache.cxf.aegis.type.TypeCreationOptions"> 
>  				<property name="defaultNillable" value="false"/>
>  			</bean> 
>  		</property> 			  
>  	</bean>
> So by default all members of classes/parameters of methods are with micOccures="0" and
without
> nillable="true".
> I need to make some fields of classes nillable.
> I added annotation like this:
> class C{
>  @XmlElement(nillable=true) private Calendar cal;
> ..}
> but there are no any changes in WSDL (it is still without nillable=true). Changes are
deployed,
> because new fields are added and so, but there are no changes when I set nillable=true
with
> annotations. Also I try to use other parameters of this annotation like minOccures, defaultValue,
> and it don't work to.

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


Mime
View raw message