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 …

    …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.
    committed Sep 27, 2011
Commits on Sep 16, 2011
  1. Use count(id) instead of countDistinct(id) when executing counts.

    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.
    committed Sep 16, 2011
  2. Don't apply orderBy when executing count.

    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.
    committed Sep 16, 2011
Commits on Aug 5, 2011
  1. Add ability to ensure that specific associations will be eagerly join…

    …ed when loading the root objects.
    committed Aug 5, 2011
  2. Make sure to actually use the decided upon join type (inner/outer bas…

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

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

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

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

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

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

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

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

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

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

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

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

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

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

    Allow ordering to use associations not already referenced in the restrictions.
    committed Apr 29, 2011
  2. Add expression-to-expression-tuple support to 'between' comparator. M…

    …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.)
    committed Apr 29, 2011