Details
-
Type:
Bug
-
Status:
Open
-
Priority:
Major
-
Resolution: Unresolved
-
Affects Version/s: 1.2.6
-
Fix Version/s: None
-
Component/s: Aegis Module
-
Labels:None
-
Environment:PC
-
Number of attachments :
Description
When I get my hashmap, the value of a key is not null but an empty string. However, it is initialized with null values.
Here is my mapping file in order to map my HashMap :
<mappings>
<mapping>
<property name="myAttribute1" keyType="...MyEnum1" componentType="java.lang.String" />
</mapping>
</mappings>
For information, the key of my hashmap is an Enum.
Why do I have empty strings when I receive my request?
Thanks in advance.
The map defined like this : "String / String" allows to have a null value in a value of the map.
But if i add this mapping file (aegis.xml):
<mappings>
<mapping>
<property name="myAttribute1" keyType="java.lang.String" componentType="java.lang.String" />
</mapping>
</mappings>
So i have the same problem , the String is empty rather than null.