On 9 Nov 01, at 15:13, Dain Sundstrom wrote: > this yet. I'm considering supporting the mapping a cmp-field to the same > column as a cmr-field, but this opens a big can of worms. Most of the
Hi Dain, For what it's worth, this is how I do it in the MVCSoft Persistence Manager, and just have some special handling when moving state back and forth from the db. Of course, there are worms (consequences), but I think these are unavoidable. For instance, because you can not change the value of an entity primary key, you can not change the relationship participation of an entity with this mapping. Anyway, it doesn't seem like the spec gives a lot of options here. :-) -Dan > interesting database fk mappings are not supported in JBossCMP yet (like not > null foreign keys). When I rewrite the cmr code the first time (I always > expect to write code 3 times) I plan on supporting the interesting fk > mappings. > > -dain > > -----Original Message----- > From: Ken Chang [mailto:[EMAIL PROTECTED]] > Sent: Friday, November 09, 2001 10:49 AM > To: [EMAIL PROTECTED] > Subject: [JBoss-dev] fk in compound pk > > > this question bothers me for quite sometime now > > is it true that if i want to have fk in compound pk, i need to ditch the cmr > field for the fk so no fk relationship can be maintained (e.g. even the fk > does not exsist as a pk in coresponding table, and container managed cascade > delete wont be possible too)? > > Ken > > _______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development