Permalink
Switch branches/tags
Nothing to show
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 …

    jcoleman committed Sep 27, 2011
    …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.

    jcoleman committed Sep 16, 2011
    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.

    jcoleman committed Sep 16, 2011
    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…

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

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

    jcoleman committed Jul 12, 2011
    … 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…

    jcoleman committed Jul 12, 2011
    … 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…

    jcoleman committed Jun 8, 2011
    …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…

    jcoleman committed May 23, 2011
    …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…

    jcoleman committed May 17, 2011
    …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…

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

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

    jcoleman committed May 13, 2011
    …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…

    jcoleman committed May 10, 2011
    … 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…

    jcoleman committed May 9, 2011
    …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…

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

    jcoleman committed May 4, 2011
    …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…

    jcoleman committed May 3, 2011
    …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.

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

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