Yes, Dain would be much better at this than I. My want of getting jbosscmp generation in place really stemmed from my own projects needs. I don't use compound PKs, never have. So I have no idea how you map them.
And I'm glad it's you doing this, since I proabably never would have thought of it. And the generator would still be broken after I thought I was done. -David On Sat, 08 Dec 2001, Dmitri Colebatch wrote: > replying to my own email... > > On Sat, 8 Dec 2001, Dmitri Colebatch wrote: > > > <!-- > > The foreign-key-field element declared the configuration of a foreign > > key. The field-name element must match the field-name of one of the > > primary key fields of the related element. This is similar to the > > REFERANCES clause of a SQL foreign key declaration. > > --> > > <!ELEMENT foreign-key-field (field-name, > > ((column-name, (jdbc-type, sql-type)?) | (property*)) > > )> > > > > ok, if I had've read that I should've known that... time to spend a bit > > more time in the dtd methinks.... but... > > ok... I cant see what the property* element is for. Say we have your > Application-Asset relationship, and instead of simple pks, we have the > following structure: > > Application ( vendor:String, majorVersion:int, minorVersion:int, > name:String, assets:Collection) > > Asset ( id:int, application:Application) > > so the application pk is complex of vendor, majorVersion and minorVersion. > > to fit the above dtd, we _must_ either provide the column name (why? cant > we get this from elsewhere), or 0 or more properties... ok 0 is fine, but > I cant see where I would actually provide more... unless its something to > do with DVC...? > > I'm going to proceed on the assumption that I never use the property > element. > > on another note, would Dain be in a better position to answer some of > these than you? Should I crosspost to jboss-dev? > > cheers, and thanks for your help > dim > _______________________________________________ Xdoclet-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/xdoclet-devel
