Define composite keys in reactor config (repost)

0 views
Skip to first unread message

Dave Phipps

unread,
Sep 4, 2009, 4:29:10 PM9/4/09
to reactor-users
Hi,

I know that Reactor supports composite primary keys but how do you
define this in reactor config. Do I do this:

object name=tblParAtt
hasOne name=tblParish
relate from=ParishRef to=ParishRef
/hasOne
hasOne name=tblPerson
relate from=UniqueNo to=UniqueNo
/hasOne
/object

or this

object name=tblParAtt
hasMany name=tblParish
relate from=ParishRef to=ParishRef
/hasMany
hasMany name=tblPerson
relate from=UniqueNo to=UniqueNo
/hasMany
/object

or a different way altogether?

Individually the the primary keys may appear more than once but as a
composite they are unique. Does reactor know this from the 2 hasOne's?

Cheers,

Dave

Reply all
Reply to author
Forward
0 new messages