Dozer – boolean mapping issue – resolved

Problem Statement:
http://sourceforge.net/tracker/index.php?func=detail&aid=2893120&group_id=133517&atid=727368

================================================================================================

Here is a statement from wsdl2java that may help.

http://www.coderanch.com/t/550457/Web-Services/java/wsdl-java-replace-primitives
If the WSDL says that an object can be nillable, that is the caller may choose to return a value of nil, then the primitive data types are replaced by their wrapper classes, such as Byte, Double, Boolean, etc.

http://ws.apache.org/axis/java/user-guide.html#HowYourJavaTypesMapToSOAPXMLTypes

================================================================================================

This is not working as specified

http://dozer.sourceforge.net/documentation/simpleproperty.html
Recursive Mapping (bi-directional)

Dozer supports full Class level mapping recursion. If you have any complex types defined as field level mappings in your object, Dozer will search the mappings file for a Class level mapping between the two Classes that you have mapped. If you do not have any mappings, it will only map fields that are of the same name between the complex types.

================================================================================================

Final Solution

<field>
<a is-accessible=”true”>fieldName</a>
<b is-accessible=”true”>fieldName</b>
</field>

OR

<!–
<field>
<a get-method=”getfieldName”>fieldName</a>
<b set-method=”setfieldName”>fieldName</b>
</field>
–>

================================================================================================

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s