Mapping Bag in Collection Mapping (using xml file)
If our tireless class has List object, we can outline List by rundown or pack component in the mapping record. The sack is much the same as List however it doesn't require list component.
Here, we are utilizing the situation of Forum where one inquiry has various answers.
Let's see how we can implement the bag in the mapping file:
Example of mapping sack in gathering mapping
In this precedent, we are going to see full case of gathering mapping by pack. This is the case of sack on the off chance that it stores esteem not substance reference that is for what reason are going to utilize element rather than one-to-many. On the off chance that you have seen the case of mapping show, it is same in all cases rather mapping record where we are utilizing sack rather than rundown.
1) Create the Persistent class
This persistent class defines properties of the class including List.