Re: [jira] Created: (CAY-1014) Enums as meaningful PK

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Thu Mar 20 2008 - 12:15:12 EDT

  • Next message: Aristedes Maniatis: "Re: performQuery generics"

    On Mar 20, 2008, at 3:34 PM, Michael Gentry wrote:

    > I can see an argument
    > being made where the table PKs are States, Countries, etc that you
    > want to map to an enum.

    Yeah, I for instance have a situation with a read-only user role
    table, with role name being a PK. I want each role to be an enum, not
    a string (e.g. to do "switch" statements, or associate some code with
    each role). Still if we decide it is not worth it, that'll be fine
    with me.

    > Would you like me to look at this, too?

    Would be nice.

    Andrus



    This archive was generated by hypermail 2.0.0 : Thu Mar 20 2008 - 12:15:47 EDT