-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: List and many-to-many curiousity
PostPosted: Fri Oct 03, 2003 3:06 am 
Beginner
Beginner

Joined: Mon Sep 15, 2003 6:55 pm
Posts: 29
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)


Top
 Profile  
 
 Post subject:
PostPosted: Fri Oct 03, 2003 3:22 am 
Beginner
Beginner

Joined: Mon Sep 15, 2003 6:55 pm
Posts: 29
My mistake, that key column is showing up in the bridge table...it's still very odd that it shows up with a many to many mapping?...


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.