Hi,
I just started work on hibernate with struts 2 using weblogic & Oracle. I have following requirements
6 tables - Product(id, name) , Report(id, name) , Package(id, name) , Class(id, name) , Methods(id, name), data(id, error)
1 relation table - Product_Reference ( product_id, report_id, pkg_id, class_id, mtd_id, data_id)
All mapping define in product_reference tables. Also, they tree data structure - Product have reports, reports have packages, packages have classes and so on.
what will be the optimum mapping for them while saving data or fetching through Hibernate. How we can define best mapping in *.hbm.xml file.
Please, could you drive me in above problem. Thanks in advance.
|