Clone Tools
  • last updated a few minutes ago
Constraints
Constraints: committers
 
Constraints: files
Constraints: dates
Added tests for JPA lifecycle events during merge operation

    • -2
    • +16
    ./jpa/client/local/ErraiEntityManager.java
  1. … 1 more file in changeset.
Made cascading merge pass JPA rules 1-4 inclusive (tests for 5 and 6 still pending)

    • -6
    • +18
    ./jpa/client/local/ErraiEntityManager.java
  1. … 1 more file in changeset.
Fixed so null-valued collection attributes don't cause NPE during merge

    • -12
    • +19
    ./jpa/client/local/ErraiEntityType.java
  1. … 1 more file in changeset.
Made the cascading merge test pass. Now to work on merging across plural attributes...

    • -20
    • +26
    ./jpa/client/local/ErraiEntityManager.java
    • -8
    • +51
    ./jpa/client/local/ErraiEntityType.java
  1. … 3 more files in changeset.
All but 2 of the new EntityManager.merge() tests are passing now.

    • -32
    • +69
    ./jpa/client/local/ErraiEntityManager.java
    • -5
    • +44
    ./jpa/client/local/ErraiEntityType.java
  1. … 4 more files in changeset.
Implemented namespacing at the EntityManager and WebStorageBackend levels

    • -0
    • +14
    ./jpa/client/local/ErraiEntityManager.java
  1. … 3 more files in changeset.
Refactored ErraiEntityManager and its generator to make it easier to create multiple instances.

Unfortunately, this caused me to introduce two new factory interfaces. Sorry about that. :-/

The motivation for this change is that I want to keep a second ErraiEntityManager around for

tracking the state we believe the server has for each entity reachable from a SyncableDataSet.

    • -17
    • +4
    ./jpa/client/local/BigIntegerIdGenerator.java
    • -49
    • +22
    ./jpa/client/local/ErraiEntityManager.java
    • -0
    • +21
    ./jpa/client/local/ErraiEntityManagerFactory.java
    • -0
    • +15
    ./jpa/client/local/ErraiIdGenerator.java
    • -3
    • +1
    ./jpa/client/local/ErraiSingularAttribute.java
    • -17
    • +4
    ./jpa/client/local/IntIdGenerator.java
    • -18
    • +4
    ./jpa/client/local/LongIdGenerator.java
    • -6
    • +7
    ./jpa/client/local/TypedQueryFactory.java
    • -0
    • +26
    ./jpa/client/local/backend/StorageBackendFactory.java
    • -33
    • +48
    ./jpa/rebind/ErraiEntityManagerGenerator.java
initial implementation of @ShadowService as well as fixes to connection recovery with SSE

Conflicts:

errai-ioc/src/main/java/org/jboss/errai/ioc/rebind/ioc/bootstrapper/IOCGenerator.java

errai-jpa/errai-jpa-client/src/main/java/org/jboss/errai/jpa/rebind/ErraiEntityManagerGenerator.java

errai-marshalling/src/main/java/org/jboss/errai/marshalling/rebind/MarshallersGenerator.java

errai-navigation/src/main/java/org/jboss/errai/ui/nav/rebind/NavigationGraphGenerator.java

    • -24
    • +25
    ./jpa/rebind/ErraiEntityManagerGenerator.java
  1. … 16 more files in changeset.
Introduced AbstractAsyncGenerator that can be used by all async generators

    • -110
    • +78
    ./jpa/rebind/ErraiEntityManagerGenerator.java
  1. … 9 more files in changeset.
Removed dep. to errai-config from errai-codegen-gwt to break dep. cycle

    • -32
    • +4
    ./jpa/rebind/ErraiEntityManagerGenerator.java
  1. … 7 more files in changeset.
Added support for annotation-based global entity listener (gets all JPA lifecycle events for all entity types)

    • -0
    • +20
    ./jpa/client/shared/GlobalEntityListener.java
    • -34
    • +74
    ./jpa/rebind/ErraiEntityManagerGenerator.java
  1. … 5 more files in changeset.
parallelize Errai JPA

    • -117
    • +162
    ./jpa/rebind/ErraiEntityManagerGenerator.java
  1. … 26 more files in changeset.
Fixed ERRAI-474: Allow the addition of primitive attributes to entities that have been persisted

Pulled out LocalStorage into its own class so it could be used by the tests as well. Might come in handy later

on for other people too.

    • -0
    • +3
    ./jpa/client/local/ErraiEntityType.java
    • -0
    • +67
    ./jpa/client/local/backend/LocalStorage.java
  1. … 2 more files in changeset.
Fixed ERRAI-473: JPA2 method-accessed attributes don't work

    • -3
    • +10
    ./jpa/rebind/ErraiEntityManagerGenerator.java
  1. … 3 more files in changeset.
errai-jpa needs to inherit the errai-marshalling gwt module directly now that the bus no longer brings it in

Fixed NPE when a new boolean property appears in an entity that was previously persisted

  1. … 5 more files in changeset.
Fixed ERRAI-331: Errai JPA code generator should not use persistence.xml

    • -35
    • +9
    ./jpa/rebind/ErraiEntityManagerGenerator.java
    • -0
    • +110
    ./jpa/rebind/ErraiPersistenceUnitInfo.java
  1. … 2 more files in changeset.
Fixed ERRAI-427: Errai JPQL comparisons treat null incorrectly

  1. … 2 more files in changeset.
Fixed ERRAI-334: Treat null fields correctly when cascading across singular or plural attributes

    • -5
    • +8
    ./jpa/client/local/ErraiEntityManager.java
  1. … 1 more file in changeset.
Moved Comparisons into the JPA module because it will become JPQL-specific

  1. … 1 more file in changeset.
Cleaning up framework package: moved Assert to api package because it's meant to be public API

    • -1
    • +1
    ./jpa/client/local/ErraiEntityType.java
    • -1
    • +1
    ./jpa/client/local/ErraiTypedQuery.java
    • -1
    • +1
    ./jpa/client/local/TypedQueryFactory.java
  1. … 36 more files in changeset.
Changed JPA storage format to use Key instances for entity references (not backward compatible)

This allows entity references to be used as a basis for comparison in JPQL queries. It also paves the

way for proper polymorphic references (since Key includes type information, and the old refs didn't)

This commit resolves ERRAI-418.

    • -2
    • +13
    ./jpa/client/local/ErraiEntityManager.java
    • -21
    • +27
    ./jpa/client/local/ErraiEntityType.java
    • -14
    • +44
    ./jpa/rebind/TypedQueryFactoryGenerator.java
  1. … 2 more files in changeset.
Corrected class documentation

    • -4
    • +7
    ./jpa/client/local/ErraiEntityManager.java
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.