Hi,
I've got a pretty strange problem using Maps on DB2400Dialect.
I've got a very simple component mapping:
Code:
<class name="ArticleImpl" table="V30">
<id name="articleNo" type="java.lang.String" column="V300010">
<generator class="assigned" />
</id>
...
<map name="articleNames" table="V30_01">
<key column="V3001_001" not-null="true"/>
<map-key column="V3001_002" type="java.lang.String" length="3"></map-key>
<element column="V3001_003" length="30" type="string"></element >
</map>
Mapping Article to different article names (in different languages). This works fine as long as the my primary key column has the full length (of 7 chars). But I also got some article which have have only 5 chars (on both tables).
Cause of some pretty strange handling of the AS/400 Driver/Dialect the properties seems to be filled up with blanks (Article "12345" becomes "12345 "). So the HashMap handling seems to get into problems and my articleNames Map is always empty.
The problem only occurs on iSeries maschines and only with articleNo whos article Names are filled up.
Any ideas or solutions to get the articleNames filled?
Joerg
Hibernate version: 3.05