Re: Inheritance not resolving

From: Michael Gentry (blacknex..mail.com)
Date: Mon Feb 26 2007 - 16:11:13 EST

  • Next message: Nick Peeples: "Re: Inheritance not resolving"

    Make sure in Cayenne Modeler, under the ObjEntity (Entity tab) for
    your subclasses, you have the Qualifier filled in. If not, that could
    be the issue.

    /dev/mrg

    On 2/26/07, Nick Peeples <nick.peeple..mail.com> wrote:
    > Yes, I have Cayenne pumping out all the logs through log4j. If I do
    > the SelectQuery for the highest class, it returns all the rows, so in
    > that regard it is working, and if i go down the chain towards the
    > bottom, the exclusion rules do kick in, and the proper classes are
    > returned. It just the lower subclasses are not being resolved to their
    > proper, lowest class.
    >
    > -Nick
    >
    > On 2/26/07, Michael Gentry <blacknex..mail.com> wrote:
    > > Do you have SQL logging turned on? That might could help quite a bit.
    > >
    > > Thanks,
    > >
    > > /dev/mrg
    > >
    > >
    > > On 2/26/07, Nick Peeples <nick.peeple..mail.com> wrote:
    > > > I am relatively new to Cayenne, but have run into a recent problem. I
    > > > am using the single-table inheritance method, and I have a few
    > > > subclasses of a generic object. According to the docs and wiki, by
    > > > default they will be generated into the lowest possible subclass, but
    > > > this doesn't seem to be happening. I can create them just fine, the
    > > > qualifiers are all setup, but when I attempt a query,
    > > > http://cayenne.apache.org/doc20/handling-inheritance.html, for the
    > > > generic class, they are not resolving. The qualifier is being set
    > > > correctly in the database.
    > > >
    > > > I am fully happy to attempt to solve this, but I don't have the
    > > > slightest where to start. So I guess my question is, where would I
    > > > start, or did i miss some obscure setting that I forgot to set?
    > > >
    > > > Thank you,
    > > > Nick
    > > >
    > > > ps - setResolvingInheritance(true) doesn't help... but as far as docs
    > > > it is the default, so I didn't expect much.
    > > >
    > >
    >



    This archive was generated by hypermail 2.0.0 : Mon Feb 26 2007 - 16:11:50 EST