Thanks Murugesan!
I have one more problem now using stateless session.
I am trying to save my object Quote in database. whcih is as follows:
Code:
Class Quote{
String source;
SortedMap bids = new TreeMap();
}
and mapping file for quote is as follows:
Code:
<class name="Quote" table="QUOTE">
<id name="id" column="QUOTE_ID">
<generator class="sequence">
<param name="sequence">seq1</param>
</generator>
</id>
<property name="source" column="source"/>
<map name="bids" table="BIDS" sort="natural">
<key column="quote_id"/>
<index column="price"/>
<property name="type"/>
</map>
</class>
Now problem is when I am saving my quote, its inserting values only in quote table, QUOTES and no values are inserted in table for map i.e. BIDS.
Any idea why?
Please give me your inputs.
Thanks.