cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Gentry <>
Subject Re: Ashwood Issues
Date Mon, 25 Jul 2011 11:43:38 GMT
On Mon, Jul 25, 2011 at 3:15 AM, Andrus Adamchik <> wrote:
> Is this going to be a general purpose sorter or something specifically targeting your
model? I.e. can we use it in Cayenne as a second generation sorter that does all AshwoodEntitySorter
does, plus handles extra scenarios?

That is my intention.  There is nothing in it specific to the model
that is causing us grief with Ashwood, but I am trying to fix what
isn't working for us with Ashwood and hope it will work for all other
models, too.  I'll have to get my customer to file a Corporate CLA,
though, to officially commit it as a second sorter.  Even though I
worked on it on my own time over the weekend, they are also paying for
me to work on it as a fix to our current commit issues.

> Now overriding standard services in DI runtime for unit tests can be done by patching
org.apache.cayenne.unit.di.server.ServerRuntimeProvider. See an inner class called ServerExtraModule.
This is where you'd bind your sorter.

Awesome, thanks!  It might be another day or two before I get to it,
but I definitely want to try it against all of the current Cayenne


> On Jul 25, 2011, at 3:10 AM, Michael Gentry wrote:
>> I'm working on a replacement for AshwoodEntitySorter.  I currently
>> have it sorting the DbEntities correctly (at least in my test case).
>> I next need to work on sortObjectsForEntity(), which mainly handles
>> ordering in reflexive relationships.  When I get this up and running
>> I'll test against our real model.  Is there an easy way to plop this
>> into 3.1 and run all the test cases against my sorter instead of the
>> Ashwood one with some DI magic?  (I'm wanting more test cases that the
>> ones I have.)
>> Thanks,
>> mrg

View raw message