Commit Graph

119 Commits

Author SHA1 Message Date
Tomáš Kraus
386a734d52 When class is annotated with @MappedSuperclass, its private fields can't be accessed from JPA with native image (#2127)
Signed-off-by: Tomas Kraus <Tomas.Kraus@oracle.com>
2020-09-15 12:17:49 +02:00
Laird Nelson
03a018f1b8 Use Config.getPropertyNames() instead of retrieving getPropertyNames() from ConfigSources (#2322)
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
2020-09-08 12:20:45 -07:00
Joe DiPol
78eddfe47a Update version to 2.0.3-SNAPSHOT (#2323) 2020-09-04 11:18:57 -07:00
Daniel Kec
1824a3aa04 Tyrus support for native-image (#2097)
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-09-03 17:54:03 +02:00
Tomas Langer
59a67b2658 Support for non-String parameters in JAX-RS for native image (#2303)
* Support for non-String parameters (query, header, path) in JAX-RS for native image.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-09-01 09:08:12 -07:00
Laird Nelson
45a70b1ea7 Use Session.getDatasourceLogin() instead of Session.getLogin() in CDISEPlatform.java (#2263)
Use Session.getDatasourceLogin() instead of Session.getLogin() in CDISEPlatform.java

Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
2020-08-17 14:27:56 -07:00
Joe DiPol
d3991c6f43 Upgrade Hibernate to 5.4.18.Final (#2212) 2020-07-29 09:31:12 -07:00
Laird Nelson
cf156c5967 Upgrading to the latest version of the Eclipselink Maven plugin and aligning Eclipselink version to correspond with it. (#2138)
* Upgraded to the latest version of the Eclipselink Maven plugin and aligned Eclipselink version to correspond with it.
* Fixed Pokemon example which was using EclipseLink weaving but a Hibernate runtime.
* Removed commented out code.

Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
2020-07-09 10:17:06 -07:00
Tomas Langer
8a68523d83 Native image update (#2078)
* Native image update
* Remove use of AutomaticFeature (unsupported API)
* Remove use of context impl (unsupported API)
* Using a third-party classpath scanning tool

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-07-02 23:39:47 +02:00
Joe DiPol
0bb8d792da Bump version to 2.0.2-SNAPSHOT. Update CHANGELOG (#2111)
* Bump version to 2.0.2-SNAPSHOT Update CHANGELOG
2020-06-30 14:47:34 -07:00
Joe DiPol
8bbe29ecc8 2.0: Update version to 2.0.1-SNAPSHOT. Update CHANGELOG (#2082)
* Update CHANGELOG.md after 2.0.0 release

* Update version to 2.0.1-SNAPSHOT
2020-06-23 11:32:04 -07:00
Tomas Langer
093ec0d30d Upgrade svm, annotation for reflection (#2070)
* Upgrade svm libraries.
Annotation for reflection in native image.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

* Missed required class.
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-06-19 15:14:23 -07:00
Tomas Langer
1c6cf71ab1 Update native image for JPA.
* use Helidon h2 driver
* move native configuration to correct modules

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-06-19 16:49:13 +02:00
Tomas Kraus
8233ebb3d4 JPA tests and native-image build changes
Signed-off-by: Tomas Kraus <Tomas.Kraus@oracle.com>
2020-06-19 16:49:13 +02:00
Tomas Langer
96583b271c Native image updates (#2050)
Oracle hibernate dialect moved to Helidon configuration, so it does not emit a warning when not on classpath
Using different build flags for mp-2 tests, as it took too long
Added native-image config for new Jersey proxies
Updated Netty native options due to a new failure

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-06-18 18:10:36 +02:00
Tomas Langer
b78c4b1ef0 Oracle with JPA (#2044)
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-06-18 15:36:35 +02:00
Romain Grecourt
b4bdb91bc5 Fix new integrations/db modules (#2042)
* Skip javadoc only in db/h2 to workaround bad module-info in the SVM dependency.
Generate empty javadoc in ojdbc.

* skip spotbugs in integrations/db/h2
2020-06-17 18:15:35 -07:00
Romain Grecourt
097affe469 add empty javadoc and empty sources to integrations/db/hk2 (#2041) 2020-06-17 18:00:27 -07:00
Tomas Langer
6b7eb53335 Database native support update (#2028)
* Database access for native image update
* Support for Oracle JDBC driver
* Support for H2 JDBC driver
* Support for mongoDB
* Updated Pokemon example to work with all of the above

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
Co-authored-by: Paul Parkinson <paul.parkinson@gmail.com>
2020-06-17 19:32:13 +02:00
Tomas Langer
61c97a9caa MP native image no longer misses bean types for proxies. (#1988)
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-06-16 14:31:38 -07:00
Tomas Langer
4abd0a3cd6 Feature refactoring (#1944)
* Features simplification.
* Added  excludes
* Moved initialization of log to native image extension
* Log statements for unsupported features in native image

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-06-16 18:21:24 +02:00
Tomas Langer
0e6cbaa3b7 Remove obsolete configuration file. (#1927)
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-06-04 17:29:25 +02:00
Laird Nelson
ccf82a292c Fixes StackOverflowError unearthed by new MicroProfile Config implementation (#1760)
Fixes StackOverflowError unearthed by new MicroProfile Config implementation.

Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
2020-06-01 15:11:21 -07:00
Tomas Langer
8185c08069 Removed deprecations (#1892)
- Removed deprecated methods
- Updated deprecated comments to clearly mark 2.0.0 deprecations
2020-05-29 11:17:43 +02:00
Laird Nelson
5e3c7a0fba Added a profile in jpa-cdi to perform static JPA tasks when maven.test.skip is not set to true and to skip them otherwise (#1758)
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
2020-05-08 15:33:30 -07:00
Laird Nelson
de54907a4a Removed deprecated serviceconfiguration projects. (#1756)
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
2020-05-08 11:21:17 -07:00
Tomas Langer
7d2f70897f MP Config fixes (#1721)
MP Config implementation to correctly support mutable config sources.
2020-05-06 11:44:31 +02:00
Tomas Langer
71e5ca25e7 MP native image updates 2020-05-05 20:54:16 +02:00
Laird Nelson
0e8f92ada4 Updated Oracle JDBC driver Maven coordinates. (#1723)
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
2020-05-04 14:05:28 -07:00
Tomas Langer
0c94ec317a Dependency convergence + jakarta libraries. (#1600)
* Dependency convergence + jakarta libraries.
* Tests for jar and module path fro MP.
* Dependency fixes to resolve javadoc issues.
* Fixed the command line scripts that validate classpath and module path.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-04-14 20:14:44 +02:00
Tomas Langer
e9774cdb9f Fixes for MP quickstart in native image. (#1564)
* Fixes for MP quickstart in native image.
* Mp Quicstart update - fix injection and documentation.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-03-24 12:54:13 +01:00
Laird Nelson
a30e50e5c8 Removes assertions that do not hold when alternatives and specialization are in play (#1556)
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
2020-03-20 11:03:37 -07:00
Tomas Langer
cce12165e1 Resource from config refactoring. (#1530)
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-03-18 14:12:39 -07:00
Daniel Kec
0e3828942e Fix master (#1528)
Signed-off-by: Daniel Kec <daniel.kec@oracle.com>
2020-03-17 14:48:36 +01:00
Tomas Langer
3f2237f7ac JPA and JTA for native image (#1478)
* JPA and JTA for native image.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-03-17 09:18:58 +01:00
Joe DiPol
7d500a2784 Java 11 javadoc fixes. Turn on failOnError (#1386)
* Java 11 javadoc fixes. Turn on failOnError
* Switch to javadoc aggregate goal. Docs are generated as part of site lifecycle
* Update build.sh to build aggregated javadocs after build
* Cleanup based on PR feedback
* Removed requires java.activation
* Update jpa-cdi module-info
* Javadoc: update webclient module-info. Restore webserver dep in native-image-extension
* Update build.sh to use tagged release of javadoc-pluing
2020-03-13 13:03:58 -07:00
Laird Nelson
248d54c121 Ensures that JtaDataSource instances that are acquired when a transaction is already active have their Synchronizations registered appropriately. (#1497)
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
2020-03-12 08:03:38 -07:00
Laird Nelson
1d327c5edf Resolves JTA/JPA transaction synchronization issues (#1473)
Resolves transaction synchronization issues

Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
2020-03-06 16:31:56 -08:00
Laird Nelson
337850c0d4 Added small test to verify database changes in existing JPA test (#1471)
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
2020-03-04 13:31:47 -08:00
Laird Nelson
24c8de11d9 Added further tests in TestJpaTransactionScopedSynchronizedEntityManager.java (#1453)
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
2020-02-27 15:28:20 -08:00
Tomas Langer
206206a5c8 Configuration changes (#1357)
* Removal of project Reactor.
* Change support refactoring - in progress.
* Fixed value resolving, MP uses latest config.
* Longer timeouts for slow tests.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-02-20 11:41:09 +01:00
Laird Nelson
5eb505800b Hopefully fixes apparently intermittent build errors experienced only on Wercker-built master (#1366)
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
2020-02-06 14:19:01 -08:00
Laird Nelson
b60e971518 Added more JPA tests (#1355)
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
2020-02-06 10:41:42 -08:00
Joe DiPol
e25fdd4774 Update version to 2.0.0-SNAPSHOT. update-version now edits build.grad… (#1348)
* Update version to 2.0.0-SNAPSHOT. update-version now edits build.gradle file
2020-02-03 22:23:42 -08:00
Laird Nelson
c29a182f88 Fixes an issue with multiple persistence units. (#1342)
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
2020-02-03 13:48:18 -08:00
Laird Nelson
f7229a7db4 Fixing copyright issues (#1337)
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
2020-01-31 12:36:42 -08:00
Laird Nelson
5d039a78ae Permits non-XA DataSources to take part in JTA transactions (#1316)
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
2020-01-31 10:35:22 -08:00
Tomas Langer
76b8fbee89 Helidon MP revamped for native-image
Signed-off-by: Tomas Langer <tomas.langer@oracle.com>

Work around issues with the reduced pom created by maven-shade-plugin.
See https://issues.apache.org/jira/browse/MNG-5899

Inline the reduced dependencies in the original pom.
Turn-off reduced pom generation.

Update microprofile/weld/pom.xml

Build fixes after repackaging weld.

Build fix - spotbugs exclude missing.

Simplify build and runtime events.

Using predefined priorities.

Validations for all modules in test.

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2020-01-13 23:40:30 +01:00
Laird Nelson
8bd9ae194f Relaxed requirements on container-managed persistence units which can now be resource-local (#1243)
Signed-off-by: Laird Nelson <laird.nelson@oracle.com>
2019-12-17 15:19:34 -08:00
Tomas Langer
8ae046ecf9 Update to Java 11 APIs (#1232)
* Remove OptionalHelper and replace with Optional methods.
* Remove CollectionsHelper and replace with Set, Map and List methods.
* Replaced `InputStreamHelper` with method of `InputStream`
* Replaced Helidon `StackWalker` with the one from Java
* Updated CHANGELOG.md
* Added an exclude for spotbugs to work around
    https://github.com/spotbugs/spotbugs/issues/756

Signed-off-by: Tomas Langer <tomas.langer@oracle.com>
2019-12-17 20:33:51 +01:00