[hibernate-commits] [hibernate/hibernate-hql-parser] 6c3be6: HQLPARSER-39 Detection of unconsumed tokens must t...

GitHub noreply at github.com
Thu May 15 09:57:24 EDT 2014


  Branch: refs/heads/1.0.x
  Home:   https://github.com/hibernate/hibernate-hql-parser
  Commit: 6c3be6010ba9dc57b4e28923a2b5eb61f6a8e21d
      https://github.com/hibernate/hibernate-hql-parser/commit/6c3be6010ba9dc57b4e28923a2b5eb61f6a8e21d
  Author: Adrian Nistor <anistor at redhat.com>
  Date:   2014-03-16 (Sun, 16 Mar 2014)

  Changed paths:
    M parser/src/main/java/org/hibernate/hql/QueryParser.java
    M parser/src/test/resources/org/hibernate/hql/ast/origin/hql/parse/gUnitHQLGrammar.testsuite
    M testing/src/main/java/org/hibernate/hql/testing/internal/parser/GrammarRuleTestRunner.java

  Log Message:
  -----------
  HQLPARSER-39 Detection of unconsumed tokens must take non-buffered tokens into account

* ensure the internal token buffer of CommonTokenStream is filled from the underlying TokenSource (lexer) before checking if any tokens are left unmatched
* detect EOF by comparing on token type rather than token text (this is just for efficiency, not actually necessary for fixing the main issue)
* add more trailing token test cases to gUnitHQLGrammar.testsuite


  Commit: 6423a942151f568727eec61b4f38cc8b77d335d7
      https://github.com/hibernate/hibernate-hql-parser/commit/6423a942151f568727eec61b4f38cc8b77d335d7
  Author: Gunnar Morling <gunnar.morling at googlemail.com>
  Date:   2014-03-16 (Sun, 16 Mar 2014)

  Changed paths:
    M parser/src/main/antlr/org/hibernate/hql/ast/origin/hql/parse/HQLParser.g

  Log Message:
  -----------
  HQLPARSER-40 Making sure legacy "in class" syntax is supported


  Commit: 1ad516b4478c70f62958d65521350f71ad14c3c2
      https://github.com/hibernate/hibernate-hql-parser/commit/1ad516b4478c70f62958d65521350f71ad14c3c2
  Author: Gunnar Morling <gunnar.morling at googlemail.com>
  Date:   2014-03-16 (Sun, 16 Mar 2014)

  Changed paths:
    M parser/src/test/resources/org/hibernate/hql/ast/origin/hql/parse/gUnitGeneratedAST.testsuite
    M parser/src/test/resources/org/hibernate/hql/ast/origin/hql/parse/gUnitHQLGrammar.testsuite

  Log Message:
  -----------
  HQLPARSER-41 Disabling tests using exists clause with legacy join syntax


  Commit: 7703d11a2076872c3d8f642a00d66a3bbb9b8c49
      https://github.com/hibernate/hibernate-hql-parser/commit/7703d11a2076872c3d8f642a00d66a3bbb9b8c49
  Author: Adrian Nistor <anistor at redhat.com>
  Date:   2014-03-16 (Sun, 16 Mar 2014)

  Changed paths:
    M lucene/src/test/java/org/hibernate/hql/lucene/testutil/MapBasedEntityNamesResolver.java
    M parser/src/main/java/org/hibernate/hql/ast/common/JoinType.java
    M parser/src/test/java/org/hibernate/hql/test/ast/QueryParserTest.java
    M testing/build.gradle
    M testing/src/main/java/org/hibernate/hql/testing/internal/parser/GrammarRuleTestRunner.java

  Log Message:
  -----------
  Fix checkstyle problems

* also fix compile warnings


  Commit: b9c98e2719ffb11f8865c4763091aba93e622d05
      https://github.com/hibernate/hibernate-hql-parser/commit/b9c98e2719ffb11f8865c4763091aba93e622d05
  Author: Adrian Nistor <anistor at redhat.com>
  Date:   2014-03-20 (Thu, 20 Mar 2014)

  Changed paths:
    M lucene/src/main/java/org/hibernate/hql/lucene/LuceneProcessingChain.java
    M lucene/src/main/java/org/hibernate/hql/lucene/LuceneQueryParsingResult.java
    M lucene/src/main/java/org/hibernate/hql/lucene/internal/LuceneQueryRendererDelegate.java
    M lucene/src/main/java/org/hibernate/hql/lucene/internal/builder/ClassBasedLucenePropertyHelper.java
    M lucene/src/main/java/org/hibernate/hql/lucene/internal/builder/FieldBridgeProviderBasedLucenePropertyHelper.java
    M lucene/src/main/java/org/hibernate/hql/lucene/internal/builder/LucenePropertyHelper.java
    M lucene/src/test/java/org/hibernate/hql/lucene/test/ClassBasedLuceneQueryParsingTest.java
    M lucene/src/test/java/org/hibernate/hql/lucene/test/UntypedLuceneQueryParsingTest.java
    M parser/src/main/antlr/org/hibernate/hql/ast/render/QueryRenderer.g
    M parser/src/main/java/org/hibernate/hql/ast/spi/QueryRendererDelegate.java
    M parser/src/main/java/org/hibernate/hql/ast/spi/SingleEntityQueryRendererDelegate.java

  Log Message:
  -----------
  HQLPARSER-24 Provide JPA to Lucene translation for 'order by' clause

* LuceneQueryParsingResult exposes now the Sort object corresponding to the 'order by' clause
* modify the grammar to trigger the appropriate methods in the delegate object when the sort criteria is reached
* The SingleEntityQueryRendererDelegate is responsible for handling the sort criteria and its specialised subclasses must build the Sort object for the target language
* make the LucenePropertyHelper available to LuceneQueryRendererDelegate to be able to determine the type of the property based on FieldBridge type
* public access for LucenePropertyHelper.getFieldBridge(  )


  Commit: 6cbfb6fecc77afcf2feeaf01f2dc20f2e7e50cc2
      https://github.com/hibernate/hibernate-hql-parser/commit/6cbfb6fecc77afcf2feeaf01f2dc20f2e7e50cc2
  Author: Adrian Nistor <anistor at redhat.com>
  Date:   2014-05-15 (Thu, 15 May 2014)

  Changed paths:
    M build.gradle

  Log Message:
  -----------
  Preparing release of version 1.0.0.CR1


Compare: https://github.com/hibernate/hibernate-hql-parser/compare/6c3be6010ba9^...6cbfb6fecc77


More information about the hibernate-commits mailing list