Hi,
I managed recently to map a Hashmap of 2 string into 2 database tables.
I need to Map a property which is a Hashmap of other persistent class :
Code:
classA
-----------
a_ID,
Hashmap myHM <-- hashmap of : (index=b_id , value=classB)
property1
property2
property3
classB
---------
b_ID,
property1
property2
property3
I dont know how to approach that ! should I create 3 tables in schema ?
can i manage that only with 2 ?
will i be able save object of classB only by saving classA ???
how should my tables look like ? should I use Blob to save the ClassB in the blob like :
<map name="myHM" table="CLASS_BP">
<key column="MAP_ID"/>
<index column="MAP_IDX" type="string"/>
<element column="MAP_VALUE" type="????"/>
</map>
I will appreciate any help......