Re: more than one ObjEntity mapped to class problem

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Fri Aug 08 2008 - 17:23:23 EDT

  • Next message: Øyvind Harboe: "Re: NUMERIC default scale behaves differently on Derby & SQL Server"

    On Aug 8, 2008, at 5:17 PM, Chris Gamache wrote:

    > On Fri, Aug 8, 2008 at 3:08 PM, Andrus Adamchik <andru..bjectstyle.org
    > >wrote:
    >
    >> org.apache.cayenne.conf package classes log all startup info. So
    >> that can
    >> be used for debugging. Of course if you merge configs by hand,
    >> you'd have to
    >> implement your own logging.
    >
    >
    > I guess you're referring to the method I use to load multiple
    > configurations
    > at DataContext creation time... :) So, I dropped in a logging
    > facility into
    > my ContextCreator to iterator over the ObjEntity collection. There's
    > tons of
    > information to choose from. What would be your advice on what to
    > look for?

    Loading DataMap events.

    Or you can just shoot in the dark, and synchronize your custom config
    loading code; or implement eager loading on app startup (from a filter
    or a listener method) that will be done in a single threaded fashion.

    Andrus



    This archive was generated by hypermail 2.0.0 : Fri Aug 08 2008 - 17:23:54 EDT