Thanks for the help! I was looking at that scenario. Wasn't able to get it quite working and then i found that since my only extra attribute in the class was the key to the map, i went back to the simple. I guess i overcomplicated my requirement.
Code:
<map name="addressMap" table="PARTY_ADDRESS" lazy="true">
<key column="partyID"/>
<index
column="addressType"
type="integer"
/>
<many-to-many column = "addressID" class="test.persist.Address"/>
</map>
using many to many and it worked flawlessly. Thanks for the help. In my day or 2 of finding and trying this product out, i am extremely impressed.
This will definately solve our problems. I will now turn my attention to designing a DAO abstraction for our model suitable for our application.
Looking forward to working with it.