Re: Cayenne and WebServices

From: Cris Daniluk (cris.danilu..mail.com)
Date: Wed Jan 11 2006 - 12:00:19 EST

  • Next message: Andrus Adamchik: "Re: Cayenne Remote Object Persistence"

    It is all velocity based... there are a few examples of templates in the wiki.

    Cris

    On 1/11/06, Dov Rosenberg <dov.rosenber..onviveon.com> wrote:
    > I took a look at the BeanUtils stuff and saw something called DynaBeans that
    > look like they might be useful in creating my beans from Cayenne
    > DataObjects.
    >
    > Are there any docs on making changes to the template generator anywhere? Any
    > samples would be useful.
    >
    >
    >
    >
    > On 1/11/06 11:44 AM, "Cris Daniluk" <cris.danilu..mail.com> wrote:
    >
    > >> 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 - 12:00:21 EST