[midPoint-git] [Evolveum/midpoint] 0045f1: Implement querying dynamic items by ID not by name

Pavol Mederly mederly at evolveum.com
Wed Feb 14 18:09:15 CET 2018


  Branch: refs/heads/master
  Home:   https://github.com/Evolveum/midpoint
  Commit: 0045f13538f23a28645d9c6f982a2fe934f99c04
      https://github.com/Evolveum/midpoint/commit/0045f13538f23a28645d9c6f982a2fe934f99c04
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2018-02-14 (Wed, 14 Feb 2018)

  Changed paths:
    M repo/repo-sql-impl-test/src/test/java/com/evolveum/midpoint/repo/sql/QueryInterpreter2Test.java
    A repo/repo-sql-impl-test/src/test/resources/query/query-account-by-non-existing-attribute.xml
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/data/common/any/RAnyConverter.java
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/data/common/any/RAnyValue.java
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/data/common/any/RExtItem.java
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/data/common/dictionary/ExtItemDictionary.java
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/query2/definition/JpaAnyContainerDefinition.java
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/query2/definition/JpaAnyItemLinkDefinition.java
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/query2/hqm/RootHibernateQuery.java
    A repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/query2/hqm/condition/ConstantCondition.java
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/query2/resolution/ItemPathResolver.java
    M repo/repo-sql-impl/src/main/java/com/evolveum/midpoint/repo/sql/query2/restriction/AnyPropertyRestriction.java

  Log Message:
  -----------
  Implement querying dynamic items by ID not by name

Extension items and attributes were queried by their name
e.g. "left join s.strings s2 with ( ... s2.item.name = :name )".
Now we resolve item to its ID manually and query by that ID,
e.g. "left join s.strings s2 with ( ... s2.item.id = :id )".
It should be faster. But it relies on correct definition passed
to the query interpreter, as the RExtItem has to be found by
item name + item type + item kind now.


  Commit: 37f5ec469fc33a6b6bf29cabbb3762298d99be8f
      https://github.com/Evolveum/midpoint/commit/37f5ec469fc33a6b6bf29cabbb3762298d99be8f
  Author: Pavol Mederly <mederly at evolveum.com>
  Date:   2018-02-14 (Wed, 14 Feb 2018)

  Changed paths:
    M infra/prism/src/main/java/com/evolveum/midpoint/prism/polystring/PolyString.java
    M model/model-common/src/main/java/com/evolveum/midpoint/model/common/expression/functions/BasicExpressionFunctions.java

  Log Message:
  -----------
  Merge remote-tracking branch 'origin/master'


Compare: https://github.com/Evolveum/midpoint/compare/dab8050b4e4d...37f5ec469fc3


More information about the midPoint-svn mailing list