[jifty-devel] Regarding refers_to and by on JDBI columns
Jesse Vincent
jesse at bestpractical.com
Mon Jul 16 20:23:52 EDT 2007
On Jul 16, 2007, at 3:05 PM, Andrew Sterling Hanenkamp wrote:
> Yes. The goal is one-to-one record-to-record references.
>
> I'm working on some profile customization code for CAS+ using
> database backed models. I was working on the relationship stuff
> when I discovered that one-to-one relationships with back-
> references isn't supported by JDBI. It seemed like a missing
> feature to me.
>
> If JDBI doesn't support one-to-one back references, I'll just put
> them in as regular subroutines on the generated CAS+ profile
> classes. I just wanted to see if I should implement it in JDBI
> first, then virtual-models, and then CAS+ or if it was just going
> into CAS+.
>
Automated backreferences are good, but need some thought to make them
intuitive. (IE, I worry a bit about looking in Bar.pm for ->foo and
not seeing it but having it autogenerated because Foo.pm has ->bar.
-jesse
-------------- next part --------------
A non-text attachment was scrubbed...
Name: PGP.sig
Type: application/pgp-signature
Size: 186 bytes
Desc: This is a digitally signed message part
Url : http://lists.bestpractical.com/pipermail/jifty-devel/attachments/20070716/0235bcb3/PGP.pgp
More information about the jifty-devel
mailing list