[hibernate-commits] [hibernate/hibernate-orm] 9684af: HHH-11495 Reduce criteria overhead by adding an im...

GitHub noreply at github.com
Tue Jul 3 13:02:26 EDT 2018


  Branch: refs/heads/master
  Home:   https://github.com/hibernate/hibernate-orm
  Commit: 9684afda76e9a1d7c700d8cba6a076a546aa9a3c
      https://github.com/hibernate/hibernate-orm/commit/9684afda76e9a1d7c700d8cba6a076a546aa9a3c
  Author: Carlos Aristu <carlos.aristu at openbravo.com>
  Date:   2018-07-03 (Tue, 03 Jul 2018)

  Changed paths:
    M hibernate-core/src/main/java/org/hibernate/metamodel/internal/MetamodelImpl.java

  Log Message:
  -----------
  HHH-11495 Reduce criteria overhead by adding an implementors cache


  Commit: e17491a19874e53718e33203ac17b7c0ff38d946
      https://github.com/hibernate/hibernate-orm/commit/e17491a19874e53718e33203ac17b7c0ff38d946
  Author: Guillaume Smet <guillaume.smet at gmail.com>
  Date:   2018-07-03 (Tue, 03 Jul 2018)

  Changed paths:
    M hibernate-core/src/main/java/org/hibernate/metamodel/internal/MetamodelImpl.java

  Log Message:
  -----------
  HHH-11495 Return a defensive copy of the array


  Commit: 7067b191b7380b332fd9f2fb80ef0bd15286c99f
      https://github.com/hibernate/hibernate-orm/commit/7067b191b7380b332fd9f2fb80ef0bd15286c99f
  Author: Guillaume Smet <guillaume.smet at gmail.com>
  Date:   2018-07-03 (Tue, 03 Jul 2018)

  Changed paths:
    M hibernate-core/src/main/java/org/hibernate/metamodel/internal/MetamodelImpl.java

  Log Message:
  -----------
  HHH-11495 Change the logic to be more efficient

We are optimistic about our chances to find the elements in the cache,
thus avoiding calling computeIfAbsent() if not necessary.

We only store in the cache the elements for which we have a proper
class, thus avoiding filling the cache with random values.


  Commit: 6c5e71fc40a290f2689581ca04fc548b0ed63f65
      https://github.com/hibernate/hibernate-orm/commit/6c5e71fc40a290f2689581ca04fc548b0ed63f65
  Author: Guillaume Smet <guillaume.smet at gmail.com>
  Date:   2018-07-03 (Tue, 03 Jul 2018)

  Changed paths:
    M hibernate-core/src/main/java/org/hibernate/metamodel/internal/MetamodelImpl.java

  Log Message:
  -----------
  HHH-11495 Only cache values if the class is mapped somehow


  Commit: 600164869b0eb8f50289e21092c68c95631a4a1d
      https://github.com/hibernate/hibernate-orm/commit/600164869b0eb8f50289e21092c68c95631a4a1d
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2018-07-03 (Tue, 03 Jul 2018)

  Changed paths:
    M hibernate-core/src/main/java/org/hibernate/metamodel/internal/MetamodelImpl.java

  Log Message:
  -----------
  HHH-11495 Add a missing @Override


  Commit: 212d8c01e593f557de2f7b7303fb416b76f3b7d0
      https://github.com/hibernate/hibernate-orm/commit/212d8c01e593f557de2f7b7303fb416b76f3b7d0
  Author: Yoann Rodière <yoann at hibernate.org>
  Date:   2018-07-03 (Tue, 03 Jul 2018)

  Changed paths:
    M hibernate-core/src/main/java/org/hibernate/Metamodel.java
    M hibernate-core/src/main/java/org/hibernate/metamodel/internal/MetamodelImpl.java

  Log Message:
  -----------
  HHH-11495 Update the javadoc of Metamodel#getImplementors to reflect the actual implementation

In particular, the actual implementations may not return all persisted
subtypes if the given type is persisted and "explicit polymorphism" is
enabled. So this really is more about HQL queries than about a class
hierarchy.


Compare: https://github.com/hibernate/hibernate-orm/compare/35cd3a1c387f...212d8c01e593
      **NOTE:** This service been marked for deprecation: https://developer.github.com/changes/2018-04-25-github-services-deprecation/

      Functionality will be removed from GitHub.com on January 31st, 2019.


More information about the hibernate-commits mailing list