Hi everyone! I have a weird problem that I haven't been able to find the answer to anywhere so I thought I'd come to the experts. I was trying to do a simple mapping of a List object (something that should be really easy!) but I keep getting an error saying I'm not matching the format specifically:
Code:
The content of element type "list" must match "(meta*,subselect?,cache?,synchronize*,comment?,key,
(index|list-index),(element|one-to-many|many-to-many|composite-element|many-to-any),loader?,sql-
insert?,sql-update?,sql-delete?,sql-delete-all?,filter*)".
This is my mapping for the list:
Code:
<list name="cause" cascade="all">
<key column = "ruleId"/>
<index column="eventId" />
<many-to-one name="Event"/>
</list>
for this line:
Code:
private List<Event> cause;
This error is really hard to decipher; I figured that everything with the question mark was optional and don't know what the stars mean. I've included the three required statements consistent with examples and (I think) the official Hibernate reference. Any help will definitely be appreciated!