cayenne-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrus Adamchik <>
Subject Re: Ashwood Issues
Date Mon, 25 Jul 2011 07:15:37 GMT
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?

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.


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