Re: "map" properties?

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Tue Jan 16 2007 - 08:17:22 EST

  • Next message: Bryan Lewis: "modeler command line"

    > Does that make sense?

    yes

    > Am I the only one who thinks that would be incredibly useful? :)

    I do too ;-)

    > Is something like this already planned for 3.0?

    yes. In fact JPA spec that we are working on supports this type of
    mapping. So Cayenne will too.

    Cheers,
    Andrus

    On Jan 16, 2007, at 7:14 AM, Robert Zeigler wrote:

    > Currently (to the best of my knowledge), cayenne always represents a
    > to-many relationship as a java.util.List. However, I was thinking it
    > would be nifty if cayenne supported map-representations of to-many
    > relationships. For instance, you could model a relationship between
    > Users and UserPreferences as a map, and specify the "name" property of
    > the UserPreferences table as the map key. Does that make sense? Am I
    > the only one who thinks that would be incredibly useful? :) Is
    > something
    > like this already planned for 3.0?
    > If other people would find it useful, then I'd be happy to submit a
    > feature request and also work up a patch.
    >
    > Robert
    >



    This archive was generated by hypermail 2.0.0 : Tue Jan 16 2007 - 08:17:52 EST