Re: Incorrect Insert-Statement Order After Deleting All Objects

From: Andrus Adamchik (andru..bjectstyle.org)
Date: Mon Dec 18 2006 - 05:17:40 EST

  • Next message: Øyvind Harboe: "Persistent properties in Tapestry & Cayenne => NPE sometimes"

    On Dec 18, 2006, at 12:51 PM, Peter Karich wrote:

    > So, is there a reset 'button'?

    Yes, you can restart the entire stack:

    Configuration.getSharedConfiguration().shutdown();
    Configuraion.initializeSharedConfiguration();

    This will shutdown the stack and re-read all mapping files. But this
    kind of reset won't work if you are changing DataMaps in memory.

    >> you will need to reset the EntitySorter on DataDomain.
    >> Unfortunately DataDomain.setEntitySorter(..) is not public in 1.2,
    > Is this easier in another version >1.2.1 ?

    No. But it is fairly easy as it is.

    Andrus



    This archive was generated by hypermail 2.0.0 : Mon Dec 18 2006 - 05:18:05 EST