Re: how to add a column

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Sat Apr 11 2009 - 05:23:13 EDT

  • Next message: Adrian A.: "Re: maven plugin for importing DB schema"

    I think ClassDescriptors fails to refresh... Looks like we need to
    reset it inside EntityResolver.clearCache() (as well as
    callbackRegistry). Could you experiment with that and commit it if it
    works?

    Andrus

    On Apr 11, 2009, at 1:08 AM, Tore Halset wrote:

    > Btw. This is all by code in runtime.
    >
    > - Tore.
    >
    > On Apr 11, 2009, at 0:01, Tore Halset <halse..vv.ntnu.no> wrote:
    >
    >> Hello.
    >>
    >> I am adding a DbAttribute and a ObjAttribute to the model, but
    >> there seem to be something missing. getAttribute() on the DbEntity
    >> and ObjEntity return the correct attributes, but SelectQueries does
    >> not include the new column. I have tried to create a new
    >> DataContext and clearing the cache in the EntityResolover, but
    >> still no luck.
    >>
    >> What am I doing wrong?
    >>
    >> Regards,
    >> - Tore.
    >>
    >



    This archive was generated by hypermail 2.0.0 : Sat Apr 11 2009 - 05:24:10 EDT