cayenne-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Schröder <>
Subject AW: "map" properties?
Date Tue, 16 Jan 2007 08:26:46 GMT
hi robert,

what do you need a name for? 
you get cayenne-objects from that relationship whom you can access via getters and setters?!

-----Urspr√ľngliche Nachricht-----
Von: Robert Zeigler [] 
Gesendet: Dienstag, 16. Januar 2007 05:14
Betreff: "map" properties?

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.


View raw message