For example, Should I use join-subclass or something else? Table Rule has a primary key pair RuleTypeKey and Key Table Risk_Group refers Table Rule's Primary Key pair as foreign key but only Key as its Primary key.
--------------Below is my mapping file for ----------------- But I always get exception as org.hibernate.MappingException: broken column mapping for: riskGroup.id of: Rule
join-subclass is for mapping inheritance. So you have a Java Objec thtat extends another Java Object.
So the Parent has "fields" that the children want to inherit.
Then it becomes a decision based on how the tables are defined. Is there just one table, or for each subclass there is a seperate table. Or is the database third normal form.