Newbie Question: Mapping a Collection of Strings

From: Bret Gregory (bmg12..ahoo.com)
Date: Tue Aug 25 2009 - 22:08:22 EDT

  • Next message: Matt Kerr: "Re: Newbie Question: Mapping a Collection of Strings"

    I have a DB that looks something like this:

    Product
    -ProductId
    -Description

    Keyword
    -ProductId
    -Keyword

    Where Product -> Keyword is 1:N and Keyword has a FK rel back to Product.

    I would like the object model to look something like this:

    Product
    -(String) _description
    -(List<String>) _keywords

    Is it possible to map collections of simple objects and have them persisted by Cayenne? Seems like this would be a pretty common request, but
    I am not seeing a way to do this in the modeler.

          



    This archive was generated by hypermail 2.0.0 : Tue Aug 25 2009 - 22:09:20 EDT