[hibernate-commits] [hibernate/hibernate-search] d43b49: HSEARCH-2301 Use the most specific type to build t...

GitHub noreply at github.com
Mon Jun 20 18:08:17 EDT 2016


  Branch: refs/heads/master
  Home:   https://github.com/hibernate/hibernate-search
  Commit: d43b49e8613a137edba3ce5aa2a0a89d99532029
      https://github.com/hibernate/hibernate-search/commit/d43b49e8613a137edba3ce5aa2a0a89d99532029
  Author: Guillaume Smet <guillaume.smet at gmail.com>
  Date:   2016-06-20 (Mon, 20 Jun 2016)

  Changed paths:
    M orm/src/main/java/org/hibernate/search/query/hibernate/impl/CriteriaObjectInitializer.java
    A orm/src/test/java/org/hibernate/search/test/query/initandlookup/CriteriaObjectInitializerAndHierarchyInheritanceTest.java

  Log Message:
  -----------
  HSEARCH-2301 Use the most specific type to build the criteria

When building the criteria to get the entities, we used to always use
the root entity type of the hierarchy even if we only want to get
entities from one subtype.

This is especially counter productive when we are in the case of a join
inheritance with many subtypes: we then build a query with a left join
for each subtype instead of a query only targeting the most specific
subtype possible.


  Commit: cd09b0252e37fb5520d7db952330e85261c53993
      https://github.com/hibernate/hibernate-search/commit/cd09b0252e37fb5520d7db952330e85261c53993
  Author: Sanne Grinovero <sanne at hibernate.org>
  Date:   2016-06-20 (Mon, 20 Jun 2016)

  Changed paths:
    M orm/src/test/java/org/hibernate/search/test/query/initandlookup/CriteriaObjectInitializerAndHierarchyInheritanceTest.java

  Log Message:
  -----------
  HSEARCH-2301 Test for the effect of full-text filtering on the generated loading Criteria


Compare: https://github.com/hibernate/hibernate-search/compare/397ea5aa7780...cd09b0252e37


More information about the hibernate-commits mailing list