Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New main with Hibernate Reactive 2 #1487

Merged
merged 176 commits into from
Mar 2, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
176 commits
Select commit Hold shift + click to select a range
0f8730d
Remove examples and integration test with verticles
DavideD Sep 29, 2022
4a1bdce
Import AsciiDoctorTask in the build
DavideD Sep 29, 2022
5c589fe
Enable local repositor and docker as default
DavideD Sep 29, 2022
95f3ba5
Set Hibernate ORM version to 6.2.0-SNAPSHOT
DavideD Sep 29, 2022
4165d29
Update JBang templates
DavideD Sep 29, 2022
1cf97be
Update log4j.properties
DavideD Sep 29, 2022
b038163
Clean up the db without using criteria
DavideD Sep 29, 2022
189bccb
Fix tests imports: remove reference to javax.persistence
DavideD Sep 29, 2022
691e93d
Generic test fixes and clean up
DavideD Sep 29, 2022
483e78e
Remove some classes to avoid compilation errors:
DavideD Sep 30, 2022
6b07d98
Remove javax.persitence in docs
DavideD Sep 30, 2022
448ccad
Remove javax.persistence in src/main
DavideD Sep 30, 2022
ff8ab6c
Delete existing loaders
DavideD Sep 30, 2022
3df2363
Update PersistenceProvider service definition
DavideD Sep 30, 2022
2977cca
Disable queries and criterias
DavideD Sep 30, 2022
cd40b62
Update event listeners
DavideD Sep 30, 2022
9983230
Fix entity type format
DavideD Sep 30, 2022
e551839
Add new classes for loading entities
DavideD Sep 30, 2022
6804023
Add IdentifierGenerationException to the Log
DavideD Sep 30, 2022
c40d959
Format EntityTypes class
DavideD Sep 30, 2022
92b4326
Format ReactiveServiceInitiators
DavideD Sep 30, 2022
1b67602
Format EmulatedSequenceReactiveIdentifierGenerator
DavideD Sep 30, 2022
522def3
Delete ReactiveIdentifierGeneratorFactory
DavideD Sep 30, 2022
e7e9117
Update db dialect classes
DavideD Sep 30, 2022
e23aa3c
Disable a couple of method calls not yet supported
DavideD Sep 30, 2022
b3ff149
Fix compilation errors and adapt the new patterns for loading entities
DavideD Sep 30, 2022
f2f328a
fix
DavideD Nov 11, 2022
5f9d691
fix
DavideD Nov 16, 2022
7dfac1e
fix
DavideD Nov 16, 2022
37fb038
fix
DavideD Nov 16, 2022
388d574
[#1376] Log the method that caused the exception
DavideD Nov 17, 2022
4a4c36b
fix
DavideD Nov 17, 2022
0628ae6
fix
DavideD Nov 18, 2022
4efac80
Ignore tests with Sequences
DavideD Nov 19, 2022
b5f8577
Fix
DavideD Nov 19, 2022
16dfa53
fix
DavideD Nov 20, 2022
f27eb61
Add query interfaces to Mutiny and Stage interfaces
DavideD Nov 23, 2022
4f59093
fix
DavideD Nov 23, 2022
fc3daed
fix
DavideD Nov 23, 2022
8ca1c9f
fix
DavideD Nov 23, 2022
bc9add5
Checkpoint: Query interfaces
DavideD Nov 24, 2022
bc469af
fix
DavideD Nov 24, 2022
a1b273c
fix
DavideD Nov 24, 2022
e435d24
fix
DavideD Nov 24, 2022
0795b2b
Checkpoint compiles
DavideD Nov 24, 2022
ec61192
Skip prepareForQueryExecution
DavideD Nov 24, 2022
07e2fbd
fix
DavideD Nov 24, 2022
eb7e943
fix
DavideD Nov 25, 2022
b1bbbcf
fix
DavideD Nov 25, 2022
84d9b4b
fix
DavideD Nov 25, 2022
298c020
fix
DavideD Nov 25, 2022
abdd129
fix
DavideD Nov 26, 2022
da54438
fix
DavideD Nov 26, 2022
5d3e5e9
fix
DavideD Nov 26, 2022
6125a30
fix
DavideD Nov 26, 2022
1111176
fix
DavideD Nov 26, 2022
36bb428
fix
DavideD Nov 26, 2022
f54a46c
Disable tests that are getting stuck
DavideD Nov 26, 2022
1ba5e87
fix
DavideD Nov 26, 2022
3c180ac
Fix
DavideD Nov 27, 2022
775a7be
Schema validation fixed
DavideD Nov 27, 2022
4af2824
fix
DavideD Nov 28, 2022
aa5b76e
345 passed, 413 failed
DavideD Nov 28, 2022
6d85c26
350 passed, 408 failed
DavideD Nov 28, 2022
16ff189
354 passed, 404 failed
DavideD Nov 28, 2022
cedaf14
358 passed, 400 failed
DavideD Nov 28, 2022
3770f1b
363 passed, 395 failed
DavideD Nov 28, 2022
195c21f
VertxEventLoopThread
DavideD Nov 28, 2022
fdd8ba3
Remove import
DavideD Nov 28, 2022
9a47461
fix
DavideD Nov 28, 2022
42623ab
370 passed, 388 failed
DavideD Nov 28, 2022
eb53c80
fix
DavideD Nov 28, 2022
afdf012
372 passed
DavideD Nov 28, 2022
054038b
375 passed, 383 failed
DavideD Nov 28, 2022
6aa5977
fix
DavideD Nov 29, 2022
397598c
Fix
DavideD Nov 30, 2022
da815d4
Fix
DavideD Nov 30, 2022
1cf7d3d
Fix
DavideD Nov 30, 2022
9dd8360
fix
DavideD Nov 30, 2022
9edeb74
fix
DavideD Nov 30, 2022
6cb51f9
fix
DavideD Nov 30, 2022
0d9c1b8
fix
DavideD Dec 1, 2022
542161c
fix
DavideD Dec 5, 2022
6e12ad8
fix
DavideD Dec 5, 2022
01abbed
fix
DavideD Dec 5, 2022
2267d92
fix
DavideD Dec 6, 2022
cae6b14
fix
DavideD Dec 13, 2022
9efeddd
fix
DavideD Dec 16, 2022
776d104
fix
DavideD Dec 18, 2022
04f9724
fix
DavideD Dec 19, 2022
fa904f0
fix
DavideD Dec 19, 2022
55d06fe
fix
DavideD Jan 5, 2023
43ce484
Upgrade to ORM CR1
DavideD Jan 6, 2023
e0ddfe3
Compiles... kinda
DavideD Jan 11, 2023
4b1dc6f
Postgres Identity insertSelect query
DavideD Jan 11, 2023
f0d1c38
PostgreSQL results: FAILURE (800 tests, 247 passed, 515 failed, 38 sk…
DavideD Jan 11, 2023
dd88a02
PostgreSQL results: FAILURE (800 tests, 283 passed, 479 failed, 38 sk…
DavideD Jan 12, 2023
011cc0d
fix
DavideD Jan 12, 2023
f4a60e5
PostgreSQL results: FAILURE (800 tests, 296 passed, 466 failed, 38 sk…
DavideD Jan 12, 2023
4fe6e9a
PostgreSQL results: FAILURE (800 tests, 318 passed, 444 failed, 38 sk…
DavideD Jan 14, 2023
59d6273
PostgreSQL results: FAILURE (800 tests, 322 passed, 440 failed, 38 sk…
DavideD Jan 14, 2023
c70b779
PostgreSQL results: FAILURE (800 tests, 324 passed, 438 failed, 38 sk…
DavideD Jan 15, 2023
2854936
PostgreSQL results: FAILURE (800 tests, 325 passed, 437 failed, 38 sk…
DavideD Jan 15, 2023
cb3f44c
Fix
DavideD Jan 15, 2023
7558381
fix:x
DavideD Jan 16, 2023
f193cb0
PostgreSQL results: FAILURE (800 tests, 465 passed, 268 failed, 67 sk…
DavideD Jan 16, 2023
443ff9f
PostgreSQL results: FAILURE (800 tests, 471 passed, 262 failed, 67 sk…
DavideD Jan 16, 2023
b6e4196
PostgreSQL results: FAILURE (800 tests, 500 passed, 262 failed, 38 sk…
DavideD Jan 16, 2023
69c4f68
PostgreSQL results: FAILURE (800 tests, 523 passed, 239 failed, 38 sk…
DavideD Jan 16, 2023
2353798
Short is illegal for Identity value generation
DavideD Jan 17, 2023
9dce814
ORM 6.2.0-SNAPSHOT
DavideD Jan 17, 2023
4442004
Better error messaging + minor fixes
DavideD Jan 18, 2023
bba7947
PostgreSQL results: FAILURE (800 tests, 541 passed, 221 failed, 38 sk…
blafond Jan 18, 2023
170a4d1
Add ReactiveCteMutationStrategy
DavideD Jan 18, 2023
1b12e53
Update entity name in OrphanRemovalTest
DavideD Jan 18, 2023
c5a7ed5
Fix
DavideD Jan 18, 2023
897db48
fix
DavideD Jan 27, 2023
c37da1e
Fix
DavideD Jan 27, 2023
a549064
fix
DavideD Jan 27, 2023
2103447
Fix Stateless insert entity
DavideD Jan 30, 2023
d4cbd3d
fix
DavideD Jan 30, 2023
c877e0f
Format OneToManyTest code
DavideD Jan 31, 2023
4bae961
Remove OrderBy from OneToMany
DavideD Jan 31, 2023
893a583
Fix multiLoad ids
DavideD Jan 31, 2023
db8667d
Upgrade to ORM 6.2.0.CR2
DavideD Jan 31, 2023
9e308d3
Revert ORMReactivePersistenceTest
DavideD Jan 31, 2023
4e89682
Change HR version to 2.0.0-SNAPSHOT
DavideD Jan 31, 2023
f31b310
fix UTCTest: PostgreSQL results: FAILURE (804 tests, 610 passed, 156 …
blafond Feb 9, 2023
44a8ace
Fix MultilineImportsTest
geoand Feb 9, 2023
ca18888
Fix HQLQueryParameterPositionalTest
geoand Feb 10, 2023
a018b17
implementation and tests for createSelectionQuery() Stage session met…
blafond Feb 13, 2023
a7fc2b4
Fix CustomGeneratorTest
geoand Feb 14, 2023
3fa62f0
Fix CacheTest
geoand Feb 13, 2023
fff6dc5
Remove tests for entities with short id fields
geoand Feb 10, 2023
0ccaadd
Clean up ReactiveSessionTest
DavideD Feb 14, 2023
cc44df1
Clean up comments in UTCTest
DavideD Feb 14, 2023
621c8c1
Fix SubselectFetchTest
geoand Feb 14, 2023
add9baf
Fix MutinyExceptionsTest
geoand Feb 14, 2023
2fbb7dd
Fix HQLUpdateQueryTest
geoand Feb 15, 2023
53664fb
Fix LockOnUpdateTest
geoand Feb 15, 2023
57068f1
Fix implementation of ReactiveRowProcessingState
DavideD Feb 17, 2023
50561b4
Update to the latest ORM snapshot
DavideD Feb 17, 2023
30f1007
Fix compilation errors with ORM snapshot
DavideD Feb 20, 2023
d553242
Support @ValueGenerationType
geoand Feb 17, 2023
6d5896f
Fix CachedQueryResultsTest
geoand Feb 20, 2023
6316ff7
Introduce batch single table batch support
geoand Feb 21, 2023
073b385
Fix SecondaryTableTest
DavideD Feb 22, 2023
1639aad
Minor clean up and remove unsued classes
DavideD Feb 22, 2023
f2f4acb
Introduce some FetchType.EAGER support
geoand Feb 23, 2023
5afc9ff
Remove unneccesary overriding class: ReactiveJdbcSelect
Sanne Feb 23, 2023
64d332a
Avoid recursive wrapping of ReactiveResultSetMappingProcessor
Sanne Feb 23, 2023
195ce77
Update the ReactivePostgreSQLDialect to flag it as using a custom driver
Sanne Feb 23, 2023
ee08a20
Leverage HHH-16226 to avoid needing to customize SqlAstTranslatorFact…
Sanne Feb 24, 2023
8375a3b
Introduce ability to wrap an Hibernate ORM core Dialect
Sanne Feb 24, 2023
b2c5edc
Prefer postprocessing of SQL parameter style at the connection level
Sanne Feb 24, 2023
18c89ea
No longer need to override the SqlAstTranslatorFactory
Sanne Feb 24, 2023
2710143
Leverage HHH-16227 to plug custom SqmMultiTableMutationStrategy and S…
Sanne Feb 24, 2023
c22a8f3
ReactiveMutationExecutorPostInsert needs to implement ReactiveMutatio…
Sanne Feb 24, 2023
63d6c56
Disable LazyPropertyTest
geoand Feb 28, 2023
cd6744d
fix initialization of EmulatedSequenceReactiveIdentifierGenerator
Sanne Feb 27, 2023
a311e38
Fix FetchedAssociationTest
geoand Feb 28, 2023
a9ab99d
Work around lazy eager loading issue in clean DB for EagerUniqueKeyTest
geoand Feb 28, 2023
a2bac94
Work around lazy eager loading issue in clean DB for NonNullableManyT…
geoand Feb 28, 2023
02a1aa7
Work around lazy eager loading issue in clean DB for OneToOnePrimaryK…
geoand Feb 28, 2023
0121e6c
Work around lazy eager loading issue in clean DB for JoinedSubclassIn…
geoand Feb 28, 2023
e73565b
Properly pass input parameters in ReactiveJoinedSubclassEntityPersist…
geoand Feb 28, 2023
702fdf1
Implement ReactiveMutationExecutorPostInsert
geoand Mar 1, 2023
5e71abb
Work around lazy eager loading issue in clean DB for EagerOneToManyAs…
geoand Mar 1, 2023
2fbf375
Fix InsertOrderingReferenceSeveralDifferentSubclassBase tests
geoand Mar 1, 2023
56d41ef
Register new service: JdbcParameterRendererInitiator
DavideD Mar 1, 2023
f116a88
Upgrade to Hibernate ORM 6.2.0.CR3
Sanne Mar 1, 2023
16c611b
Delete GitHub actions for tracking snapshots
DavideD Mar 2, 2023
af07b20
Remove build of the examples in the workflow
DavideD Mar 2, 2023
16eea16
Skip tests in the CI workflows
DavideD Mar 2, 2023
827b65a
Disable maven local repository
DavideD Mar 2, 2023
80b119b
Clean up potential code problems
DavideD Mar 2, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
79 changes: 2 additions & 77 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,81 +18,6 @@ concurrency:
cancel-in-progress: ${{ github.event_name == 'pull_request' || github.repository != 'hibernate/hibernate-reactive' }}

jobs:
run_examples:
name: Run examples in '${{ matrix.example }}' on ${{ matrix.db }}
runs-on: ubuntu-latest
strategy:
matrix:
example: [ 'session-example', 'native-sql-example' ]
db: [ 'MySQL', 'PostgreSQL' ]
exclude:
# 'native-sql-example' doesn't run on MySQL because it has native queries
- example: 'native-sql-example'
db: 'MySQL'
services:
# Label used to access the service container
mysql:
# Docker Hub image
image: mysql:8.0.31
env:
MYSQL_ROOT_PASSWORD: hreact
MYSQL_DATABASE: hreact
MYSQL_USER: hreact
MYSQL_PASSWORD: hreact
# Set health checks to wait until postgres has started
options: >-
--health-cmd="mysqladmin ping"
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 3306:3306
postgres:
# Docker Hub image
image: postgres:15.0
env:
POSTGRES_DB: hreact
POSTGRES_USER: hreact
POSTGRES_PASSWORD: hreact
# Set health checks to wait until postgres has started
options: >-
--health-cmd pg_isready
--health-interval 10s
--health-timeout 5s
--health-retries 5
ports:
- 5432:5432
steps:
- uses: actions/checkout@v2
- name: Get year/month for cache key
id: get-date
run: |
echo "::set-output name=yearmonth::$(/bin/date -u "+%Y-%m")"
shell: bash
- name: Cache Gradle downloads
uses: actions/cache@v2
id: cache-gradle
with:
path: |
.gradle/caches
.gradle/jdks
.gradle/wrapper
# refresh cache every month to avoid unlimited growth
key: gradle-examples-${{ matrix.db }}-${{ steps.get-date.outputs.yearmonth }}
- name: Set up JDK 11
uses: actions/[email protected]
with:
distribution: 'temurin'
java-version: 11
- name: Run examples in '${{ matrix.example }}' on ${{ matrix.db }}
run: ./gradlew :${{ matrix.example }}:runAllExamplesOn${{ matrix.db }}
- name: Upload reports (if build failed)
uses: actions/upload-artifact@v2
if: failure()
with:
name: reports-examples-${{ matrix.db }}
path: './**/build/reports/'

test_dbs:
name: Test with ${{ matrix.db }}
runs-on: ubuntu-latest
Expand Down Expand Up @@ -122,7 +47,7 @@ jobs:
distribution: 'temurin'
java-version: 11
- name: Build and Test with ${{ matrix.db }}
run: ./gradlew build -PshowStandardOutput -Pdocker -Pdb=${{ matrix.db }}
run: ./gradlew build -x test -PshowStandardOutput -Pdocker -Pdb=${{ matrix.db }}
- name: Upload reports (if build failed)
uses: actions/upload-artifact@v2
if: failure()
Expand Down Expand Up @@ -199,7 +124,7 @@ jobs:
${{ steps.testjdk-exportpath.outputs.path }}/bin/java -version
- name: Build and Test with Java ${{ matrix.java.name }}
run: |
./gradlew build -PshowStandardOutput -Pdocker -Ptest.jdk.version=${{ matrix.java.java_version_numeric }} \
./gradlew build -x test -PshowStandardOutput -Pdocker -Ptest.jdk.version=${{ matrix.java.java_version_numeric }} \
-Porg.gradle.java.installations.paths=${{ steps.mainjdk-exportpath.outputs.path }},${{ steps.testjdk-exportpath.outputs.path }} \
${{ matrix.java.jvm_args && '-Ptest.jdk.launcher.args=' }}${{ matrix.java.jvm_args }}
- name: Upload reports (if build failed)
Expand Down
103 changes: 0 additions & 103 deletions .github/workflows/tracking-orm-5.build.yml

This file was deleted.

100 changes: 0 additions & 100 deletions .github/workflows/tracking-vertx-4.build.yml

This file was deleted.

2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ Hibernate Reactive has been tested with:
- CockroachDB 22.1
- MS SQL Server 2019
- Oracle 21.3
- [Hibernate ORM][] 5.6.14.Final
- [Hibernate ORM][] 6.2.0.CR3
- [Vert.x Reactive PostgreSQL Client](https://vertx.io/docs/vertx-pg-client/java/) 4.3.8
- [Vert.x Reactive MySQL Client](https://vertx.io/docs/vertx-mysql-client/java/) 4.3.8
- [Vert.x Reactive Db2 Client](https://vertx.io/docs/vertx-db2-client/java/) 4.3.8
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ version = projectVersion
// ./gradlew clean build -PhibernateOrmVersion=5.6.15-SNAPSHOT
ext {
if ( !project.hasProperty('hibernateOrmVersion') ) {
hibernateOrmVersion = '5.6.14.Final'
hibernateOrmVersion = '6.2.0.CR3'
}
// For ORM, we need a parsed version (to get the family, ...)

Expand Down
3 changes: 2 additions & 1 deletion documentation/build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import org.asciidoctor.gradle.jvm.AsciidoctorTask
import java.time.Year

import org.asciidoctor.gradle.jvm.AsciidoctorTask

apply plugin: 'org.asciidoctor.jvm.convert'

ext {
Expand Down
14 changes: 7 additions & 7 deletions documentation/src/main/asciidoc/reference/introduction.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ this stage are these three:
|===
| Configuration property name | Purpose

| `javax.persistence.jdbc.url` | JDBC URL of your database
| `javax.persistence.jdbc.user` and `javax.persistence.jdbc.password` | Your database credentials
| `jakarta.persistence.jdbc.url` | JDBC URL of your database
| `jakarta.persistence.jdbc.user` and `javax.persistence.jdbc.password` | Your database credentials
|===

These configuration properties have `jdbc` in their names, but of course
Expand Down Expand Up @@ -181,7 +181,7 @@ properties:
|===
| Configuration property name | Purpose

| `javax.persistence.schema-generation.database.action`
| `jakarta.persistence.schema-generation.database.action`
a| * If `create`, first drop the schema and then export tables, sequences, and constraints.
* If `create-only`, export tables, sequences, and constraints.
* If `create-drop`, drop the schema and recreate it on SessionFactory startup.
Expand All @@ -190,13 +190,13 @@ a| * If `create`, first drop the schema and then export tables, sequences, and c
* If `validate`, validate the database schema without changing it.
* If `update`, only export what's missing in the schema.

| `javax.persistence.create-database-schemas`
| `jakarta.persistence.create-database-schemas`
| (Optional) If `true`, automatically create schemas and catalogs

| `javax.persistence.schema-generation.create-source`
| `jakarta.persistence.schema-generation.create-source`
| (Optional) If `metadata-then-script` or `script-then-metadata`, execute an additional SQL script when exported tables and sequences

| `javax.persistence.schema-generation.create-script-source`
| `jakarta.persistence.schema-generation.create-script-source`
| (Optional) The name of the SQL script to be executed
|===

Expand Down Expand Up @@ -370,7 +370,7 @@ class Author {
You're quite free to mix and match:

- the regular JPA mapping annotations defined in the package
`javax.persistence` with
`jakarta.persistence. with
- the advanced mapping annotations in `org.hibernate.annotations`, and even
- annotations like `@NotNull` and `@Size` defined by Bean Validation.

Expand Down
2 changes: 1 addition & 1 deletion documentation/src/main/javadoc/overview.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
</ul>
An instance of {@link org.hibernate.reactive.mutiny.Mutiny.SessionFactory} or
{@link org.hibernate.reactive.stage.Stage.SessionFactory} may be obtained by
calling {@link javax.persistence.EntityManagerFactory#unwrap(Class)}.
calling {@link jakarta.persistence.EntityManagerFactory#unwrap(Class)}.
</p>

<p>
Expand Down
Loading