Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Switched Errai JPA's compile-time logging from println to slf4j

    • -6
    • +17
    ./jpa/rebind/TypedQueryFactoryGenerator.java
  1. … 1 more file in changeset.
Implemented both the 2 and 3 arg variants of JPQL locate() function

Also switched to the H2 database from HSQLDB because H2 has a better-behaved TRIM() function

    • -2
    • +14
    ./jpa/rebind/TypedQueryFactoryGenerator.java
  1. … 7 more files in changeset.
Implemented JPQL length() function

  1. … 2 more files in changeset.
Implemented JPQL trim() function with support for all optional params

    • -0
    • +10
    ./jpa/rebind/AstInorderTraversal.java
    • -0
    • +70
    ./jpa/rebind/TypedQueryFactoryGenerator.java
  1. … 3 more files in changeset.
Implemented both variants of JPQL SUBSTRING()

    • -32
    • +61
    ./jpa/rebind/TypedQueryFactoryGenerator.java
  1. … 2 more files in changeset.
Implemented JPQL concat() function

  1. … 2 more files in changeset.
Added support for JPQL NOT IN

  1. … 2 more files in changeset.
Added support for JPQL IN <collection-valued-param>

    • -12
    • +5
    ./jpa/rebind/TypedQueryFactoryGenerator.java
  1. … 3 more files in changeset.
Added support for JPQL IN <literal list>

    • -0
    • +23
    ./jpa/rebind/TypedQueryFactoryGenerator.java
  1. … 2 more files in changeset.
Added support for ESCAPE subclause of LIKE and NOT LIKE

  1. … 3 more files in changeset.
Added support for JPQL NOT LIKE

  1. … 2 more files in changeset.
Changed storage backend to tolerate containing instances of entity types that no longer exist

    • -6
    • +21
    ./jpa/client/local/ErraiMetamodel.java
Added support for JPQL LIKE

  1. … 3 more files in changeset.
Switched to window.localStorage (was window.sessionStorage for testing purposes)

  1. … 1 more file in changeset.
Implemented correct JPA semantics for cascade=PERSIST (was incorrectly being treated as MERGE before)

    • -3
    • +9
    ./jpa/client/local/ErraiEntityManager.java
  1. … 6 more files in changeset.
Fixed problem with parameters nested in functions (type info is not available from parse tree)

  1. … 2 more files in changeset.
Changed to aid troubleshooting: now the query name and text are logged when codegen fails.

    • -10
    • +22
    ./jpa/rebind/ErraiEntityManagerGenerator.java
Added support for JPQL upper() and lower() functions

    • -7
    • +16
    ./jpa/rebind/ErraiEntityManagerGenerator.java
    • -1
    • +18
    ./jpa/rebind/TypedQueryFactoryGenerator.java
  1. … 2 more files in changeset.
Pulled up attribute resolution to the comparator. Improves internal API, code readibility, and performance.

    • -23
    • +48
    ./jpa/rebind/TypedQueryFactoryGenerator.java
Changed ORDER BY comparisons to cope with null values

  1. … 3 more files in changeset.
Added support for multiple ORDER BY subclauses

    • -26
    • +50
    ./jpa/rebind/TypedQueryFactoryGenerator.java
  1. … 2 more files in changeset.
Added support for DESC modifier in ORDER BY clause; added explicit test for ORDER BY String

    • -3
    • +15
    ./jpa/rebind/TypedQueryFactoryGenerator.java
  1. … 2 more files in changeset.
Implemented ORDER BY for single values (test is for primitive ints, but should work for all primitives & Comparables)

    • -4
    • +14
    ./jpa/client/local/ErraiEntityType.java
    • -1
    • +18
    ./jpa/client/local/ErraiTypedQuery.java
    • -40
    • +153
    ./jpa/rebind/TypedQueryFactoryGenerator.java
  1. … 2 more files in changeset.
Factored out the fast-forward logic into the traverser so it can be reused by the ORDER BY generator

    • -4
    • +67
    ./jpa/rebind/AstInorderTraversal.java
    • -13
    • +6
    ./jpa/rebind/TypedQueryFactoryGenerator.java
Paving the way for an ORDER BY generator by fixing the API warts in the matcher generator.

Sadly, the generator code itself is now harder to understand. However, the generated code is easy enough

to follow, and it's going to be possible to add the ORDER BY stuff now.

    • -7
    • +0
    ./jpa/client/local/EntityJsonMatcher.java
    • -8
    • +2
    ./jpa/client/local/ErraiTypedQuery.java
    • -8
    • +16
    ./jpa/client/local/TypedQueryFactory.java
    • -54
    • +56
    ./jpa/rebind/ErraiEntityManagerGenerator.java
    • -34
    • +52
    ./jpa/rebind/TypedQueryFactoryGenerator.java
use MVEL to parse constant expressions in the JPAQL parser (makes all tests pass)

  1. … 1 more file in changeset.
Now supporting queries with no WHERE clause

    • -10
    • +15
    ./jpa/rebind/TypedQueryFactoryGenerator.java
  1. … 3 more files in changeset.
clean up to client message bus's reconnection and error handling logic

  1. … 3 more files in changeset.
Changed the storage backend to check entities for value changes by comparing live JSONObjects rather than toStrings

This was necessary because sometimes the keys come out of JSONObject.toString() in a different order. I'm not sure

what causes this, or how to trigger it so unfortunately this new behaviour of WebStorageBackend is not protected

by a test.

- Add new "If" convenience class with common operations to reduce codegen API verbosity. - Fix Bool.instanceOf() of accept a Class/MetaClass as the second parameter.

    • -57
    • +56
    ./jpa/rebind/ErraiEntityManagerGenerator.java
  1. … 14 more files in changeset.