Clone Tools
  • last updated a few minutes ago
Constraints
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. … 13 more files in changeset.
ERRAI-1075: Integration tests using APT generators (#316)

* Allow multiple @ErraiApps in same jar

* Generating code for multiple @ErraiApp annotations. With problems.

* Fixed many errors in errai-ui tests APT codegen

* Partially fix errai-bus tests code generation

* Fix ErraiAptExportedTypes tests

* Fix multidimensional arrays marshaller factory generation

* Configured APT generators for errai-ioc. There are error still.

* Configure APT generators for errai-ioc-bus-support. There are still errors.

* Configure APT generators for errai-cdi-server. Fix export file exported public types

* Fix exporting only public elements in Export Files for good

* Fix exporting parameters of methods/constructors annotated with @Inject

* Fix exporting primitive values

* Configure APT generators for errai-data-binding.

* Configure APT generators for errai-jaxrs-client

* Configure APT generators for errai-navigation and errai-validation. Still broken.

* Fix random error caused by local exportable types not being erased

* Make generators be exported as part of their ErraiModule

* Remove test

* Removed unused parameter

* Reorganize tests in errai-security and configure APT generators

* Fix stylesheet files discovery

* Fix stylesheet load for reals

* Fix class name of generated files for local @ErraiApps

* Revert some undesired changes

* Prepared for running tests with apt-generated code

* Create GWT Module file generator to override rebinding rules for APT-generated code

* GWT modules being adapted to apt-generated classes in demos as well

* Place gwtModuleName in @ErraiApp

* Moved GWT module generation to ErraiAppAptGenerator

* Added additionalClassElement configuration to errai-ui

* Improve switch between generating code using APT or GWT generators

* General improvements

* Add testResources configuration to errai-ui

* Configure remaining test @ErraiApps in errai-cdi-server

* More tests configuration

* Remove comments on ErraiGenerators

* Fix errai-security-client IT tests code generation error

* General fixes

* Fixed some tests and add MetaMethodTest for all MetaMethod impls

* Add asyncBeanManager property to async tests @ErraiApp

* Add scope to un-annotated implementations of interface

* Make APTClass be the first option in MetaClassFactory

* Fix error in MetaClassFactory.get

* Resolved primitive issues in MetaClassFactory.loadClass

* Resolved primitive issues in MetaClassFactory.loadClass

* Make sure APTClassUtil is not initialized before codegen tests

* Fix broken test

* Make errai-codegen tests use APTClass before using JavaReflectionClass

* PR general pass

* Rollbcak unneeded change

* Create errai-ioc-extension-tests

* Add log4j.properties to errai-navigation tests

* CDI IOCExtensions now stay in another module and are pre-compiled

* Created mechanism to define exporting strategies depending on the annotation

* Replaced ExportedAnnotations for ExportingStrategies configuration class

* Fixed tests

* Small refactors

* Minor fixes/refactorings

* Fixed errai-navigation tests. Attemp to fix errai-validation but not complete yet

* Fix errai-jaxrs-client tests by configuring mappingAliases correctly

* Fixed one of the broken tests in errai-ioc

* Fix errai-ioc test by configuring @ErraiModule properly

* Improved exporting strategies for errai-ioc and errai-jaxrs-client

* Created jsInteropSupportEnabled configuration property

* Create dynamic validation property in @ErraiApp

* Fix almost every test in errai-data-binding

* Fix StyleBindingDecorator

* Fix errai-ioc test by dealing correctly with generic arrays as parameters in constructors/methods

* Fixed some of the server/client code generation problems

* Server code generation and CDI test fixes

* Moved Funject out of errai-cdi-server, so that it is pre-compiled

* Fix RpcIntegrationTest

* Fix SpecializationIntegrationTest

* Attempt to fix Stereotypes test

* Reset definitions factory before generating code for an @ErraiApp

* Fix JsTypeInjectionTest by changing from List to Set in WindowInjectionContextImpl providers

* General refactorings

* Fix DisconnectedEventIntegrationTest

* Fix BeanManagerIntegrationTest.testNormalScopeOverridesDependent

* Fix BeanManagerIntegrationTest.testBeanManagerLookupInheritedScopeBean by returning inherited annotations on APTClass as well

* Created tests for inherited annotations in APTClass

* Ignore tests of unsupported features in APT environment

* Fix MetaClassFinder extending/restriction methods

* Make ValidatorFactoryGenerator async and ignore dynamic validation tests for now.

* Fix configuration to ignore tests of unsupported features in APT environment

* Remove local flag from '@ErraiApp'. An app is local when the modules property is not empty

* PR final pass

* PR fixes

  1. … 680 more files in changeset.
ERRAI-1075: Create APT generator for errai-marshalling (#296)

* Create APT generator for NavigationGraphGenerator

* Start to move errai-marshalling configuration out of EnvUtil clas

* Fixed exposed and nonExposed portable types

* Inline methods and add comment

* Fix NullPointerException

* Move Marshalling configuration out of EnvUtil

* Create MarshallersAptGenerator (not working)

* Prepare MarshallersGenerator to run in APT environment too

* Make errai-marshalling use completely interchangeable ErraiConfiguration implementations

* Fix ClassScanner parameters to use reflections while searching @Portable types

* Make MetaClassFinder available for DefinitionsFactoryImpl

* Add @MappingAlias annotation to ErraiConfiguration

* Make MarshallerAptGenerator work, but with errors

* Scan @ServerMarshallers with MetaClassFinder

* Fix tests and improve GWT environment MetaClassFinder

* Improve MarshallerAptGenerator. References not yet resolved in MarshallerFactoryImpl

* Make ErraiMarshalling.gwt.xml use APT generators and skip creation of abstract classes in generated marshallers

* MarshallerAptGenerator working with both GWT and APT generators

* MarshallerAptGenerator working and generating every Marshaller

* Fix logging in errai-demos

* Fix X marshaller not found (generics)

* Little refactors

* Remove static initialization of ErraiAppPropertiesConfiguration in MarshallingConfiguration

* Remove QualifyingMetaDataFactory property

* Remove unsafe call from errai-ioc decorators logic

* Add PageRequest in ErraiMarshallingModule's configuration

* Rollback parameter type to erased

* Revert "Remove unsafe call from errai-ioc decorators logic"

This reverts commit b496229be2f7ecaa50e9ea4c5951035772d10487.

* Fix issue with generic field/parameters. Add time logs to files generation in APT environment.

* Remove @Portable annotation added by mistake

* Remove unsafeIsAnnotationPresent from HasAnnotations

* Remove unsafe methods from HasAnnotations

* Remove AbstractHasAnnotations class

* Refactor configuration files

* Add tests to new properties in @ErraiApp

* Update comments

* PR final pass

* Remove even more unsafe calls from HasAnnotations implementation

* Removed annotation caches and unnecessary methods from subclasses of HasAnnotations

  1. … 158 more files in changeset.
Create APT generators for errai-ioc module

  1. … 256 more files in changeset.
Remove random string from ExportFile names

    • -0
    • +26
    ./errai/jpa/ErraiJpaClientModule.java
  1. … 26 more files in changeset.
Add Errai APT Generators mechanism

  1. … 271 more files in changeset.
Deprecate Errai modules (details below).

Deprecates:

* JBossLauncher

* errai-forge-addon

* errai-cordova

* errai-jpa

* errai-jpa-datasync

* errai-security-picketlink

Adds deprecation annotations to code and warnings in the documentation.

    • -0
    • +7
    ./errai/jpa/package-info.java
  1. … 6 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.

    • -0
    • +30
    ./errai/jpa/api/javax/persistence/ConstraintMode.java
    • -0
    • +45
    ./errai/jpa/api/javax/persistence/ForeignKey.java
  1. … 16 more files in changeset.
ERRAI-944: Entity Manager fails to persist entity with ID of type Long and value 0.

    • -80
    • +80
    ./errai/jpa/client/local/ErraiEntityManager.java
  1. … 2 more files in changeset.
Add DOM JsTypes to errai-common. Change IsElement to use new HTMLElement wrapper.

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

    • -0
    • +16
    ./errai/jpa/client/local/EntityJsonMatcher.java
    • -0
    • +16
    ./errai/jpa/client/local/EntityState.java
    • -0
    • +16
    ./errai/jpa/client/local/ErraiAttribute.java
    • -0
    • +16
    ./errai/jpa/client/local/ErraiEntityManager.java
    • -0
    • +16
    ./errai/jpa/client/local/ErraiEntityType.java
    • -0
    • +16
    ./errai/jpa/client/local/ErraiIdGenerator.java
    • -0
    • +16
    ./errai/jpa/client/local/ErraiManagedType.java
    • -0
    • +16
    ./errai/jpa/client/local/ErraiMetamodel.java
    • -0
    • +16
    ./errai/jpa/client/local/ErraiParameter.java
  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
    ./errai/jpa/client/local/EntityJsonMatcher.java
    • -16
    • +0
    ./errai/jpa/client/local/EntityState.java
    • -16
    • +0
    ./errai/jpa/client/local/ErraiAttribute.java
    • -16
    • +0
    ./errai/jpa/client/local/ErraiEntityManager.java
    • -16
    • +0
    ./errai/jpa/client/local/ErraiEntityType.java
    • -16
    • +0
    ./errai/jpa/client/local/ErraiIdGenerator.java
    • -16
    • +0
    ./errai/jpa/client/local/ErraiManagedType.java
    • -16
    • +0
    ./errai/jpa/client/local/ErraiMetamodel.java
    • -16
    • +0
    ./errai/jpa/client/local/ErraiParameter.java
  1. … 3068 more files in changeset.
Remove old JBoss and Red Hat license headers. Add new "Red Hat and affiliates" header.

    • -0
    • +16
    ./errai/jpa/client/local/EntityJsonMatcher.java
    • -0
    • +16
    ./errai/jpa/client/local/EntityState.java
    • -0
    • +16
    ./errai/jpa/client/local/ErraiAttribute.java
    • -0
    • +16
    ./errai/jpa/client/local/ErraiEntityManager.java
    • -0
    • +16
    ./errai/jpa/client/local/ErraiEntityType.java
    • -0
    • +16
    ./errai/jpa/client/local/ErraiIdGenerator.java
    • -0
    • +16
    ./errai/jpa/client/local/ErraiManagedType.java
    • -0
    • +16
    ./errai/jpa/client/local/ErraiMetamodel.java
    • -0
    • +16
    ./errai/jpa/client/local/ErraiParameter.java
  1. … 3150 more files in changeset.
Fix several minor issues (descriptions below).

* Add error messages for public fields in normal scoped beans (except @EntryPoint).

* Remove "Concrete" and "Abstract" from toString of Injectables.

* Add tests that lazily-loaded @Page and @Templated beans are in time.

* Don't use universal qualifier for Providers (only for ContextualTypeProvider).

* Add @IOCProducer annotation (for projects that don't depend on CDI @Produces).

* Make provider of ErraiEntityManager to producer so that it also matches EntityManager.

    • -2
    • +4
    ./errai/jpa/client/local/ErraiEntityManager.java
    • -0
    • +27
    ./errai/jpa/client/local/ErraiEntityManagerProducer.java
  1. … 14 more files in changeset.
Fix issues found in errai-jpa-grocery-list demo (described below).

* Make IoC proxies extend WrappedPortable.

* Make Providers only match exact provided type (like ContextualTypeProviders).

* Make some types @EntryPoints so that they are eagerly loaded on startup.

  1. … 19 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. … 381 more files in changeset.
Implemented ERRAI-832: Added support for whitelist and blacklist properties for Errai JPA

Added tests and test cases. Test cases commented out for now. Tests do not pass

Added programming logic but must be updated using Filters and Sets.

  1. … 14 more files in changeset.
Refactored PR-128 to make sure attributes don't cause method to exceed byte limit

#126 create own method for every entity type to prevent java function limit of 65536 bytes

disables Hibernate @Entity scanning, so server side entities are not found.

    • -1
    • +1
    ./errai/jpa/rebind/ErraiPersistenceUnitInfo.java
Ensured to never generate the cache/debug files in .errai more than once

  1. … 2 more files in changeset.
No longer printing gen. code to stdout (not needed: gen. code is written to files in .errai)

  1. … 8 more files in changeset.
No longer printing gen. code to stdout (not needed: gen. code is written to files in .errai)

  1. … 8 more files in changeset.
Move client logging dependencies/modules to errai common

  1. … 3 more files in changeset.
Inherit and configure gwt logging in JpaTest.

This will allow apps using errai-jpa to have their own logging

configurations.

  1. … 1 more file in changeset.
Add GWT Logging to JPA.gwt.xml

    • -0
    • +0
    ./errai/jpa/JPA.gwt.out.xml
Change errai-jpa-client print calls to slf4j log calls

    • -5
    • +13
    ./errai/jpa/client/local/ErraiEntityManager.java
  1. … 1 more file in changeset.
Add gwt-slf4j to errai-jpa-client

  1. … 1 more file in changeset.
Now ensuring generated IDs don't overlap between types that share a common superclass

    • -7
    • +19
    ./errai/jpa/client/local/ErraiEntityManager.java
  1. … 2 more files in changeset.
Added the ability to fetch entities by supertypes rather than exact type matching

    • -5
    • +4
    ./errai/jpa/client/local/ErraiEntityManager.java
    • -0
    • +19
    ./errai/jpa/client/local/ErraiManagedType.java
    • -0
    • +137
    ./errai/jpa/client/local/PersistenceContext.java
  1. … 4 more files in changeset.