cxf-issues mailing list archives

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


Benson Margulies commented on CXF-2382:

Oh, dear. What makes you think that hanging an @XmlElement on a private member will have any
effect at all? It belongs on the getter or the setter, I'll let you know which in a moment.

> Problem with annotations in Aegis & CXF
> ---------------------------------------
>                 Key: CXF-2382
>                 URL:
>             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:
> 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
> 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
> because new fields are added and so, but there are no changes when I set nillable=true
> 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.

View raw message