Re: Cayenne and WebServices

From: Cris Daniluk (cris.danilu..mail.com)
Date: Wed Jan 11 2006 - 11:44:04 EST

  • Next message: Dov Rosenberg: "Re: Cayenne and WebServices"

    > Within the Cayenne framework (or EOF) the relationships from Site to User
    > and User to Role and Role to Permission are faulted and not retrieved until
    > needed or accessed.

    Yeah, the default behavior could be dangerous as far as relationships.
    However, if you include the relationships in the WSDL definition, they
    should be pre-faulted when WSDL generates the XML response.
    Prefetching may also be helpful...

    > Ideally the Cayenne modeler would create a Bean class that represents the
    > data for a DataObject and populates it without populating the relationships.

    Again, if you do decide to go with beans, you could definitely
    generate them using an alternate superclass template. It would be a
    bit of a hack in 1.1, but 1.2's enhancements should make it a breeze.

    Cris



    This archive was generated by hypermail 2.0.0 : Wed Jan 11 2006 - 11:44:06 EST