You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Benson Margulies (JIRA)" <ji...@apache.org> on 2009/08/06 00:11:14 UTC
[jira] Commented: (CXF-2382) Problem with annotations in Aegis &
CXF
[ https://issues.apache.org/jira/browse/CXF-2382?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12739784#action_12739784 ]
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: 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.