hi,
to read a value from another table i have created a formula field.
<property
name = "part_category_desc"
formula = "(select part_category_master.part_category_desc from part_category_master as part_category_master,item_master as item_master where part_category_master.part_category_id= item_master.part_category_id)"/>
Hibernate asks for getter and setter for part_category_desc property,
which is not needed for formula properties.
if i placed a getter / setter then Hiberbnate, gives the following message:
net.sf.hibernate.QueryException: could not resolve property: part_category_desc of: apparelxml.item_master [select item_master.part_category_desc from apparelxml.item_master as item_master]
(Hibernate is looking in database ? )
on dos console no error is displayed. i am using Hiber8Ide .
If i removed the formula field , maps for both the tables work ok.
Thanks in advance for any help.
iyyappan
|