Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Commits on Nov 8, 2011
Commits on Sep 28, 2011
  1. Add test+fix for bug that caused inner joins to be used even when in …

    authored
    …the context of 'or' scopes where the property wasn't actually required.
    
    Technically we could architect this in a way that allowed a slightly higher percentage of INNER JOINs to be used (i.e. if the chain of associations from the parent domain to the current association are all non-nullable, then it doesn't matter that they were used in an 'or' scope--they could still be joined using an INNER JOIN.) However, due to the the complexity of that (and especially the need for considering how that might interact with sub-query embedded scopes) for right now, I'll push that off into the future in favor of fixing this bug more immediately.
Commits on Sep 16, 2011
  1. Use count(id) instead of countDistinct(id) when executing counts.

    authored
    Relscope enforces that queries won't join across has-many associations anyway (opting to use subqueries) so there will never be a case where the id's counted shouldn't be distinct. This change allows better DB performance since the database can't really know what we know about never joining across has-many's and the uniqueness of ids.
  2. Don't apply orderBy when executing count.

    authored
    Otherwise the generated SQL is accepted by MySQL (since it just ignores the incorrect part) but PostgreSQL blows up (correctly so) since the count(id) really forces the need for group by if we order. And order shouldn't affect the count anyway, so why do it.
Commits on Aug 5, 2011
  1. Add ability to ensure that specific associations will be eagerly join…

    authored
    …ed when loading the root objects.
  2. Make sure to actually use the decided upon join type (inner/outer bas…

    authored
    …ed on non-nullable/nullable.)
Commits on Jul 12, 2011
  1. Decrement the detached criteria count after we're done working with a…

    authored
    … subquery so that later requests for the current alias at a lower association level work correctly.
  2. Initial work on adding code inspection. (Call scope.inspect() and get…

    authored
    … essentially the code that would be used to create that scope.)
Commits on Jun 8, 2011
  1. Automatically generate INNER JOINs if the one-to-one association we'r…

    authored
    …e walking is nullable: false.
Commits on Jun 7, 2011
Commits on May 23, 2011
  1. Fix bug with subquery generation and property selection. Make sure th…

    authored
    …e change to the 'options' map flagging it as a subquery happens before the detached criteria is processed with its projections.
Commits on May 17, 2011
  1. Add tests and fix for exception-causing bug in interaction between ne…

    authored
    …w property checks with the associationDescriptorStack and non-association based subqueries.
Commits on May 13, 2011
  1. Fix bug: using both property walking and a mapping that referenced th…

    authored
    …e same association property caused duplicate aliases to be created.
  2. Turn off referential integrity while we clean up dirty classes at the…

    authored
    … end of a scenario to guarantee that all instances get deleted.
  3. Add support (and tests) for ancestor walking outside of an "exists" s…

    authored
    …ubquery. Also fix bug that caused the new property verification tests to fail when extending into an association within an exists subquery.
Commits on May 10, 2011
  1. Add some more heuristics to ArbitraryExpressionCriterion's ability to…

    authored
    … report hibernate types of value expressions. Also add some missing null-safety around lhs.
Commits on May 9, 2011
  1. Precalculate the criteria's property keys for each property expressio…

    authored
    …n since for an ancestor walking expression, the association descriptor stack in the options map is only valid during the RelScope#toCriterion() tree walk.
Commits on May 5, 2011
Commits on May 4, 2011
  1. Make sure that .find() when being used in combination with map select…

    authored
    …ion returns null if no results are found. Fixes #4.
  2. Make sure to use the new associationDescriptor.parentDomainClass in R…

    authored
    …elScope.propertyFor() as well.
    
    Fix passing the wrong variable in the association walking loop in RelScope.propertyFor().
Commits on May 3, 2011
  1. More rework around the association descriptor stack and recognizing t…

    authored
    …he correct parent domain class when entering association sub-scopes.
Commits on May 2, 2011
Commits on Apr 29, 2011
  1. Merged pull request #3 from m33integrated/master.

    authored
    Allow ordering to use associations not already referenced in the restrictions.
  2. Add expression-to-expression-tuple support to 'between' comparator. M…

    authored
    …ove tuple length check to the ScopeComparisonFactory since it is used by more than one method in the between comparator class (also, we want it to fail as early as possible.)
Something went wrong with that request. Please try again.