Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
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.
Updated JPA code generator to use new PrivateAccessUtil API

    • -56
    • +58
    ./jpa/rebind/ErraiEntityManagerGenerator.java
code cleanup and add output for ErraiEntityManager to the .errai/ output directory

    • -49
    • +5
    ./jpa/rebind/ErraiEntityManagerGenerator.java
code cleanup and add output for ErraiEntityManager to the .errai/ output directory

    • -5
    • +53
    ./jpa/rebind/ErraiEntityManagerGenerator.java
    • -12
    • +9
    ./jpa/rebind/TypedQueryFactoryGenerator.java
  1. … 4 more files in changeset.
Added support for standalone entity lifecycle listener classes.

    • -1
    • +30
    ./jpa/rebind/ErraiEntityManagerGenerator.java
  1. … 4 more files in changeset.
Switched to recording lifecycle events in a static list. This uncovered a bug in the ID generators, which is now fixed.

The bug was that the when the ID generators probe to see if a given ID value is already in use,

and it is, this causes the entity using that ID to be loaded into the persistence context and

its PostLoad callback to fire. Now the ID generator probes don't cause these side effects.

I also fixed a different bug in the BigInteger ID generator: it was incrementing the ID before returning it,

which could lead to an ID collision if for example it finds ID 123 to be free, but ID 124 is in use.

    • -4
    • +6
    ./jpa/client/local/BigIntegerIdGenerator.java
    • -6
    • +14
    ./jpa/client/local/ErraiEntityManager.java
    • -1
    • +2
    ./jpa/client/local/IntIdGenerator.java
    • -1
    • +6
    ./jpa/client/local/LongIdGenerator.java
  1. … 4 more files in changeset.