Re: Extended Enumerations

From: Michael Gentry (blacknex..mail.com)
Date: Mon Feb 25 2008 - 15:04:00 EST

  • Next message: Aristedes Maniatis: "Re: Extended Enumerations"

    I can play around with the first suggestion later this week. I'm not
    adamant either way. I just want what is best for the end-user, even
    if the underlying Cayenne code is a bit more complex.

    Changing the method name to getDatabaseValue() is fine.

    Thanks,

    /dev/mrg

    On Mon, Feb 25, 2008 at 11:47 AM, Kevin Menard <kmenar..ervprise.com> wrote:
    > Right. What I was suggesting was being able to do:
    >
    > public interface MyInterface extends ExtendedEnumeration<String>
    > {
    > public String databaseValue();
    > }
    >
    > And the Cayenne bit could just accept Object anyway.
    >
    > As another suggested improvement, it'd probably be useful to rename
    > databaseValue to adhere to the JavaBeans naming convention. It would
    > make introspection a bit easier.
    >
    > --
    >
    > Kevin Menard
    > Servprise International, Inc.
    > Remote reboot & power control for your network
    > www.servprise.com +1 508.892.3823 x308



    This archive was generated by hypermail 2.0.0 : Mon Feb 25 2008 - 15:04:42 EST