Just a strange little thing - a List mapping with many-to-many for it's children has to have a key element. (At least it does according to my xml validator, and when I remove it and run SchemaExport, it crashes, so I assume it does). But the key element in the mapping is used to specify a collections parent.
Now, when I use SchemaExport, the key column doesn't appear anywhere in the database (as it shouldn't). It's just weird that it's required. Is this just a limitation of a dtd? (you can't specify different required properties for a tag based on tags within that tag - ie many-to-many opposed to one-to-many)
|