HI All,
Thanks for your effort to clarify my doubts.
but now also the performance is same. no improvement.
First of all it takes time for one page, where there is no relationship between two tables.
so i am calling two dao's. getting the
id and then pass it to another dao method to get that object.
i am not sure the performance is because of hibernate or the tomcat server which i am using???
anyway thanks you so much.
meantime i have one more doubt.i posted in forum but no response.
My doubt is there are 2 tables. One parent and one child table. child table does not have the primary field . It has only foreign field since it is a child table.
so how will you map the <id> attribute in
child.xml file.
what i did was i simply mapped another column in
<id> attribute of
child.xml. That is no where related.
eg:
Code:
<class name="Child" table="child" discriminator-value="Child">
<id name="status" column="STATUS" type="string">
</id>
<many-to-one name="parent" column="ID" insert="false" update="false" class="Parent"/>
<!--property name="status" column="STATUS" not-null="false" type="string"/-->
<property name="message" column="MESSAGE" not-null="false" type="string"/>
</class>
here
status is one column in chid table . it is not a primary column or foreign column or unique column.
Anyway i got the desired output. But i am not sure this is right or wrong??
please let me know.......
i really appreciate you. thanks for your effort.