Clone Tools
  • last updated a few minutes ago
Constraints: committers
Constraints: files
Constraints: dates
hibernate and jboss-ip-bom upgrade (#373)

ERRAI-1118: changes required for hibernate upgrade to 5.3.6.Final

(cherry picked from commit 47f3d4be363b9d2b45dd4f6131b2c2107a7b467b)

replaced org.hibernate.javax.persistence by javax.persistence

upgraded jboss-ip-bom

  1. … 14 more files in changeset.
IP BOM 7.0.0.CR5 (#212)

* [ERRAI-971] upgrade IP BOM to 7.0.0.CR5

* CR5 brings JPA 2.1 + Hibernate 5.x

(upgraded from JPA 2.0 + Hibernate 4.x)

* Fix errai-jpa-client tests and jpa demo GWT compilation errors.

* Add missing attribute to JoinColumn annotation.

* Add ForeignKey and ConstraintMode types.

* Fix HibernateJpaTest/ErraiJpaTest to work with different hibernate behaviour.

  1. … 19 more files in changeset.
Remove 'destroyAllBeans' method from bean manager API.

  1. … 19 more files in changeset.
ERRAI-884: ClientMessageBusImpl catches exceptions in MessageCallbacks, preventing @UncaughtException Handing

Additionally this commit also changes client-side error handling as follows.

* noErrorHandling suppresses sending errors to CLIENT_ERROR_SUBJECT.

* Handle case where GWT.uncaughtExceptionHandler is null.

* Invoke error callback when error occurs in ClientMessageBus.send

instead of throwing exception.

* Test new behaviour in ErrorHandlingTest.

* Send RPC errors to CLIENT_ERROR_SUBJECT a supplied error handler

returns true.

  1. … 16 more files in changeset.
Add missing license headers and update copyright notice in existing headers.

    • -0
    • +16
  1. … 3042 more files in changeset.
Revert "Remove old JBoss and Red Hat license headers. Add new "Red Hat and affiliates" header."

Changes from the reverted commit did not preserve original copyright dates.

This reverts commit d8e735dfe2f6ed25fe9e06b753ae2f6154d76b02.

    • -16
    • +0
  1. … 3068 more files in changeset.
Remove old JBoss and Red Hat license headers. Add new "Red Hat and affiliates" header.

    • -0
    • +16
  1. … 3150 more files in changeset.
Remove redundant async IoC tests and change IOC.getBeanManager() behaviour.

errai-ioc-async-tests now runs all tests from errai-ioc with

the async flag set to true. Duplicate tests have been removed.

When the async flag is set to true, IOC.getBeanManager() returns

as SyncBeanManager that is used internally by the AsyncBeanManager

(containing beans from all downloaded code fragments).

  1. … 49 more files in changeset.
ERRAI-590, ERRAI-850, ERRAI-851: Implement new IOC container (more description below).

The new container uses code genererated in multiple files instead

of a single monolithic file. At compile time an implementation of

org.jboss.errai.ioc.client.container.Factory is generated for each bean.

The factory is responsible for requesting dependencies from other

factories to wire the bean, running code generated by decorators,

and cleaning up when the bean is destroyed.

The GWT.create calls for the factories are generated in the

BootstrapperImpl. The BootstrapperImpl now only registers

factories with their respective contexts.

This container has the following differences from behaviour

in the 3.x version of errai-ioc:

* Normal scoped beans must be proxiable.

* The @New qualifier is not supported.

* Normal scoped beans (except @Entrypoint or with @Startup) are lazily instatiated.

* @Alternative beans must be explicitly enabled (even if no other beans match).

* Resolution of types behaves like CDI. Some cases that worked in 3.x may now be ambiguous.

** Injecting a common supertype of multiple concrete classes is ambiguous.

* Different API for programmtically adding beans to bean manager.

  1. … 380 more files in changeset.
Allowed for java.lang.Object to be a valid result type of @Sync queries

    • -0
    • +213
    • -0
    • +34
  1. … 1 more file in changeset.
data-sync: unregister managed bean lifecylce listener when worker stops

  1. … 1 more file in changeset.
SyncWorker now capable of reacting to state changes of managed beans

  1. … 2 more files in changeset.
Finished implementation of ERRAI-688: Add a declarative API for data sync

  1. … 5 more files in changeset.
Calling onCompletion callback in MockSyncManager

Progress on ERRAI-688: Begun implementing codegen required for @Sync

  1. … 4 more files in changeset.
Added explanations about blacklisted bean

  1. … 1 more file in changeset.
Moved MockClientSyncManager to separate file and black listed it

    • -0
    • +39
  1. … 1 more file in changeset.
Progress on ERRAI-688: Introduced Sync/SyncParam annotations and prepared test

    • -0
    • +66
  1. … 2 more files in changeset.
Progress on ERRAI-688: Introduced ClientSyncWorker

  1. … 3 more files in changeset.
Now immediately detaching removed entities during sync so they don't interfere with new ones that (re)use the same ID

  1. … 1 more file in changeset.
Fixed bug in server-side sync: was returning requested object rather than merge target; this has stale version column

  1. … 1 more file in changeset.
Fixed several bugs in entitiy comparator; added lots of tests for cases that were failing

    • -0
    • +64
    • -0
    • +67
    • -0
    • +39
    • -0
    • +167
  1. … 1 more file in changeset.
Added protection to ClientSyncManager.coldSync() to guarantee re-entrant calls fail fast

  1. … 1 more file in changeset.
Added optional error callback for coldSync() call

  1. … 3 more files in changeset.
Switched data-sync-complete event from CDI notification to RemoteCallback

It became clear in the todo list demo that different callsites to coldSync() have different "what to do next" needs.

Could have passed a list of CDI qualifiers to coldSync, but why not just use a callback at this point?

  1. … 2 more files in changeset.
Implemented test+behaviour for avoiding entity conflicts when new entity from server conflicts with unsynced local one

  1. … 1 more file in changeset.
Added test (and functionality) for communicating entity deletion from client to server

  1. … 2 more files in changeset.
Added a test to ensure local update from client works properly.

Enhanced the ClientSyncManager test to also verify the client's request operations

Fixes to DataSyncService test and impl based on close review (tests were syncing entities with null ID)

  1. … 1 more file in changeset.