Hello,
I have the below tables where the relation between CUST and DATA is ONE-TO-MANY.
My ultimate goal is to populate the FeedData Object for one of the records in the CUST table.
I'm new to creating Hibernate mappings so I'm a bit confused how I go about creating my hbm file for this setup.
Any suggestions would be greatly appreciated. Thanks.
TABLE: CUST
fId (PK)
name
sid
TABLE: DATA
ruleId (PK)
rule1
rule2
result1
result2
operator
fId (FK)
FeedVal Object
-rule1
-rule2
-result1
-result2
-operator
FeedData Object
-fId
-name
-sid
-Map<ruleId, FeedVal>
|