has_a with complex primary keys

[prev] [thread] [next] [Date index for 2004/10/08]

From: Ricardo SIGNES
Subject: has_a with complex primary keys
Date: 19:08 on 08 Oct 2004
--2feizKym29CxAecD
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable


I'm attempting to CDBI-ify a legacy system, which has some tables like
this:

 batch: ( *batchid, ... )
 unit : ( *batchid, *unitid, ... )
 test : ( *batchid, *unitid, *testid, ... )

The stars denote PK columns.

It's easy to say that Unit->has_a(batchid =3D> 'Batch')

I can't seem to say, though, that test->has_a(? =3D> 'Unit')

Is this possibly, using some semantics that I haven't managed to
decypher, or am I going to need to hack about in there?

--=20
rjbs

--2feizKym29CxAecD
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.7 (GNU/Linux)

iD4DBQFBZuWZ5IEwYcR13KMRAgUtAJ0UonHGhCi1etnw4nuwQ9B0QNGzvACWI2NO
Hc5743M8d6imnxtdFRZqng==
=g6wZ
-----END PGP SIGNATURE-----

--2feizKym29CxAecD--

has_a with complex primary keys
Ricardo SIGNES 19:08 on 08 Oct 2004

Re: has_a with complex primary keys
Ricardo SIGNES 21:13 on 08 Oct 2004

Re: has_a with complex primary keys
Y00R0B0T 21:55 on 08 Oct 2004

Generated at 11:34 on 01 Dec 2004 by mariachi v0.52