From 8270261166811dd04840ab30b00864ed7a52fecb Mon Sep 17 00:00:00 2001 From: Christian Beikov Date: Mon, 4 Nov 2024 14:13:54 +0100 Subject: [PATCH 01/10] Prepare for 2.0 by removing old cruft --- .github/quarkus-ecosystem-test | 4 +- .github/workflows/ci.yaml | 585 +-- .github/workflows/latest.yaml | 17 +- .github/workflows/publish-snapshot.yaml | 5 - .github/workflows/quarkus-snapshot.yaml | 3 +- README.md | 168 +- archetype/core-sample-jakarta/pom.xml | 56 - .../resources/META-INF/maven/archetype.xml | 21 - .../resources/archetype-resources/pom.xml | 127 - .../main/resources/META-INF/persistence.xml | 19 - .../test/java/sample/AbstractSampleTest.java | 99 - .../src/test/java/sample/SampleTest.java | 31 - archetype/core-sample/pom.xml | 2 +- .../resources/archetype-resources/pom.xml | 109 +- .../src/main/java/model/Cat.java | 12 +- .../src/main/java/model/Person.java | 8 +- .../main/resources/META-INF/persistence.xml | 14 +- .../test/java/sample/AbstractSampleTest.java | 16 +- .../src/test/java/sample/SampleTest.java | 6 +- .../resources/META-INF/maven/archetype.xml | 2 +- .../resources/archetype-resources/pom.xml | 271 +- .../src/main/java/Application.java | 4 +- .../CriteriaBuilderFactoryProducer.java | 16 +- .../java/config/EntityManagerProducer.java | 14 +- .../config/EntityViewManagerProducer.java | 12 +- .../java/controller/SampleController.java | 8 +- .../src/main/java/model/Cat.java | 12 +- .../src/main/java/model/Person.java | 8 +- .../src/main/resources/META-INF/beans.xml | 7 +- .../main/resources/META-INF/persistence.xml | 10 +- .../test/java/sample/AbstractSampleTest.java | 26 +- .../sample/EntityManagerFactoryHolder.java | 18 +- .../src/test/java/sample/SampleTest.java | 8 +- .../src/test/java/sample/TestExtension.java | 6 +- .../src/test/resources/META-INF/beans.xml | 7 +- ...> jakarta.enterprise.inject.spi.Extension} | 0 archetype/entity-view-sample-jakarta/pom.xml | 56 - .../resources/META-INF/maven/archetype.xml | 24 - .../resources/archetype-resources/pom.xml | 142 - .../src/main/java/model/Cat.java | 98 - .../src/main/java/model/Person.java | 55 - .../test/java/sample/AbstractSampleTest.java | 116 - .../src/test/java/sample/SampleTest.java | 44 - archetype/entity-view-sample/pom.xml | 2 +- .../resources/archetype-resources/pom.xml | 109 +- .../src/main/java/model/Cat.java | 12 +- .../src/main/java/model/Person.java | 8 +- .../main/resources/META-INF/persistence.xml | 14 +- .../test/java/sample/AbstractSampleTest.java | 16 +- .../src/test/java/sample/SampleTest.java | 6 +- .../pom.xml | 2 +- .../resources/META-INF/maven/archetype.xml | 2 +- .../resources/archetype-resources/pom.xml | 133 +- .../src/main/java/Application.java | 4 +- .../CriteriaBuilderFactoryProducer.java | 16 +- .../java/config/EntityManagerProducer.java | 14 +- .../config/EntityViewManagerProducer.java | 12 +- .../java/controller/SampleController.java | 8 +- .../src/main/java/model/Cat.java | 0 .../src/main/java/model/Person.java | 0 .../repository/CatSimpleViewRepository.java | 12 +- .../src/main/java/view/CatSimpleView.java | 0 .../src/main/java/view/CatWithOwnerView.java | 0 .../src/main/java/view/PersonSimpleView.java | 0 .../src/main/resources/META-INF/beans.xml | 11 + .../main/resources/META-INF/persistence.xml | 8 +- .../test/java/sample/AbstractSampleTest.java | 26 +- .../sample/EntityManagerFactoryHolder.java | 18 +- .../src/test/java/sample/SampleTest.java | 6 +- .../src/test/java/sample/TestExtension.java | 6 +- .../src/test/resources/META-INF/beans.xml | 11 + .../jakarta.enterprise.inject.spi.Extension} | 0 .../src/main/java/model/Cat.java | 98 - .../src/main/java/model/Person.java | 55 - .../src/main/java/view/CatSimpleView.java | 18 - .../src/main/java/view/CatWithOwnerView.java | 16 - .../src/main/java/view/PersonSimpleView.java | 19 - .../src/main/resources/META-INF/beans.xml | 8 - .../main/resources/META-INF/persistence.xml | 19 - .../src/test/resources/META-INF/beans.xml | 8 - archetype/pom.xml | 5 +- .../resources/archetype-resources/pom.xml | 107 +- .../config/BlazePersistenceConfiguration.java | 4 +- .../src/main/java/model/Cat.java | 12 +- .../src/main/java/model/Person.java | 8 +- .../test/java/sample/AbstractSampleTest.java | 8 +- .../src/test/java/sample/SampleTest.java | 12 +- .../resources/archetype-resources/pom.xml | 117 +- .../config/BlazePersistenceConfiguration.java | 4 +- .../src/main/java/model/Cat.java | 12 +- .../src/main/java/model/Person.java | 8 +- .../resources/META-INF/application-config.xml | 4 +- .../main/resources/META-INF/persistence.xml | 10 +- .../test/java/sample/AbstractSampleTest.java | 16 +- .../src/test/java/sample/SampleTest.java | 16 +- build-local.sh | 8 +- build.sh | 20 +- checkstyle-rules/pom.xml | 1 - .../checkstyle-suppressions.xml | 4 +- ci/build-github-latest.sh | 12 +- ci/build-github.sh | 2 - ci/build-travis.sh | 32 - ci/deploy-snapshot-travis.sh | 15 - ci/deploy-snapshot.sh | 2 +- core/api-jakarta/pom.xml | 248 -- core/api-jar/pom.xml | 117 - core/api/pom.xml | 90 +- .../persistence/BaseSubqueryBuilder.java | 2 +- .../persistence/CommonQueryBuilder.java | 2 +- .../persistence/ConfigurationProperties.java | 2 +- .../blazebit/persistence/CriteriaBuilder.java | 2 +- .../persistence/CriteriaBuilderFactory.java | 12 +- .../persistence/DefaultPackageOpener.java | 6 +- .../com/blazebit/persistence/Executable.java | 2 +- .../java/com/blazebit/persistence/From.java | 2 +- .../blazebit/persistence/FromBaseBuilder.java | 10 +- .../com/blazebit/persistence/FromBuilder.java | 98 +- .../persistence/FullQueryBuilder.java | 2 +- .../ModificationCriteriaBuilder.java | 4 +- .../persistence/PaginatedCriteriaBuilder.java | 2 +- .../persistence/PaginatedTypedQuery.java | 2 +- .../blazebit/persistence/ParameterHolder.java | 6 +- .../java/com/blazebit/persistence/Path.java | 2 +- .../blazebit/persistence/QueryBuilder.java | 2 +- .../com/blazebit/persistence/Queryable.java | 2 +- ...ingModificationCriteriaBuilderFactory.java | 2 +- .../persistence/SubqueryInitiator.java | 8 +- .../persistence/spi/AttributePath.java | 2 +- .../spi/CriteriaBuilderConfiguration.java | 2 +- ...iteriaBuilderConfigurationContributor.java | 2 +- .../persistence/spi/CteQueryWrapper.java | 2 +- .../spi/EntityManagerFactoryIntegrator.java | 2 +- .../persistence/spi/ExtendedAttribute.java | 6 +- .../persistence/spi/ExtendedManagedType.java | 8 +- .../persistence/spi/ExtendedQuerySupport.java | 4 +- .../persistence/spi/JpaMetamodelAccessor.java | 8 +- .../blazebit/persistence/spi/JpaProvider.java | 8 +- .../persistence/spi/JpaProviderFactory.java | 2 +- .../persistence/spi/JpqlFunction.java | 2 +- core/api/src/main/java/module-info.java | 12 + .../persistence/DefaultPackageOpener.java | 30 - .../src/main/resources/META-INF/MANIFEST.MF | 1 - core/impl-jakarta/pom.xml | 235 -- core/impl-jar/pom.xml | 129 - core/impl/pom.xml | 210 -- .../impl/AbstractCTECriteriaBuilder.java | 4 +- .../impl/AbstractCommonQueryBuilder.java | 30 +- ...stractDeleteCollectionCriteriaBuilder.java | 14 +- .../impl/AbstractFullQueryBuilder.java | 12 +- ...stractInsertCollectionCriteriaBuilder.java | 16 +- .../AbstractModificationCriteriaBuilder.java | 12 +- .../impl/AbstractQueryBuilder.java | 2 +- ...stractUpdateCollectionCriteriaBuilder.java | 20 +- ...AssociationFromIdParameterTransformer.java | 4 +- .../AssociationToIdParameterTransformer.java | 2 +- .../persistence/impl/AttributeHolder.java | 4 +- .../impl/BaseDeleteCriteriaBuilderImpl.java | 4 +- .../BaseFinalSetOperationBuilderImpl.java | 4 +- ...eFinalSetOperationSubqueryBuilderImpl.java | 2 +- .../impl/BaseInsertCriteriaBuilderImpl.java | 2 +- .../impl/BaseSubqueryBuilderImpl.java | 2 +- .../impl/BaseUpdateCriteriaBuilderImpl.java | 10 +- .../blazebit/persistence/impl/CTEInfo.java | 2 +- .../blazebit/persistence/impl/CTEManager.java | 2 +- .../persistence/impl/CachingJpaProvider.java | 8 +- .../persistence/impl/CallerChecker.java | 6 +- .../impl/CommonQueryBuilderAdapter.java | 6 +- ...nstantifiedJoinNodeAttributeCollector.java | 10 +- .../CriteriaBuilderConfigurationImpl.java | 2 +- .../impl/CriteriaBuilderFactoryImpl.java | 6 +- .../persistence/impl/CriteriaBuilderImpl.java | 2 +- .../impl/EmbeddableSplittingVisitor.java | 16 +- .../persistence/impl/EntityMetamodelImpl.java | 26 +- .../impl/EntitySelectResolveVisitor.java | 6 +- .../persistence/impl/ExpressionUtils.java | 22 +- .../persistence/impl/ExtendedParameter.java | 2 +- .../FunctionalDependencyAnalyzerVisitor.java | 14 +- .../persistence/impl/JoinManager.java | 20 +- .../blazebit/persistence/impl/JoinNode.java | 10 +- .../persistence/impl/JoinTreeNode.java | 2 +- .../persistence/impl/JoinVisitor.java | 6 +- .../blazebit/persistence/impl/JpaUtils.java | 14 +- ...ngoingSetOperationSubqueryBuilderImpl.java | 2 +- .../blazebit/persistence/impl/MainQuery.java | 2 +- ...ssociationParameterTransformerFactory.java | 4 +- ...ngoingSetOperationSubqueryBuilderImpl.java | 2 +- .../impl/PaginatedCriteriaBuilderImpl.java | 4 +- .../impl/PaginatedTypedQueryImpl.java | 20 +- .../persistence/impl/ParameterManager.java | 22 +- .../impl/ParameterValueTransformer.java | 2 +- .../impl/ResolvingQueryGenerator.java | 14 +- .../persistence/impl/SelectManager.java | 10 +- .../persistence/impl/SimplePathReference.java | 2 +- .../impl/SplittingParameterTransformer.java | 6 +- .../persistence/impl/SplittingVisitor.java | 2 +- ...ngoingSetOperationSubqueryBuilderImpl.java | 2 +- .../persistence/impl/SubqueryBuilderImpl.java | 2 +- .../impl/SubqueryInitiatorImpl.java | 2 +- ...ssociationParameterTransformerFactory.java | 4 +- .../impl/TreatedJoinAliasInfo.java | 2 +- .../impl/ValuesParameterBinder.java | 2 +- .../object/DelegatingTupleObjectBuilder.java | 2 +- .../object/ReturningTupleObjectBuilder.java | 4 +- .../builder/object/TupleObjectBuilder.java | 4 +- .../AbstractQuantifiablePredicateBuilder.java | 2 +- .../impl/function/entity/ValuesEntity.java | 6 +- .../plan/CustomModificationQueryPlan.java | 2 +- .../CustomReturningModificationQueryPlan.java | 2 +- .../impl/plan/CustomSelectQueryPlan.java | 2 +- .../plan/DefaultModificationQueryPlan.java | 2 +- .../impl/plan/DefaultSelectQueryPlan.java | 2 +- .../impl/query/AbstractCustomQuery.java | 8 +- .../impl/query/CTEQuerySpecification.java | 4 +- ...nDeleteModificationQuerySpecification.java | 4 +- ...nInsertModificationQuerySpecification.java | 4 +- ...nUpdateModificationQuerySpecification.java | 4 +- .../impl/query/CustomQuerySpecification.java | 6 +- .../query/CustomReturningSQLTypedQuery.java | 14 +- .../impl/query/CustomSQLQuery.java | 10 +- .../impl/query/CustomSQLTypedQuery.java | 16 +- .../impl/query/DefaultQuerySpecification.java | 6 +- .../DeleteModificationQuerySpecification.java | 4 +- .../query/ModificationQuerySpecification.java | 4 +- .../impl/query/ObjectBuilderTypedQuery.java | 8 +- .../impl/query/QuerySpecification.java | 4 +- .../persistence/impl/query/QueryWrapper.java | 12 +- .../query/SetOperationQuerySpecification.java | 4 +- .../persistence/impl/query/SetTypedQuery.java | 4 +- .../impl/query/TypedQueryWrapper.java | 12 +- .../UpdateModificationQuerySpecification.java | 4 +- .../transform/SizeTransformationVisitor.java | 16 +- core/impl/src/main/java/module-info.java | 139 + .../persistence/impl/CallerChecker.java | 26 - .../src/main/resources/META-INF/MANIFEST.MF | 1 - core/parser-jakarta/pom.xml | 227 -- core/parser-jar/pom.xml | 121 - core/parser/pom.xml | 39 +- .../persistence/parser/EntityMetamodel.java | 10 +- .../parser/ListIndexAttribute.java | 10 +- .../persistence/parser/MapEntryAttribute.java | 10 +- .../persistence/parser/MapKeyAttribute.java | 10 +- .../PathTargetResolvingExpressionVisitor.java | 19 +- .../parser/QualifiedAttribute.java | 2 +- .../parser/expression/PathReference.java | 2 +- .../parser/util/JpaMetamodelUtils.java | 18 +- .../persistence/parser/util/TypeUtils.java | 2 +- core/parser/src/main/java/module-info.java | 16 + core/pom.xml | 51 +- .../pom.xml | 480 +-- .../hibernate6/entity/IntegerProperty.java | 0 .../testsuite/hibernate6/entity/Property.java | 0 .../hibernate6/entity/PropertyHolder.java | 0 .../hibernate6/entity/StringProperty.java | 0 .../testsuite/hibernate}/AnyMappingTest.java | 2 +- .../hibernate}/CTESubselectFilteringTest.java | 23 +- .../CollectionJoinTestHibernate.java | 3 +- .../hibernate}/CustomFunctionTest.java | 29 +- ...ationInJoinedInheritanceHierarchyTest.java | 25 +- .../hibernate}/EmbeddableIdComplexTest.java | 7 +- .../testsuite/hibernate}/EnversTest.java | 15 +- .../testsuite/hibernate}/FullJoinTest.java | 15 +- .../IgnoreNotFoundDereferenceTest.java | 13 +- .../testsuite/hibernate}/Issue1000Test.java | 11 +- .../testsuite/hibernate}/Issue1154Test.java | 21 +- .../testsuite/hibernate}/Issue1167Test.java | 11 +- .../testsuite/hibernate}/Issue1436Test.java | 9 +- .../testsuite/hibernate}/Issue1704Test.java | 17 +- .../testsuite/hibernate}/Issue1713Test.java | 11 +- .../testsuite/hibernate}/Issue227Test.java | 27 +- .../hibernate}/Issue336HibernateTest.java | 15 +- .../testsuite/hibernate}/Issue519Test.java | 17 +- .../testsuite/hibernate}/Issue546Test.java | 18 +- .../testsuite/hibernate}/Issue666Test.java | 15 +- .../testsuite/hibernate}/Issue950Test.java | 23 +- .../testsuite/hibernate}/Issue969Test.java | 11 +- .../hibernate}/QuotedIdentifiersTest.java | 4 +- .../entity}/EmbeddableIdTestEntity.java | 10 +- .../EmbeddableIdTestEntityEmbeddable.java | 4 +- .../entity}/EmbeddableIdTestEntityId.java | 4 +- ...mbeddableIdTestEntityNestedEmbeddable.java | 10 +- .../src/test/resources/logging.properties | 1 + core/testsuite-hibernate6/pom.xml | 842 ----- core/testsuite-jakarta/pom.xml | 298 -- core/testsuite/pom.xml | 3330 ++--------------- .../persistence/testsuite/entity/Person.java | 28 +- .../treat/entity/JoinedEmbeddable.java | 18 +- .../treat/entity/JoinedEmbeddableSub1.java | 18 +- .../treat/entity/JoinedEmbeddableSub2.java | 18 +- .../treat/entity/SingleTableEmbeddable.java | 18 +- .../entity/SingleTableEmbeddableSub1.java | 18 +- .../entity/SingleTableEmbeddableSub2.java | 18 +- .../treat/entity/TablePerClassBase.java | 26 +- .../treat/entity/TablePerClassEmbeddable.java | 22 +- .../entity/TablePerClassEmbeddableSub1.java | 22 +- .../entity/TablePerClassEmbeddableSub2.java | 22 +- .../treat/entity/TablePerClassSub1.java | 30 +- .../treat/entity/TablePerClassSub2.java | 30 +- .../persistence/testsuite/entity/Person.java | 26 +- .../treat/entity/JoinedEmbeddable.java | 18 +- .../treat/entity/JoinedEmbeddableSub1.java | 18 +- .../treat/entity/JoinedEmbeddableSub2.java | 18 +- .../treat/entity/SingleTableEmbeddable.java | 18 +- .../entity/SingleTableEmbeddableSub1.java | 18 +- .../entity/SingleTableEmbeddableSub2.java | 18 +- .../treat/entity/TablePerClassBase.java | 41 +- .../treat/entity/TablePerClassEmbeddable.java | 32 +- .../entity/TablePerClassEmbeddableSub1.java | 32 +- .../entity/TablePerClassEmbeddableSub2.java | 32 +- .../treat/entity/TablePerClassSub1.java | 34 +- .../treat/entity/TablePerClassSub2.java | 34 +- .../testsuite/AbstractCoreTest.java | 6 +- .../testsuite/entity/BlobEntity.java | 14 +- .../testsuite/entity/BookEntity.java | 10 +- .../entity/BookISBNReferenceEntity.java | 12 +- .../testsuite/entity/DeletePersonCTE.java | 8 +- .../testsuite/entity/Document.java | 36 +- .../testsuite/entity/DocumentCTE.java | 10 +- .../entity/DocumentForEntityKeyMaps.java | 16 +- .../testsuite/entity/DocumentForOneToOne.java | 10 +- .../entity/DocumentForOneToOneJoinTable.java | 10 +- .../entity/DocumentForSimpleOneToOne.java | 6 +- .../testsuite/entity/DocumentHolder.java | 10 +- .../testsuite/entity/DocumentInfo.java | 12 +- .../testsuite/entity/DocumentInfoSimple.java | 10 +- .../testsuite/entity/DocumentNodeCTE.java | 4 +- .../testsuite/entity/DocumentTupleEntity.java | 8 +- .../entity/DocumentWithNullableName.java | 14 +- .../entity/EmbeddableTestEntity.java | 18 +- .../entity/EmbeddableTestEntityContainer.java | 16 +- .../EmbeddableTestEntityEmbeddable.java | 26 +- .../entity/EmbeddableTestEntityId.java | 4 +- .../EmbeddableTestEntityIdEmbeddable.java | 4 +- .../EmbeddableTestEntityNestedEmbeddable.java | 8 +- .../entity/EmbeddableTestEntitySub.java | 4 +- .../entity/EmbeddedDocumentTupleEntity.java | 4 +- .../entity/EmbeddedDocumentTupleEntityId.java | 4 +- .../testsuite/entity/IdClassEntity.java | 18 +- .../testsuite/entity/IdHolderCTE.java | 4 +- .../testsuite/entity/IndexedEmbeddable.java | 4 +- .../testsuite/entity/IndexedNode.java | 10 +- .../testsuite/entity/IndexedNode2.java | 10 +- .../testsuite/entity/IntIdEntity.java | 12 +- .../testsuite/entity/JsonDocument.java | 8 +- .../testsuite/entity/JuniorProjectLeader.java | 4 +- .../testsuite/entity/KeyedEmbeddable.java | 4 +- .../testsuite/entity/KeyedNode.java | 10 +- .../testsuite/entity/KeyedNode2.java | 10 +- .../testsuite/entity/KeysetEntity.java | 4 +- .../testsuite/entity/KeysetEntity2.java | 6 +- .../testsuite/entity/LargeProject.java | 4 +- .../testsuite/entity/LocalizedEntity.java | 4 +- .../testsuite/entity/LongSequenceEntity.java | 6 +- .../testsuite/entity/NameObject.java | 10 +- .../testsuite/entity/NameObjectContainer.java | 14 +- .../entity/NameObjectContainer2.java | 14 +- .../entity/NaturalIdJoinTableEntity.java | 20 +- .../persistence/testsuite/entity/Order.java | 18 +- .../testsuite/entity/OrderPosition.java | 16 +- .../entity/OrderPositionElement.java | 6 +- .../testsuite/entity/OrderPositionHead.java | 12 +- .../testsuite/entity/OrderPositionHeadId.java | 2 +- .../testsuite/entity/OrderPositionId.java | 2 +- .../persistence/testsuite/entity/Ownable.java | 10 +- .../testsuite/entity/ParameterOrderCte.java | 4 +- .../testsuite/entity/ParameterOrderCteB.java | 6 +- .../entity/ParameterOrderEntity.java | 2 +- .../persistence/testsuite/entity/Parent.java | 20 +- .../testsuite/entity/PersonCTE.java | 8 +- .../entity/PersonForEntityKeyMaps.java | 14 +- .../testsuite/entity/PolymorphicBase.java | 24 +- .../entity/PolymorphicBaseContainer.java | 12 +- .../entity/PolymorphicPropertyBase.java | 12 +- .../entity/PolymorphicPropertyMapBase.java | 6 +- .../entity/PolymorphicPropertySub1.java | 8 +- .../entity/PolymorphicPropertySub2.java | 8 +- .../testsuite/entity/PolymorphicSub1.java | 8 +- .../testsuite/entity/PolymorphicSub2.java | 8 +- .../testsuite/entity/PrimitiveDocument.java | 28 +- .../testsuite/entity/PrimitiveFamily.java | 16 +- .../testsuite/entity/PrimitivePerson.java | 20 +- .../testsuite/entity/PrimitiveVersion.java | 10 +- .../persistence/testsuite/entity/Project.java | 14 +- .../testsuite/entity/ProjectLeader.java | 18 +- .../testsuite/entity/RawTypeEntity.java | 14 +- .../testsuite/entity/RecursiveEntity.java | 16 +- .../persistence/testsuite/entity/Root.java | 20 +- .../persistence/testsuite/entity/Root2.java | 10 +- .../testsuite/entity/SchemaEntity.java | 6 +- .../entity/SecondaryTableEntityBase.java | 10 +- .../entity/SecondaryTableEntitySub.java | 10 +- .../testsuite/entity/SeniorProjectLeader.java | 4 +- .../testsuite/entity/SequenceBaseEntity.java | 6 +- .../entity/SimpleEmbeddedIdEntity.java | 6 +- .../entity/SimpleEmbeddedIdEntityId.java | 2 +- .../testsuite/entity/SingularListEntity.java | 12 +- .../testsuite/entity/SmallProject.java | 4 +- .../testsuite/entity/StringIdCTE.java | 4 +- .../persistence/testsuite/entity/Sub1.java | 4 +- .../testsuite/entity/Sub1Sub1.java | 4 +- .../testsuite/entity/Sub1Sub2.java | 4 +- .../persistence/testsuite/entity/Sub2.java | 4 +- .../testsuite/entity/Sub2Sub1.java | 4 +- .../testsuite/entity/Sub2Sub2.java | 4 +- .../persistence/testsuite/entity/TPCBase.java | 8 +- .../persistence/testsuite/entity/TPCSub1.java | 2 +- .../persistence/testsuite/entity/TPCSub2.java | 2 +- .../testsuite/entity/TestAdvancedCTE1.java | 14 +- .../testsuite/entity/TestAdvancedCTE2.java | 6 +- .../persistence/testsuite/entity/TestCTE.java | 6 +- .../testsuite/entity/TestCTEEmbeddable.java | 10 +- .../persistence/testsuite/entity/Version.java | 20 +- .../testsuite/entity/Workflow.java | 18 +- .../treat/entity/IntValueEmbeddable.java | 2 +- .../testsuite/treat/entity/JoinedBase.java | 30 +- .../testsuite/treat/entity/JoinedSub1.java | 20 +- .../testsuite/treat/entity/JoinedSub2.java | 20 +- .../treat/entity/SingleTableBase.java | 30 +- .../treat/entity/SingleTableSub1.java | 22 +- .../treat/entity/SingleTableSub2.java | 22 +- .../persistence/testsuite/tx/TxSupport.java | 4 +- .../persistence/testsuite/tx/TxVoidWork.java | 2 +- .../persistence/testsuite/tx/TxWork.java | 2 +- core/testsuite/src/main/java/module-info.java | 19 + .../spi/SharedSessionContractImplementor.java | 16 - .../CustomTypeFunctionArgumentTest.java | 140 - .../persistence/testsuite/Issue1018Test.java | 150 - .../persistence/testsuite/Issue545Test.java | 80 - .../persistence/testsuite/Issue992Test.java | 64 - .../AliasBasedMapKeyDereferencingTest.java | 10 +- .../testsuite/ArrayExpressionTest.java | 2 +- .../CTEEntityInheritanceCheckTest.java | 6 +- .../testsuite/CTEQueryResultCachingTest.java | 2 +- .../persistence/testsuite/CTETest.java | 4 +- .../persistence/testsuite/CaseWhenTest.java | 2 +- .../testsuite/CollectionRoleDeleteTest.java | 4 +- .../testsuite/CollectionRoleInsertTest.java | 4 +- .../CollectionRoleInverseDeleteTest.java | 2 +- .../testsuite/CollectionRoleUpdateTest.java | 4 +- .../testsuite/ComplexExpressionTest.java | 2 +- .../persistence/testsuite/CountQueryTest.java | 4 +- .../persistence/testsuite/DateAddTest.java | 4 +- .../persistence/testsuite/DateDiffTest.java | 6 +- .../testsuite/DateExtractTest.java | 4 +- .../persistence/testsuite/DateTruncTest.java | 4 +- .../testsuite/DeletePolymorphicTest.java | 4 +- .../persistence/testsuite/DeleteTest.java | 2 +- .../testsuite/ElementCollectionTest.java | 2 +- .../testsuite/EmbeddableComplexTest.java | 2 +- .../testsuite/EmbeddableSimpleTest.java | 2 +- .../testsuite/EntityInValuesClauseTest.java | 6 +- .../persistence/testsuite/EntityJoinTest.java | 4 +- .../EntitySchemaInTableAnnotationTest.java | 2 +- .../persistence/testsuite/EnumTest.java | 4 +- .../persistence/testsuite/FunctionTest.java | 2 +- .../testsuite/GroupByEmbeddableTest.java | 2 +- .../persistence/testsuite/GroupByTest.java | 2 +- .../testsuite/GroupConcatTest.java | 4 +- .../IdClassAttributePaginationTest.java | 4 +- .../testsuite/IdClassValueQueryTest.java | 4 +- .../persistence/testsuite/InlineCTETest.java | 12 +- .../persistence/testsuite/InsertTest.java | 2 +- .../persistence/testsuite/Issue1114Test.java | 2 +- .../persistence/testsuite/Issue1228Test.java | 4 +- .../persistence/testsuite/Issue571Test.java | 14 +- .../persistence/testsuite/JoinTest.java | 4 +- .../testsuite/JpqlFunctionTest.java | 2 +- .../persistence/testsuite/JsonAndXmlTest.java | 4 +- .../testsuite/JsonGetAndSetTest.java | 4 +- .../testsuite/KeysetPaginationNullsTest.java | 4 +- ...etPaginationPage1EdgeCaseFallbackTest.java | 4 +- .../testsuite/KeysetPaginationTest.java | 4 +- .../persistence/testsuite/LimitTest.java | 2 +- .../persistence/testsuite/ListaggTest.java | 4 +- .../MultipleJoinComplexExpressionTest.java | 2 +- .../testsuite/MultipleJoinTest.java | 2 +- .../NonPrimaryKeyJoinColumnTest.java | 2 +- .../OptimizedKeysetPaginationNullsTest.java | 4 +- ...etPaginationPage1EdgeCaseFallbackTest.java | 4 +- ...ysetPaginationRowValueConstructorTest.java | 4 +- .../OptimizedKeysetPaginationTest.java | 4 +- .../persistence/testsuite/OrderByTest.java | 2 +- .../testsuite/PaginationEmbeddedIdTest.java | 4 +- .../testsuite/PaginationOneToOneTest.java | 4 +- .../persistence/testsuite/PaginationTest.java | 4 +- .../testsuite/ParameterAPITest.java | 6 +- .../testsuite/PolymorphicJoinTest.java | 2 +- .../testsuite/QueryResultCachingTest.java | 2 +- .../testsuite/SelectNewObjectBuilderTest.java | 2 +- .../persistence/testsuite/SelectNewTest.java | 2 +- .../testsuite/SelectPolymorphicTest.java | 2 +- .../persistence/testsuite/SelectTest.java | 4 +- .../testsuite/SetOperationTest.java | 4 +- .../SingleValuedAssociationManyToOneTest.java | 2 +- ...aluedAssociationOneToOneJoinTableTest.java | 2 +- .../SingleValuedAssociationOneToOneTest.java | 2 +- .../testsuite/SizeTransformationTest.java | 4 +- .../persistence/testsuite/SubqueryTest.java | 4 +- .../testsuite/TablePerClassTest.java | 2 +- .../TreatedCorrelatedSubqueryTest.java | 2 +- .../testsuite/TreatedEntityJoinTest.java | 2 +- .../persistence/testsuite/TupleTest.java | 4 +- .../UpdateEmbeddableComplexTest.java | 2 +- .../testsuite/UpdatePolymorphicTest.java | 2 +- .../persistence/testsuite/UpdateTest.java | 2 +- .../testsuite/ValuesClauseTest.java | 6 +- .../persistence/testsuite/WhereTest.java | 2 +- .../testsuite/WindowFunctionTest.java | 4 +- .../builder/AbstractTreatVariationsTest.java | 2 +- .../jpql/AbstractTreatVariationsTest.java | 4 +- creating-a-release.md | 10 +- deploy-project-release.bat | 4 +- dist/bom/pom.xml | 288 +- dist/full/pom.xml | 325 -- dist/full/src/main/distribution/assembly.xml | 116 - dist/pom.xml | 21 - documentation/pom.xml | 2 +- .../core/manual/en_US/getting_started.adoc | 199 - .../asciidoc/core/manual/en_US/querydsl.adoc | 20 +- .../manual/en_US/getting_started.adoc | 106 +- .../entity-view/manual/en_US/graphql.adoc | 23 - .../entity-view/manual/en_US/jaxrs.adoc | 24 - .../manual/en_US/serialization_support.adoc | 24 - .../entity-view/manual/en_US/spring_data.adoc | 22 +- .../manual/en_US/spring_hateoas.adoc | 18 - entity-view/api-jakarta/pom.xml | 227 -- entity-view/api-jar/pom.xml | 121 - entity-view/api/pom.xml | 48 +- .../persistence/view/CorrelationBuilder.java | 2 +- .../persistence/view/EntityViewManager.java | 2 +- .../blazebit/persistence/view/LockMode.java | 4 +- .../persistence/view/MappingInverse.java | 4 +- .../view/OptimisticLockException.java | 2 +- .../blazebit/persistence/view/PostCommit.java | 2 +- .../persistence/view/PostCommitListener.java | 2 +- .../persistence/view/PostPersist.java | 2 +- .../view/PostPersistEntityListener.java | 2 +- .../persistence/view/PostPersistListener.java | 2 +- .../blazebit/persistence/view/PostRemove.java | 2 +- .../persistence/view/PostRemoveListener.java | 2 +- .../persistence/view/PostRollback.java | 2 +- .../view/PostRollbackListener.java | 2 +- .../blazebit/persistence/view/PostUpdate.java | 2 +- .../persistence/view/PostUpdateListener.java | 2 +- .../blazebit/persistence/view/PrePersist.java | 4 +- .../view/PrePersistEntityListener.java | 2 +- .../persistence/view/PrePersistListener.java | 2 +- .../blazebit/persistence/view/PreRemove.java | 2 +- .../persistence/view/PreRemoveListener.java | 2 +- .../blazebit/persistence/view/PreUpdate.java | 2 +- .../persistence/view/PreUpdateListener.java | 2 +- .../view/SerializableEntityViewManager.java | 19 +- .../persistence/view/metamodel/ViewRoot.java | 2 +- .../view/spi/EntityViewConfiguration.java | 2 +- .../view/spi/EntityViewMapping.java | 2 +- .../view/spi/TransactionAccess.java | 2 +- .../view/spi/TransactionAccessFactory.java | 2 +- .../api/src/main/java/module-info.java | 15 + entity-view/impl-jakarta/pom.xml | 245 -- entity-view/impl-jar/pom.xml | 139 - entity-view/impl/pom.xml | 411 +- ...nJoinMappingGathererExpressionVisitor.java | 6 +- .../impl/EntityViewConfigurationImpl.java | 2 +- .../EntityViewConfigurationProviderImpl.java | 2 - .../view/impl/EntityViewManagerImpl.java | 10 +- ...calarTargetResolvingExpressionVisitor.java | 18 +- .../view/impl/SimpleParameterHolder.java | 6 +- .../TypeExtractingCorrelationBuilder.java | 6 +- .../view/impl/UpdatableExpressionVisitor.java | 4 +- .../view/impl/accessor/Accessors.java | 6 +- .../impl/entity/AbstractEntityLoader.java | 10 +- .../entity/AbstractViewToEntityMapper.java | 4 +- .../DefaultEntityLoaderFetchGraphNode.java | 6 +- .../view/impl/entity/EntityLoaders.java | 4 +- .../impl/entity/FlusherBasedEntityLoader.java | 6 +- .../view/impl/entity/FullEntityLoader.java | 6 +- .../entity/InverseElementToEntityMapper.java | 2 +- .../entity/InverseEntityToEntityMapper.java | 4 +- .../entity/InverseViewToEntityMapper.java | 4 +- .../entity/LoadOnlyViewToEntityMapper.java | 2 +- .../impl/entity/ReferenceEntityLoader.java | 6 +- ...ewClassBasedInverseViewToEntityMapper.java | 2 +- .../UpdaterBasedViewToEntityMapper.java | 2 +- .../CorrelatedSubqueryViewRootJpqlMacro.java | 4 +- .../impl/metamodel/AbstractAttribute.java | 32 +- .../metamodel/AbstractMethodAttribute.java | 10 +- .../AbstractMethodPluralAttribute.java | 2 +- .../AbstractMethodSingularAttribute.java | 6 +- .../view/impl/metamodel/AttributeMapping.java | 4 +- .../view/impl/metamodel/BasicTypeImpl.java | 4 +- .../impl/metamodel/ConvertedFlatViewType.java | 4 +- .../impl/metamodel/ConvertedViewMapping.java | 4 +- .../impl/metamodel/ConvertedViewType.java | 4 +- .../view/impl/metamodel/FlatViewTypeImpl.java | 2 +- .../impl/metamodel/ManagedViewTypeImpl.java | 22 +- .../metamodel/ManagedViewTypeImplementor.java | 4 +- .../metamodel/MappingConstructorImpl.java | 2 +- .../metamodel/MetamodelBuildingContext.java | 4 +- .../MetamodelBuildingContextImpl.java | 14 +- .../view/impl/metamodel/MetamodelUtils.java | 10 +- .../metamodel/MethodAttributeMapping.java | 8 +- .../metamodel/ParameterAttributeMapping.java | 4 +- .../view/impl/metamodel/ViewMapping.java | 4 +- .../view/impl/metamodel/ViewMappingImpl.java | 14 +- .../impl/metamodel/ViewMetamodelImpl.java | 10 +- .../view/impl/metamodel/ViewRootImpl.java | 2 +- .../view/impl/metamodel/ViewTypeImpl.java | 4 +- .../ViewTypeObjectBuilderTemplate.java | 20 +- .../mapper/TupleElementMapperBuilder.java | 12 +- ...ctCorrelatedBatchTupleListTransformer.java | 6 +- ...ctCorrelatedSubselectTupleTransformer.java | 6 +- ...bstractCorrelatedTupleListTransformer.java | 6 +- ...atedSingularBatchTupleListTransformer.java | 2 +- .../correlation/JoinCorrelationBuilder.java | 2 +- .../MultisetCorrelationBuilder.java | 2 +- .../SubqueryCorrelationBuilder.java | 2 +- .../view/impl/proxy/AddReadsInjector.java | 0 .../view/impl/proxy/ProxyFactory.java | 29 +- .../view/impl/proxy/UnsafeHelper.java | 0 .../view/impl/tx/JtaResources.java | 8 +- ...JtaTransactionSynchronizationStrategy.java | 10 +- .../view/impl/tx/SynchronizationRegistry.java | 4 +- .../view/impl/tx/TransactionHelper.java | 2 +- .../impl/update/DefaultUpdateContext.java | 4 +- .../impl/update/EntityViewUpdaterImpl.java | 24 +- .../view/impl/update/ListenerManager.java | 2 +- .../view/impl/update/Listeners.java | 2 +- .../ResetInitialStateSynchronization.java | 6 +- .../view/impl/update/SimpleUpdateContext.java | 2 +- .../view/impl/update/UpdateContext.java | 2 +- .../view/impl/update/UpdateQueryFactory.java | 2 +- .../flush/AbstractPluralAttributeFlusher.java | 4 +- .../update/flush/BasicAttributeFlusher.java | 2 +- .../flush/CollectionAttributeFlusher.java | 6 +- .../CollectionElementAttributeFlusher.java | 2 +- .../flush/CompositeAttributeFlusher.java | 14 +- .../update/flush/DirtyAttributeFlusher.java | 2 +- .../flush/EmbeddableAttributeFlusher.java | 2 +- .../flush/IndexedListAttributeFlusher.java | 4 +- ...erseCollectionElementAttributeFlusher.java | 2 +- .../impl/update/flush/InverseFlusher.java | 6 +- .../update/flush/MapAttributeFlusher.java | 6 +- ...ergeCollectionElementAttributeFlusher.java | 2 +- .../flush/MergeMapKeyAttributeFlusher.java | 2 +- .../flush/MergeMapValueAttributeFlusher.java | 2 +- .../ParentReferenceAttributeFlusher.java | 2 +- ...sistCollectionElementAttributeFlusher.java | 2 +- .../update/flush/SubviewAttributeFlusher.java | 2 +- .../impl/update/flush/TypeDescriptor.java | 6 +- .../UnmappedAttributeCascadeDeleterUtil.java | 2 +- .../UnmappedBasicAttributeCascadeDeleter.java | 8 +- ...ppedCollectionAttributeCascadeDeleter.java | 2 +- .../UnmappedMapAttributeCascadeDeleter.java | 2 +- ...leBasicAttributeSetNullCascadeDeleter.java | 6 +- ...dateCollectionElementAttributeFlusher.java | 2 +- .../update/flush/VersionAttributeFlusher.java | 2 +- .../ViewAndEntityPostPersistListenerImpl.java | 2 +- .../ViewAndEntityPrePersistListenerImpl.java | 2 +- .../listener/ViewInstanceEntityListener.java | 2 +- .../update/listener/ViewInstanceListener.java | 2 +- .../ViewInstancePostCommitListener.java | 2 +- ...ViewInstancePostPersistEntityListener.java | 2 +- .../ViewInstancePostPersistListener.java | 2 +- .../ViewInstancePostRemoveListener.java | 2 +- .../ViewInstancePostRollbackListener.java | 2 +- .../ViewInstancePostUpdateListener.java | 2 +- .../ViewInstancePrePersistEntityListener.java | 2 +- .../ViewInstancePrePersistListener.java | 2 +- .../ViewInstancePreRemoveListener.java | 2 +- .../ViewInstancePreUpdateListener.java | 2 +- .../ViewInstanceTransitionListener.java | 2 +- .../listener/ViewPostCommitListenerImpl.java | 2 +- .../listener/ViewPostPersistListenerImpl.java | 2 +- .../listener/ViewPostRemoveListenerImpl.java | 2 +- .../ViewPostRollbackListenerImpl.java | 2 +- .../listener/ViewPostUpdateListenerImpl.java | 2 +- .../listener/ViewPrePersistListenerImpl.java | 2 +- .../listener/ViewPreRemoveListenerImpl.java | 2 +- .../listener/ViewPreUpdateListenerImpl.java | 2 +- .../ViewTransitionPostCommitListenerImpl.java | 2 +- ...iewTransitionPostRollbackListenerImpl.java | 2 +- .../impl/src/main/java/module-info.java | 37 + .../view/impl/proxy/AddReadsInjector.java | 21 - .../view/impl/proxy/UnsafeHelper.java | 86 - ...e.view.spi.EntityViewConfigurationProvider | 1 + entity-view/pom.xml | 45 - entity-view/processor-jakarta/pom.xml | 223 -- entity-view/processor/pom.xml | 135 +- .../persistence/view/processor/Constants.java | 8 +- .../persistence/view/processor/Context.java | 8 +- .../processor/src/main/java/module-info.java | 12 + .../view/processor/model/AEntity.java | 2 +- .../view/processor/model/AViewBuilder.java | 2 +- .../view/processor/model/AViewImpl.java | 2 +- .../processor/model/AViewMultiRelation.java | 2 +- .../view/processor/model/AViewRelation.java | 2 +- .../view/processor/model/AView_.java | 2 +- .../view/processor/model/BViewBuilder.java | 2 +- .../view/processor/model/BViewImpl.java | 2 +- .../processor/model/BViewMultiRelation.java | 2 +- .../view/processor/model/BViewRelation.java | 2 +- .../view/processor/model/BView_.java | 2 +- ...ersistence_view_processor_model_BView.java | 2 +- .../test/java/javax/annotation/Generated.java | 22 - entity-view/testsuite-jakarta-runner/pom.xml | 792 ---- entity-view/testsuite-jakarta/pom.xml | 293 -- entity-view/testsuite/pom.xml | 2641 ++----------- .../testsuite/src/main/java/module-info.java | 13 + .../array/ArrayFilteredCollectionsTest.java | 2 +- .../basic/AbstractClassViewTest.java | 2 +- .../testsuite/basic/CovariantViewTest.java | 2 +- .../basic/EmbeddableTestEntityViewTest.java | 2 +- .../testsuite/basic/EntityFetchesTest.java | 2 +- .../basic/EntityViewSettingTest.java | 2 +- .../testsuite/basic/InterfaceViewTest.java | 2 +- .../view/testsuite/basic/PolymorphicTest.java | 2 +- .../testsuite/basic/PrimitiveViewTest.java | 2 +- ...wTypeObjectBuilderTemplateCachingTest.java | 2 +- .../basic/BasicCollectionsTest.java | 2 +- .../ExtendedEmbeddableCollectionsTest.java | 2 +- .../simple/EmbeddableCollectionsTest.java | 2 +- ...ocumentExtensionForElementCollections.java | 10 +- .../ExtendedDocumentForCollections.java | 18 +- ...ExtendedDocumentForElementCollections.java | 22 +- .../ExtendedPersonForCollections.java | 12 +- .../ExtendedPersonForElementCollections.java | 10 +- .../entity/simple/DocumentForCollections.java | 22 +- .../simple/DocumentForElementCollections.java | 22 +- .../entity/simple/PersonForCollections.java | 18 +- .../simple/PersonForElementCollections.java | 10 +- .../collections/index/MappingIndexTest.java | 2 +- .../multiple/SetAsListEntityViewTestTest.java | 2 +- .../ordered/ViewSetAsListTest.java | 2 +- .../singleton/SingletonCollectionsTest.java | 2 +- .../subview/EntityMapKeySubviewTest.java | 2 +- .../subview/MultisetFetchCollectionsTest.java | 2 +- .../subview/NestedCollectionsTest.java | 2 +- .../subview/NestedEmptyCollectionsTest.java | 2 +- ...SelectFetchNestedEmptyCollectionsTest.java | 2 +- .../subview/SimpleCollectionsTest.java | 2 +- .../subview/SubviewClassCollectionsTest.java | 2 +- .../convert/type/TypeConverterTest.java | 2 +- .../convert/view/ConvertEntityTest.java | 2 +- .../convert/view/ConvertViewTest.java | 2 +- .../correlation/AbstractCorrelationTest.java | 2 +- .../BatchSubselectSubsetCorrelationTest.java | 2 +- .../embedded/EmbeddedCorrelationTest.java | 2 +- .../EmbeddingViewRootCorrelationTest.java | 2 +- .../testsuite/cte/WithCTEMappingTest.java | 2 +- .../cte/model/DocumentOwnersCTE.java | 4 +- .../testsuite/custom/CustomClassViewTest.java | 2 +- .../embedded/AbstractEmbeddedMappingTest.java | 2 +- .../entity/EmbeddableTestEntity2.java | 18 +- .../EmbeddableTestEntityEmbeddable2.java | 18 +- .../entity/EmbeddableTestEntityId2.java | 10 +- ...EmbeddableTestEntitySimpleEmbeddable2.java | 4 +- .../view/testsuite/entity/LegacyOrder.java | 6 +- .../testsuite/entity/LegacyOrderPosition.java | 24 +- .../entity/LegacyOrderPositionDefault.java | 16 +- .../entity/LegacyOrderPositionDefaultId.java | 4 +- .../entity/LegacyOrderPositionElement.java | 6 +- .../entity/LegacyOrderPositionEmbeddable.java | 4 +- .../entity/LegacyOrderPositionId.java | 4 +- .../view/testsuite/entity/NamedEntity.java | 8 +- .../view/testsuite/entity/TestEntity.java | 2 +- .../fetch/embedded/EmbeddedFetchTest.java | 2 +- .../fetch/multiset/MultisetFetchTypeTest.java | 2 +- .../fetch/normal/AbstractFetchTest.java | 2 +- .../fetch/subview/SubviewFetchTest.java | 2 +- .../filter/basic/AttributeFilterTest.java | 2 +- .../inheritance/AttributeFilterTest.java | 2 +- .../flat/ConstructorOnlyFlatViewTest.java | 2 +- .../flat/FlatViewAsEmbeddedIdTest.java | 2 +- .../flat/FlatViewCollectionRootTest.java | 2 +- .../flat/FlatViewCollectionTest.java | 2 +- .../flat/FlatViewPaginationTest.java | 2 +- .../view/testsuite/flat/FlatViewTest.java | 2 +- .../testsuite/flat/UpdatableFlatViewTest.java | 2 +- .../inheritance/basic/InheritanceTest.java | 2 +- .../ConstructorInheritanceTest.java | 2 +- .../embedded/EmbeddedInheritanceTest.java | 2 +- .../PolymorphicNestedInheritanceTest.java | 2 +- ...ritanceMappingInAnotherEntityViewTest.java | 2 +- .../MultiLevelViewInheritanceTest.java | 2 +- .../NestedInheritanceMappingTest.java | 2 +- .../PolymorphicInheritanceTest.java | 2 +- .../CorrelatedSubviewInheritanceTest.java | 2 +- .../simple/SubviewInheritanceTest.java | 2 +- .../view/testsuite/limit/LimitTest.java | 2 +- ...MultisetFetchCollectionsBenchmarkTest.java | 2 +- .../AggregateViewPaginationTest.java | 2 +- .../pagination/BasicViewPaginationTest.java | 2 +- .../testsuite/pagination/PaginationTest.java | 2 +- .../predicated/basic/BasicPredicatedTest.java | 2 +- .../testsuite/proxy/ProxyFactoryTest.java | 11 +- .../subquery/MappingSubqueryTest.java | 2 +- ...llectionOverCommonRelationSubviewTest.java | 2 +- .../testsuite/subview/MapKeySubviewTest.java | 16 +- .../testsuite/subview/NullSubviewTest.java | 2 +- .../subview/SubviewEntityViewSettingTest.java | 2 +- .../view/testsuite/subview/SubviewTest.java | 2 +- .../multiplecollections/MissingItemsTest.java | 2 +- .../subview/multiplecollections/model/A.java | 8 +- .../subview/multiplecollections/model/B.java | 10 +- .../subview/multiplecollections/model/C.java | 8 +- .../subview/treat/SubviewTreatTest.java | 2 +- .../treat/model/BaseContainerItem.java | 8 +- .../subview/treat/model/Container.java | 8 +- .../subview/treat/model/ContainerItem1.java | 2 +- .../timeentity/DocumentForMultisetFetch.java | 22 +- .../timeentity/PersonForMultisetFetch.java | 18 +- .../AbstractEntityViewUpdateDocumentTest.java | 2 +- .../update/AbstractEntityViewUpdateTest.java | 4 +- .../converter/EntityViewUpdateBlobTest.java | 2 +- .../ElementCollectionUpdateReferenceTest.java | 2 +- ...yViewUpdateNestedEmbeddableEntityTest.java | 2 +- ...eNestedEmbeddableCollectionsGraphTest.java | 2 +- ...ateUpdatableOnlyEntityCollectionsTest.java | 2 +- ...ViewUpdateUpdatableOnlyEntityMapsTest.java | 2 +- ...tityViewUpdateUpdatableOnlyEntityTest.java | 2 +- ...tyViewUpdateSimpleMutableFlatViewTest.java | 2 +- .../EntityViewUpdateListenerTest.java | 2 +- .../metamodel/EntityViewMetamodelTest.java | 2 +- .../natural/AbstractBookEntityViewTest.java | 2 +- .../AbstractEntityViewRemoveDocumentTest.java | 2 +- .../EntityViewRemoveCascadeOneToManyTest.java | 2 +- ...actEntityViewOrphanRemoveDocumentTest.java | 2 +- .../EntityViewUpdateRollbackTest.java | 4 +- .../singular/SingularListUpdateTest.java | 2 +- .../EntityViewUpdateSubviewGraphTest.java | 2 +- ...pdateSubviewInverseEmbeddedSimpleTest.java | 2 +- ...pdateSubviewInverseOneToOneEntityTest.java | 2 +- ...pdateSubviewInverseOneToOneSimpleTest.java | 2 +- .../viewroot/SecondaryViewRootTest.java | 2 +- examples/deltaspike-data-rest/pom.xml | 389 +- .../deltaspike/data/rest/Application.java | 14 +- .../CriteriaBuilderFactoryProducer.java | 14 +- .../rest/config/EntityManagerProducer.java | 14 +- .../config/EntityViewManagerProducer.java | 12 +- .../rest/controller/CatRestController.java | 34 +- .../rest/filter/FilterParamConverter.java | 2 +- .../filter/FilterParamConverterProvider.java | 6 +- .../deltaspike/data/rest/model/Cat.java | 14 +- .../deltaspike/data/rest/model/Person.java | 8 +- .../src/main/resources/META-INF/beans.xml | 9 +- .../main/resources/META-INF/persistence.xml | 10 +- .../src/main/webapp/WEB-INF/beans.xml | 7 +- .../data/rest/AbstractSampleTest.java | 6 +- .../data/rest/EntityManagerFactoryHolder.java | 18 +- .../deltaspike/data/rest/SampleTest.java | 2 +- .../deltaspike/data/rest/TestExtension.java | 6 +- .../src/test/resources/META-INF/beans.xml | 8 +- ...> jakarta.enterprise.inject.spi.Extension} | 0 examples/it-service-management/pom.xml | 283 +- .../examples/itsm/BlazeConfiguration.java | 4 +- .../itsm/model/article/entity/Article.java | 12 +- .../itsm/model/article/entity/Attachment.java | 2 +- .../model/article/entity/LocalizedEntity.java | 10 +- .../model/article/entity/LocalizedString.java | 4 +- .../itsm/model/article/entity/Person.java | 8 +- .../model/article/view/LocalizedEntityId.java | 8 +- .../model/common/entity/EntityRevision.java | 10 +- .../itsm/model/common/entity/Group.java | 10 +- .../itsm/model/common/entity/Role.java | 10 +- .../itsm/model/common/entity/User.java | 16 +- .../itsm/model/common/entity/UserSession.java | 8 +- .../common/repository/UserRepository.java | 8 +- .../itsm/model/common/view/AuditedView.java | 6 +- .../customer/entity/AbstractCustomer.java | 22 +- .../itsm/model/customer/entity/Company.java | 2 +- .../itsm/model/customer/entity/Customer.java | 4 +- .../customer/entity/ServiceContract.java | 29 +- .../entity/ServiceContractFilter.java | 14 +- .../model/customer/entity/ServiceDetail.java | 10 +- .../model/customer/entity/ServiceItem.java | 8 +- .../customer/entity/ShippingAddress.java | 6 +- .../model/customer/entity/Switchboard.java | 12 +- .../customer/entity/SwitchboardAddress.java | 2 +- .../customer/entity/SwitchboardInterface.java | 2 +- .../view/AbstractCustomerSummary.java | 24 +- .../itsm/model/host/entity/HostDevice.java | 10 +- .../model/host/entity/HostDeviceItem.java | 16 +- .../model/host/entity/HostDeviceItemLong.java | 6 +- .../itsm/model/hotspot/Configuration.java | 10 +- .../hotspot/entity/HotspotConfiguration.java | 8 +- .../itsm/model/ticket/entity/Ticket.java | 15 +- .../ticket/entity/TicketAssigneeChanged.java | 4 +- .../model/ticket/entity/TicketComment.java | 20 +- .../model/ticket/entity/TicketCommented.java | 4 +- .../model/ticket/entity/TicketFilter.java | 12 +- .../ticket/entity/TicketHistoryItem.java | 14 +- .../entity/TicketReferencedByComment.java | 4 +- .../entity/TicketReferencedByTicket.java | 2 +- .../model/ticket/entity/TicketStatus.java | 7 +- .../itsm/model/ticket/view/TicketSummary.java | 8 +- .../src/main/resources/application.yml | 2 +- .../itsm/InheritanceCorrelationTest.java | 26 +- .../itsm/SpringBlazeApplicationTests.java | 20 +- .../itsm/UpdatableCollectionTests.java | 2 +- .../examples/itsm/ViewJoinTests.java | 8 +- examples/microprofile-graphql/pom.xml | 64 +- .../microprofile/graphql/Application.java | 12 +- .../microprofile/graphql/GraphQLProducer.java | 14 +- .../CriteriaBuilderFactoryProducer.java | 14 +- .../graphql/config/EntityManagerProducer.java | 12 +- .../config/EntityViewManagerProducer.java | 12 +- .../microprofile/graphql/model/Cat.java | 14 +- .../graphql/model/ListStringConverter.java | 2 +- .../microprofile/graphql/model/Person.java | 8 +- .../graphql/repository/CatViewRepository.java | 6 +- .../graphql/resource/CatResource.java | 24 +- .../graphql/resource/PersonResource.java | 22 +- .../main/resources/META-INF/persistence.xml | 10 +- .../repository/AbstractSampleTest.java | 8 +- examples/pom.xml | 27 +- examples/quarkus-3/base/pom.xml | 236 +- examples/quarkus-3/pom.xml | 8 - examples/quarkus-3/testsuite/base/pom.xml | 54 +- .../src/test/resources/application.properties | 7 +- .../quarkus-3/testsuite/native/db2/pom.xml | 20 - .../quarkus-3/testsuite/native/h2/pom.xml | 20 - .../quarkus-3/testsuite/native/mssql/pom.xml | 26 +- .../quarkus-3/testsuite/native/mysql/pom.xml | 20 - .../src/main/resources/application.properties | 1 - examples/quarkus-3/testsuite/native/pom.xml | 2 +- .../testsuite/native/postgresql/pom.xml | 20 - examples/quarkus/base/pom.xml | 237 -- .../config/BlazePersistenceConfigurator.java | 32 - .../quarkus/base/entity/Document.java | 77 - .../quarkus/base/entity/DocumentType.java | 35 - .../examples/quarkus/base/entity/Person.java | 81 - .../base/resource/DocumentResource.java | 89 - .../base/resource/DocumentTypeResource.java | 67 - .../quarkus/base/resource/PersonResource.java | 67 - .../base/view/DocumentTypeCreateView.java | 21 - .../base/view/DocumentTypeUpdateView.java | 19 - .../quarkus/base/view/DocumentTypeView.java | 21 - .../quarkus/base/view/DocumentUpdateView.java | 31 - .../quarkus/base/view/DocumentView.java | 36 - .../view/DocumentWithJsonIgnoredNameView.java | 21 - .../quarkus/base/view/PersonCreateView.java | 24 - .../quarkus/base/view/PersonUpdateView.java | 21 - .../quarkus/base/view/PersonView.java | 25 - .../src/main/resources/META-INF/beans.xml | 6 - examples/quarkus/pom.xml | 35 - examples/quarkus/testsuite/base/pom.xml | 293 -- .../base/AbstractQuarkusExampleTest.java | 132 - .../quarkus/testsuite/base/TestResources.java | 16 - .../testsuite/base/QuarkusExampleTest.java | 18 - .../src/test/resources/application.properties | 24 - examples/quarkus/testsuite/native/db2/pom.xml | 97 - .../quarkus/testsuite/nativedb2/Dummy.java | 16 - .../src/main/resources/application.properties | 9 - .../testsuite/db2/QuarkusExampleIT.java | 16 - examples/quarkus/testsuite/native/h2/pom.xml | 102 - .../quarkus/testsuite/nativeh2/Dummy.java | 16 - .../src/main/resources/application.properties | 8 - .../testsuite/h2/QuarkusExampleIT.java | 19 - .../quarkus/testsuite/native/mssql/pom.xml | 156 - .../quarkus/testsuite/nativemssql/Dummy.java | 16 - .../src/main/resources/application.properties | 9 - .../testsuite/mssql/QuarkusExampleIT.java | 16 - .../quarkus/testsuite/native/mysql/pom.xml | 103 - .../quarkus/testsuite/nativemysql/Dummy.java | 16 - .../src/main/resources/application.properties | 9 - .../testsuite/mysql/QuarkusExampleIT.java | 21 - examples/quarkus/testsuite/native/pom.xml | 71 - .../testsuite/native/postgresql/pom.xml | 103 - .../testsuite/nativepostgresql/Dummy.java | 16 - .../src/main/resources/application.properties | 9 - .../postgresql/QuarkusExampleIT.java | 21 - examples/quarkus/testsuite/pom.xml | 32 - .../base/bean/EntityManagerFactoryHolder.java | 2 +- .../base/bean/EntityManagerHolder.java | 2 +- .../examples/showcase/base/model/Cat.java | 14 +- examples/showcase/fragments/basic/pom.xml | 103 +- .../fragments/basic/BasicShowcase.java | 2 +- .../fragments/basic/data/CatDataAccess.java | 4 +- .../basic/data/TestDataGenerator.java | 4 +- examples/showcase/fragments/cte/pom.xml | 103 +- .../showcase/fragments/cte/CTEShowcase.java | 2 +- .../fragments/cte/CatHierarchyCTE.java | 4 +- .../fragments/cte/data/CatDataAccess.java | 6 +- .../fragments/cte/data/TestDataGenerator.java | 4 +- .../showcase/fragments/spring-data/pom.xml | 120 +- .../spring/data/SpringDataShowcase.java | 2 +- .../spring/data/data/TestDataGenerator.java | 4 +- examples/showcase/runner/cdi/pom.xml | 141 +- .../runner/cdi/CDIShowcaseRunner.java | 2 +- .../bean/EntityManagerFactoryHolderImpl.java | 12 +- .../cdi/bean/EntityManagerHolderImpl.java | 12 +- .../producer/BlazePersistenceProducer.java | 8 +- .../JavaxTransactionalExtension.java | 32 - .../transaction/TransactionalExtension.java | 28 + .../main/resources/META-INF/persistence.xml | 10 +- ...> jakarta.enterprise.inject.spi.Extension} | 2 +- .../showcase/runner/cdi/CDIShowcaseTest.java | 2 +- .../cdi/src/test/resources/META-INF/beans.xml | 13 + examples/showcase/runner/pom.xml | 16 +- examples/showcase/runner/spring/pom.xml | 238 +- .../runner/spring/SpringShowcaseRunner.java | 2 +- .../spring/bean/EntityManagerHolderImpl.java | 6 +- .../config/BlazePersistenceConfiguration.java | 4 +- .../main/resources/META-INF/persistence.xml | 10 +- .../runner/spring/SpringShowcaseTest.java | 2 +- examples/spring-data-dgs/pom.xml | 495 +-- .../examples/spring/data/dgs/Application.java | 2 +- .../config/BlazePersistenceConfiguration.java | 4 +- .../examples/spring/data/dgs/model/Cat.java | 14 +- .../data/dgs/model/ListStringConverter.java | 2 +- .../spring/data/dgs/model/Person.java | 8 +- .../dgs/repository/CatViewRepository.java | 2 +- .../dgs/repository/AbstractSampleTest.java | 2 +- examples/spring-data-graphql/pom.xml | 464 +-- .../spring/data/graphql/Application.java | 2 +- .../spring/data/graphql/GraphQLProvider.java | 2 +- .../config/BlazePersistenceConfiguration.java | 4 +- .../spring/data/graphql/model/Cat.java | 14 +- .../graphql/model/ListStringConverter.java | 2 +- .../spring/data/graphql/model/Person.java | 8 +- .../graphql/repository/CatViewRepository.java | 2 +- .../repository/AbstractSampleTest.java | 2 +- examples/spring-data-spqr/pom.xml | 78 +- .../spring/data/spqr/Application.java | 2 +- .../config/BlazePersistenceConfiguration.java | 4 +- .../data/spqr/config/SpqrConfiguration.java | 2 +- .../examples/spring/data/spqr/model/Boy.java | 2 +- .../examples/spring/data/spqr/model/Cat.java | 14 +- .../spring/data/spqr/model/Child.java | 14 +- .../examples/spring/data/spqr/model/Girl.java | 2 +- .../data/spqr/model/ListStringConverter.java | 2 +- .../spring/data/spqr/model/Person.java | 8 +- .../spqr/repository/CatViewRepository.java | 2 +- .../spqr/repository/AbstractSampleTest.java | 2 +- examples/spring-data-webflux/pom.xml | 310 +- .../spring/data/webflux/Application.java | 2 +- .../config/BlazePersistenceConfiguration.java | 4 +- .../webflux/controller/CatRestController.java | 12 +- .../spring/data/webflux/model/Cat.java | 12 +- .../spring/data/webflux/model/Person.java | 8 +- .../repository/AbstractSampleTest.java | 2 +- examples/spring-data-webmvc/pom.xml | 338 +- .../spring/data/webmvc/Application.java | 2 +- .../config/BlazePersistenceConfiguration.java | 4 +- .../webmvc/controller/CatRestController.java | 12 +- .../spring/data/webmvc/model/Cat.java | 12 +- .../spring/data/webmvc/model/Person.java | 8 +- .../webmvc/repository/AbstractSampleTest.java | 2 +- examples/spring-hateoas/pom.xml | 332 +- .../examples/spring/hateoas/Application.java | 2 +- .../config/BlazePersistenceConfiguration.java | 4 +- .../hateoas/controller/CatRestController.java | 12 +- .../examples/spring/hateoas/model/Cat.java | 12 +- .../examples/spring/hateoas/model/Person.java | 8 +- .../repository/AbstractSampleTest.java | 2 +- integration/datanucleus-5.1/pom.xml | 191 - .../datanucleus/CTEAnnotationReader.java | 65 - .../DataNucleus51ExtendedQuerySupport.java | 139 - .../DataNucleus51JpaMetamodelAccessor.java | 82 - .../datanucleus/DataNucleus51JpaProvider.java | 645 ---- .../AbstractJpqlFunctionSQLMethod.java | 91 - .../datanucleus/function/CustomSQLText.java | 40 - ...cleus51EntityManagerFactoryIntegrator.java | 335 -- .../DataNucleusFunctionRenderContext.java | 55 - .../DataNucleusJpqlFunctionAdapter.java | 171 - .../JpqlFunctionInstanceSQLMethod.java | 29 - .../function/JpqlFunctionSQLMethod.java | 30 - .../QueryGeneratorInvocationHandler.java | 33 - .../src/main/resources/META-INF/MANIFEST.MF | 7 - .../src/main/resources/plugin.xml | 21 - integration/datanucleus/pom.xml | 191 - .../datanucleus/CTEAnnotationReader.java | 65 - .../DataNucleusExtendedQuerySupport.java | 139 - .../DataNucleusJpaMetamodelAccessor.java | 80 - .../datanucleus/DataNucleusJpaProvider.java | 692 ---- .../AbstractJpqlFunctionSQLMethod.java | 94 - .../datanucleus/function/CustomSQLText.java | 40 - ...NucleusEntityManagerFactoryIntegrator.java | 284 -- .../DataNucleusFunctionRenderContext.java | 55 - .../DataNucleusJpqlFunctionAdapter.java | 170 - .../JpqlFunctionInstanceSQLMethod.java | 29 - .../function/JpqlFunctionSQLMethod.java | 30 - .../QueryGeneratorInvocationHandler.java | 33 - .../src/main/resources/META-INF/MANIFEST.MF | 7 - .../datanucleus/src/main/resources/plugin.xml | 21 - integration/deltaspike-data/api/pom.xml | 59 +- .../deltaspike/data/EntityViewRepository.java | 4 +- .../deltaspike/data/ExtendedQueryResult.java | 6 +- .../deltaspike/data/Specification.java | 8 +- .../api/src/main/java/module-info.java | 13 + integration/deltaspike-data/base/pom.xml | 136 +- .../part/CompoundOperatorSpecification.java | 8 +- .../builder/part/OrderByQueryAttribute.java | 6 +- .../part/QueryOperatorSpecification.java | 10 +- .../CountCriteriaBuilderQueryCreator.java | 2 +- .../OrderByCriteriaBuilderPostProcessor.java | 2 +- .../data/base/criteria/QueryCriteria.java | 14 +- ...tractEntityViewAwareRepositoryHandler.java | 12 +- .../handler/CriteriaBuilderQueryCreator.java | 2 +- .../data/base/handler/EntityViewContext.java | 2 +- .../base/src/main/java/module-info.java | 18 + integration/deltaspike-data/impl-1.7/pom.xml | 149 - .../CustomPartialBeanBindingExtension.java | 111 - .../impl/DeltaspikeExtensionDeactivator.java | 22 - .../impl/EntityViewRepositoryExtension.java | 173 - .../EntityViewAnnotatedQueryBuilder.java | 86 - .../EntityViewAwareQueryBuilderFactory.java | 51 - .../EntityViewDelegateQueryBuilder.java | 115 - .../builder/EntityViewMethodQueryBuilder.java | 78 - .../impl/builder/EntityViewQueryBuilder.java | 49 - .../EntityViewQueryBuilderContext.java | 42 - .../WrappedEntityViewQueryBuilder.java | 32 - .../builder/part/EntityViewQueryRoot.java | 125 - .../CountQueryPostProcessor.java | 115 - .../FirstResultPostProcessor.java | 33 - .../postprocessor/FlushModePostProcessor.java | 34 - .../postprocessor/HintPostProcessor.java | 35 - .../postprocessor/LockModePostProcessor.java | 34 - .../postprocessor/MaxResultPostProcessor.java | 33 - .../result/EntityViewDefaultQueryResult.java | 438 --- .../result/EntityViewQueryProcessor.java | 21 - .../impl/handler/CriteriaSupportHandler.java | 190 - .../impl/handler/EntityManagerRefLookup.java | 111 - .../handler/EntityViewAwareQueryHandler.java | 128 - .../EntityViewCdiQueryInvocationContext.java | 311 -- ...tyViewCdiQueryInvocationContextHolder.java | 51 - .../EntityViewJpaQueryPostProcessor.java | 20 - .../handler/EntityViewManagerRefLookup.java | 91 - .../EntityViewQueryProcessorFactory.java | 225 -- .../handler/EntityViewRepositoryHandler.java | 102 - .../TransactionalEntityViewQueryRunner.java | 73 - .../meta/EntityViewRepositoryComponent.java | 221 -- .../meta/EntityViewRepositoryComponents.java | 108 - ...EntityViewRepositoryComponentsFactory.java | 42 - .../impl/meta/EntityViewRepositoryMethod.java | 241 -- .../data/impl/param/ExtendedParameters.java | 152 - integration/deltaspike-data/impl-1.8/pom.xml | 190 - .../impl/handler/EntityViewQueryRunner.java | 20 - .../EntityViewInvocationContextWrapper.java | 22 - .../META-INF/apache-deltaspike.properties | 1 - .../src/main/resources/META-INF/beans.xml | 13 - integration/deltaspike-data/impl-2.0/pom.xml | 108 + .../CustomPartialBeanBindingExtension.java | 9 +- .../impl/DeltaspikeExtensionDeactivator.java | 0 .../EntityViewAnnotatedQueryBuilder.java | 14 +- .../EntityViewAwareQueryBuilderFactory.java | 4 +- .../EntityViewDelegateQueryBuilder.java | 14 +- .../builder/EntityViewMethodQueryBuilder.java | 6 +- .../impl/builder/EntityViewQueryBuilder.java | 2 +- .../WrappedEntityViewQueryBuilder.java | 0 .../builder/part/EntityViewQueryRoot.java | 8 +- .../result/EntityViewDefaultQueryResult.java | 10 +- .../impl/handler/CriteriaSupportHandler.java | 12 +- .../handler/EntityViewAwareQueryHandler.java | 10 +- .../EntityViewCdiQueryInvocationContext.java | 8 +- ...tyViewCdiQueryInvocationContextHolder.java | 4 +- .../EntityViewDelegateQueryHandler.java | 0 .../handler/EntityViewManagerRefLookup.java | 6 +- .../EntityViewQueryProcessorFactory.java | 6 +- .../impl/handler/EntityViewQueryRunner.java | 0 .../handler/EntityViewRepositoryHandler.java | 8 +- .../TransactionalEntityViewQueryRunner.java | 4 +- .../EntityViewAwareRepositoryMetadata.java | 0 ...iewAwareRepositoryMetadataInitializer.java | 14 +- ...tityViewAwareRepositoryMethodMetadata.java | 0 ...reRepositoryMethodMetadataInitializer.java | 12 +- .../data/impl/param/ExtendedParameters.java | 2 +- .../EntityViewInvocationContextWrapper.java | 0 .../data/impl/util/OptionalUtils.java | 0 .../data/impl/util/StreamUtils.java | 0 .../impl-2.0/src/main/java/module-info.java | 19 + .../META-INF/apache-deltaspike.properties | 0 .../src/main/resources/META-INF/beans.xml | 0 .../jakarta.enterprise.inject.spi.Extension | 1 + integration/deltaspike-data/pom.xml | 3 +- integration/deltaspike-data/rest/api/pom.xml | 34 +- .../rest/api/src/main/java/module-info.java | 9 + integration/deltaspike-data/rest/impl/pom.xml | 88 +- .../impl/KeysetPageableConfigurationImpl.java | 2 +- .../impl/KeysetPageableMessageBodyReader.java | 12 +- .../impl/KeysetPageableParamConverter.java | 8 +- .../KeysetPageableParamConverterProvider.java | 14 +- .../rest/impl/src/main/java/module-info.java | 12 + integration/deltaspike-data/testsuite/pom.xml | 2581 ++----------- .../data/testsuite/entity/Address.java | 2 +- .../data/testsuite/entity/Person.java | 12 +- .../AbstractEntityViewRepositoryTest.java | 4 +- .../data/testsuite/CriteriaSupportTest.java | 2 +- .../ExtendedEntityViewRepositoryTest.java | 2 +- .../FullEntityViewRepositoryTest.java | 2 +- .../RestrictedPersonViewRepositoryTest.java | 2 +- .../producer/BlazePersistenceProducer.java | 8 +- .../producer/EntityManagerProducer.java | 12 +- .../data/testsuite/qualifier/Restricted.java | 2 +- .../RestrictedEntityViewManagerResolver.java | 2 +- integration/eclipselink/pom.xml | 78 - .../eclipselink/EclipseLinkJpaProvider.java | 91 +- .../EclipseLinkEntityManagerIntegrator.java | 25 +- .../JpqlFunctionExpressionOperator.java | 8 +- .../src/main/java/module-info.java | 11 + ...istence.spi.EntityManagerFactoryIntegrator | 1 + integration/entity-view-cdi-jakarta/pom.xml | 223 -- integration/entity-view-cdi-jar/pom.xml | 125 - integration/entity-view-cdi/pom.xml | 103 +- .../integration/view/cdi/CustomBean.java | 11 +- .../integration/view/cdi/DefaultLiteral.java | 4 +- .../view/cdi/EntityViewExtension.java | 18 +- .../src/main/java/module-info.java | 12 + .../src/main/resources/META-INF/beans.xml | 7 +- .../jakarta.enterprise.inject.spi.Extension | 1 + .../view/cdi/EntityViewExtensionTest.java | 4 +- .../integration/view/cdi/TestEntity.java | 6 +- .../src/test/resources/META-INF/beans.xml | 7 +- integration/entity-view-spring-6.0/pom.xml | 56 +- .../src/main/java/module-info.java | 20 + integration/entity-view-spring/pom.xml | 261 -- .../view/spring/EnableEntityViews.java | 66 - ...AbstractEntityViewConfigurationSource.java | 54 - ...notationEntityViewConfigurationSource.java | 168 - .../impl/EntityViewComponentProvider.java | 55 - .../impl/EntityViewConfigurationDelegate.java | 68 - .../impl/EntityViewConfigurationProducer.java | 49 - .../impl/EntityViewNamespaceHandler.java | 18 - .../view/spring/impl/EntityViewRegistrar.java | 73 - .../impl/SpringTransactionAccessFactory.java | 31 - .../spring/impl/SpringTransactionSupport.java | 40 - ...ingTransactionSynchronizationStrategy.java | 103 - .../view/spring/impl/TypeFilterParser.java | 249 -- .../XmlEntityViewConfigurationSource.java | 60 - .../integration/view/spring/package-info.java | 12 - ...sistence.view.spi.TransactionAccessFactory | 1 - .../main/resources/META-INF/spring.handlers | 17 - .../main/resources/META-INF/spring.schemas | 17 - .../view/spring/spring-entity-views-1.2.xsd | 41 - .../AnnotationBasePackageClassesTest.java | 41 - .../spring/AnnotationBasePackagesTest.java | 41 - .../spring/AnnotationClassLoaderTest.java | 70 - ...AnnotationExcludeAnnotationFilterTest.java | 46 - ...AnnotationExcludeAssignableFilterTest.java | 46 - .../AnnotationExcludeRegexFilterTest.java | 45 - ...AnnotationIncludeAnnotationFilterTest.java | 46 - ...AnnotationIncludeAssignableFilterTest.java | 46 - .../AnnotationIncludeRegexFilterTest.java | 45 - .../view/spring/AnnotationPlainTest.java | 43 - .../view/spring/AnnotationValueTest.java | 41 - .../view/spring/CombinedConfigTest.java | 46 - .../view/spring/XmlConfigTest.java | 36 - .../XmlExcludeAnnotationFilterTest.java | 36 - .../XmlExcludeAssignableFilterTest.java | 36 - .../spring/XmlExcludeRegexFilterTest.java | 36 - .../XmlIncludeAnnotationFilterTest.java | 36 - .../XmlIncludeAssignableFilterTest.java | 36 - .../spring/XmlIncludeRegexFilterTest.java | 36 - .../view/spring/entity/TestEntity.java | 32 - .../qualifier/TestEntityViewQualifier.java | 20 - .../view/spring/views/SomeSuperInterface.java | 13 - .../view/spring/views/sub1/TestView1.java | 22 - .../view/spring/views/sub2/TestView2.java | 27 - .../view/spring/entity-views-config.xml | 15 - .../exclude-annotation-filter-config.xml | 16 - .../exclude-assignable-filter-config.xml | 16 - .../spring/exclude-regex-filter-config.xml | 16 - .../include-annotation-filter-config.xml | 16 - .../include-assignable-filter-config.xml | 16 - .../spring/include-regex-filter-config.xml | 16 - .../src/test/resources/logback-test.xml | 16 - integration/graphql-dgs-7.0/pom.xml | 414 +- .../src/main/java/module-info.java | 18 + integration/graphql-dgs/pom.xml | 228 -- .../BlazePersistenceDgsAutoConfiguration.java | 71 - ...tyViewSupportFactoryAutoConfiguration.java | 32 - .../dgs/converter/ByteInputIdConverter.java | 31 - .../EntityViewInputIdTypeConverter.java | 32 - .../converter/IntegerInputIdConverter.java | 31 - .../dgs/converter/LongInputIdConverter.java | 32 - .../dgs/converter/ShortInputIdConverter.java | 31 - .../dgs/converter/StringInputIdConverter.java | 31 - .../dgs/converter/UUIDInputIdConverter.java | 32 - .../mapper/EntityViewInputObjectMapper.java | 161 - .../main/resources/META-INF/spring.factories | 1 - ...ot.autoconfigure.AutoConfiguration.imports | 1 - .../graphql/dgs/AbstractSampleTest.java | 58 - .../integration/graphql/dgs/Application.java | 55 - .../integration/graphql/dgs/SampleTest.java | 161 - .../config/BlazePersistenceConfiguration.java | 51 - .../graphql/dgs/fetcher/CatGraphQLApi.java | 66 - .../integration/graphql/dgs/model/Cat.java | 105 - .../dgs/model/ListStringConverter.java | 43 - .../integration/graphql/dgs/model/Person.java | 59 - .../dgs/repository/CatJpaRepository.java | 17 - .../dgs/repository/CatViewRepository.java | 45 - .../graphql/dgs/view/CatCreateView.java | 24 - .../graphql/dgs/view/CatSimpleCreateView.java | 23 - .../graphql/dgs/view/CatSimpleView.java | 23 - .../graphql/dgs/view/CatUpdateView.java | 25 - .../graphql/dgs/view/CatWithOwnerView.java | 34 - .../graphql/dgs/view/PersonIdView.java | 22 - .../graphql/dgs/view/PersonSimpleView.java | 20 - .../test/resources/META-INF/test-config.xml | 12 - .../src/test/resources/application.properties | 6 - .../src/test/resources/logback-test.xml | 16 - .../src/test/resources/schema/schema.graphqls | 10 - integration/graphql-jakarta/pom.xml | 232 -- integration/graphql-spqr-jakarta/pom.xml | 222 -- integration/graphql-spqr/pom.xml | 125 +- .../src/main/java/module-info.java | 15 + .../graphql/spqr/AbstractSampleTest.java | 2 +- .../integration/graphql/spqr/Application.java | 2 +- .../config/BlazePersistenceConfiguration.java | 4 +- .../spqr/config/SpqrConfiguration.java | 2 +- .../integration/graphql/spqr/model/Cat.java | 12 +- .../graphql/spqr/model/Person.java | 8 +- .../spqr/repository/CatViewRepository.java | 2 +- integration/graphql/pom.xml | 56 +- .../GraphQLEntityViewSupportFactory.java | 7 +- .../graphql/src/main/java/module-info.java | 14 + .../integration/graphql/entities/Animal.java | 10 +- .../integration/graphql/entities/Cat.java | 2 +- .../graphql/entities/Document.java | 10 +- .../integration/graphql/entities/Person.java | 10 +- integration/hibernate-4.2/.gitignore | 2 - integration/hibernate-4.2/pom.xml | 135 - .../CustomBasicCollectionPersister.java | 100 - .../CustomMultiTableBulkIdStrategy.java | 70 - .../hibernate/CustomOneToManyPersister.java | 110 - .../CustomPersisterClassResolver.java | 26 - .../CustomSubselectCollectionLoader.java | 55 - .../CustomSubselectOneToManyLoader.java | 56 - .../CustomTableBasedUpdateHandlerImpl.java | 167 - .../DelegatingStatementPreparerImpl.java | 55 - ...rnate42EntityManagerFactoryIntegrator.java | 102 - .../hibernate/Hibernate4Access.java | 325 -- .../Hibernate4DelegatingDialect.java | 774 ---- .../hibernate/Hibernate4Integrator.java | 157 - .../hibernate/Hibernate4LimitHandler.java | 74 - .../Hibernate4LimitHandlingDialect.java | 30 - ...rnate4SessionFactoryInvocationHandler.java | 36 - .../Hibernate4SessionInvocationHandler.java | 36 - .../Hibernate4TransactionAccessFactory.java | 30 - ...ansactionCoordinatorInvocationHandler.java | 34 - ...te4TransactionSynchronizationStrategy.java | 63 - .../JdbcCoordinatorInvocationHandler.java | 37 - .../PreparedStatementInvocationHandler.java | 63 - ...ingPreparedStatementInvocationHandler.java | 93 - .../hibernate/StatementPreparerImpl.java | 183 - ...rg.hibernate.metamodel.spi.TypeContributor | 1 - integration/hibernate-4.3/.gitignore | 2 - integration/hibernate-4.3/pom.xml | 133 - .../CustomBasicCollectionPersister.java | 43 - .../CustomMultiTableBulkIdStrategy.java | 70 - .../hibernate/CustomOneToManyPersister.java | 44 - .../CustomPersisterClassResolver.java | 26 - .../CustomSubselectCollectionLoader.java | 55 - .../CustomSubselectOneToManyLoader.java | 55 - .../CustomTableBasedUpdateHandlerImpl.java | 167 - .../DelegatingStatementPreparerImpl.java | 55 - .../hibernate/Hibernate43Access.java | 326 -- .../Hibernate43DelegatingDialect.java | 837 ----- ...rnate43EntityManagerFactoryIntegrator.java | 95 - .../hibernate/Hibernate43Integrator.java | 180 - .../hibernate/Hibernate43LimitHandler.java | 74 - .../Hibernate43LimitHandlingDialect.java | 30 - ...nate43SessionFactoryInvocationHandler.java | 36 - .../Hibernate43SessionInvocationHandler.java | 36 - ...ansactionCoordinatorInvocationHandler.java | 34 - .../Hibernate4TransactionAccessFactory.java | 30 - ...te4TransactionSynchronizationStrategy.java | 63 - .../JdbcCoordinatorInvocationHandler.java | 37 - .../PreparedStatementInvocationHandler.java | 63 - ...ingPreparedStatementInvocationHandler.java | 93 - .../hibernate/StatementPreparerImpl.java | 183 - ...rg.hibernate.metamodel.spi.TypeContributor | 1 - integration/hibernate-5.2/pom.xml | 135 - .../CustomBasicCollectionPersister.java | 42 - .../CustomMultiTableBulkIdStrategy.java | 69 - .../hibernate/CustomOneToManyPersister.java | 42 - .../CustomPersisterClassResolver.java | 26 - .../CustomSubselectCollectionLoader.java | 56 - .../CustomSubselectOneToManyLoader.java | 56 - .../CustomTableBasedUpdateHandlerImpl.java | 166 - .../DelegatingStatementPreparerImpl.java | 55 - .../hibernate/Hibernate52Access.java | 225 -- .../Hibernate52DelegatingDialect.java | 899 ----- ...rnate52EntityManagerFactoryIntegrator.java | 96 - .../hibernate/Hibernate52Integrator.java | 97 - .../hibernate/Hibernate52LimitHandler.java | 70 - .../Hibernate52LimitHandlingDialect.java | 30 - .../Hibernate52MetadataContributor.java | 103 - .../Hibernate52ServiceContributor.java | 38 - ...nate52SessionFactoryInvocationHandler.java | 36 - .../Hibernate52SessionInvocationHandler.java | 36 - ...ityTransactionSynchronizationStrategy.java | 58 - ...ormTransactionSynchronizationStrategy.java | 60 - .../Hibernate5TransactionAccessFactory.java | 46 - .../JdbcCoordinatorInvocationHandler.java | 37 - .../hibernate/NativeTableNameFormatter.java | 30 - .../PreparedStatementInvocationHandler.java | 63 - ...ingPreparedStatementInvocationHandler.java | 94 - .../hibernate/StatementPreparerImpl.java | 189 - integration/hibernate-5.3/pom.xml | 134 - .../CustomBasicCollectionPersister.java | 42 - .../CustomMultiTableBulkIdStrategy.java | 69 - .../hibernate/CustomOneToManyPersister.java | 42 - .../CustomPersisterClassResolver.java | 26 - .../CustomSubselectCollectionLoader.java | 56 - .../CustomSubselectOneToManyLoader.java | 56 - .../CustomTableBasedUpdateHandlerImpl.java | 166 - .../DelegatingStatementPreparerImpl.java | 55 - .../hibernate/Hibernate53Access.java | 252 -- .../Hibernate53DelegatingDialect.java | 985 ----- ...rnate53EntityManagerFactoryIntegrator.java | 96 - .../hibernate/Hibernate53Integrator.java | 97 - .../hibernate/Hibernate53LimitHandler.java | 70 - .../Hibernate53LimitHandlingDialect.java | 30 - .../Hibernate53MetadataContributor.java | 92 - .../Hibernate53ServiceContributor.java | 38 - ...nate53SessionFactoryInvocationHandler.java | 36 - .../Hibernate53SessionInvocationHandler.java | 36 - ...ityTransactionSynchronizationStrategy.java | 58 - ...ormTransactionSynchronizationStrategy.java | 60 - .../Hibernate5TransactionAccessFactory.java | 46 - .../JdbcCoordinatorInvocationHandler.java | 37 - .../hibernate/NativeTableNameFormatter.java | 30 - .../PreparedStatementInvocationHandler.java | 63 - ...ingPreparedStatementInvocationHandler.java | 94 - .../hibernate/StatementPreparerImpl.java | 189 - integration/hibernate-5.4/pom.xml | 159 - integration/hibernate-5.5-jakarta/pom.xml | 219 -- integration/hibernate-5.5/pom.xml | 159 - integration/hibernate-5.6-jakarta/pom.xml | 219 -- integration/hibernate-5.6/pom.xml | 134 - .../CustomBasicCollectionPersister.java | 42 - .../CustomMultiTableBulkIdStrategy.java | 75 - .../hibernate/CustomOneToManyPersister.java | 42 - .../CustomPersisterClassResolver.java | 26 - .../CustomSubselectCollectionLoader.java | 56 - .../CustomSubselectOneToManyLoader.java | 56 - .../CustomTableBasedUpdateHandlerImpl.java | 166 - .../DelegatingStatementPreparerImpl.java | 55 - .../hibernate/Hibernate56Access.java | 252 -- .../Hibernate56DelegatingDialect.java | 1015 ----- ...rnate56EntityManagerFactoryIntegrator.java | 96 - .../hibernate/Hibernate56Integrator.java | 97 - .../hibernate/Hibernate56LimitHandler.java | 70 - .../Hibernate56LimitHandlingDialect.java | 30 - .../Hibernate56MetadataContributor.java | 92 - .../Hibernate56ServiceContributor.java | 38 - ...nate56SessionFactoryInvocationHandler.java | 36 - .../Hibernate56SessionInvocationHandler.java | 36 - ...ityTransactionSynchronizationStrategy.java | 58 - ...ormTransactionSynchronizationStrategy.java | 60 - .../Hibernate5TransactionAccessFactory.java | 46 - .../JdbcCoordinatorInvocationHandler.java | 37 - .../hibernate/NativeTableNameFormatter.java | 30 - .../PreparedStatementInvocationHandler.java | 63 - ...ingPreparedStatementInvocationHandler.java | 94 - .../hibernate/StatementPreparerImpl.java | 189 - integration/hibernate-5/.gitignore | 2 - integration/hibernate-5/pom.xml | 135 - .../CustomBasicCollectionPersister.java | 41 - .../CustomMultiTableBulkIdStrategy.java | 69 - .../hibernate/CustomOneToManyPersister.java | 42 - .../CustomPersisterClassResolver.java | 26 - .../CustomSubselectCollectionLoader.java | 56 - .../CustomSubselectOneToManyLoader.java | 56 - .../CustomTableBasedUpdateHandlerImpl.java | 164 - .../DelegatingStatementPreparerImpl.java | 55 - .../hibernate/Hibernate5Access.java | 330 -- .../Hibernate5DelegatingDialect.java | 901 ----- ...ernate5EntityManagerFactoryIntegrator.java | 96 - ...ityTransactionSynchronizationStrategy.java | 58 - .../hibernate/Hibernate5Integrator.java | 96 - ...ormTransactionSynchronizationStrategy.java | 60 - .../hibernate/Hibernate5LimitHandler.java | 70 - .../Hibernate5LimitHandlingDialect.java | 30 - .../Hibernate5MetadataContributor.java | 103 - .../Hibernate5ServiceContributor.java | 38 - ...rnate5SessionFactoryInvocationHandler.java | 36 - .../Hibernate5SessionInvocationHandler.java | 36 - .../Hibernate5TransactionAccessFactory.java | 46 - .../JdbcCoordinatorInvocationHandler.java | 37 - .../hibernate/NativeTableNameFormatter.java | 30 - .../PreparedStatementInvocationHandler.java | 63 - ...ingPreparedStatementInvocationHandler.java | 94 - .../hibernate/StatementPreparerImpl.java | 189 - integration/hibernate-6.2/pom.xml | 122 +- .../CustomPersisterClassResolver.java | 2 - .../hibernate/Hibernate62Access.java | 2 - ...bernate62AdditionalMappingContributor.java | 2 - ...rnate62EntityManagerFactoryIntegrator.java | 3 - .../hibernate/Hibernate62Integrator.java | 2 - .../Hibernate62ServiceContributor.java | 2 - .../Hibernate6TransactionAccessFactory.java | 2 - .../src/main/java/module-info.java | 23 + ...integration.hibernate.base.HibernateAccess | 1 + ...istence.spi.EntityManagerFactoryIntegrator | 1 + ...sistence.view.spi.TransactionAccessFactory | 1 + ...nate.boot.spi.AdditionalMappingContributor | 1 + .../org.hibernate.integrator.spi.Integrator | 1 + ...rnate.persister.spi.PersisterClassResolver | 1 + ...g.hibernate.service.spi.ServiceContributor | 1 + integration/hibernate-base-jakarta/pom.xml | 228 -- integration/hibernate-base/.gitignore | 2 - integration/hibernate-base/pom.xml | 139 - .../base/CustomCollectionPersister.java | 17 - .../integration/hibernate/base/Database.java | 20 - .../hibernate/base/HibernateAccess.java | 82 - .../base/HibernateExtendedQuerySupport.java | 1412 ------- .../base/HibernateJpa21Provider.java | 160 - .../hibernate/base/HibernateJpaProvider.java | 1848 --------- .../base/HibernateReturningResult.java | 45 - .../hibernate/base/MultiIterator.java | 64 - .../integration/hibernate/base/QuoteMode.java | 66 - .../base/ResultSetInvocationHandler.java | 122 - .../base/ScrollableResultsIterator.java | 54 - .../hibernate/base/SimpleDatabase.java | 48 - .../base/SimpleTableNameFormatter.java | 35 - .../hibernate/base/SubselectLoaderUtils.java | 147 - ...ubselectPreparedStatementProxyHandler.java | 63 - .../hibernate/base/TableNameFormatter.java | 20 - ...bernateEntityManagerFactoryIntegrator.java | 367 -- .../HibernateFunctionRenderContext.java | 55 - .../HibernateJpqlFunctionAdapter.java | 83 - .../function/HibernateSQLFunctionAdapter.java | 73 - .../base/spi/HibernateVersionProvider.java | 23 - integration/hibernate6-base/pom.xml | 105 +- .../base/HibernateExtendedQuerySupport.java | 2 - .../src/main/java/module-info.java | 17 + ...zebit.persistence.spi.ExtendedQuerySupport | 1 + integration/jackson-jakarta/pom.xml | 231 -- integration/jackson/pom.xml | 61 +- .../jackson/src/main/java/module-info.java | 12 + .../EntityViewAwareObjectMapperTest.java | 4 +- .../integration/jackson/SomeEntity.java | 14 +- .../jackson/StringListConverter.java | 4 +- integration/jaxrs-jackson-jakarta/pom.xml | 239 -- integration/jaxrs-jackson/pom.xml | 125 +- .../jackson/EntityViewMessageBodyReader.java | 48 +- ...tyViewIdAwareParameterServiceProvider.java | 62 - .../src/main/java/module-info.java | 16 + .../src/main/resources/META-INF/beans.xml | 12 +- ...odel.internal.spi.ParameterServiceProvider | 1 - .../jackson/testsuite/AbstractJaxrsTest.java | 22 +- .../testsuite/DocumentResourceTest.java | 4 +- .../FromStringParamConverterProviderTest.java | 4 +- .../jackson/testsuite/PersonResourceTest.java | 6 +- .../CriteriaBuilderFactoryProducer.java | 14 +- .../config/EntityManagerFactoryHolder.java | 12 +- .../testsuite/config/EntityManagerHolder.java | 12 +- .../config/EntityViewManagerProducer.java | 12 +- .../jackson/testsuite/entity/Document.java | 10 +- .../jackson/testsuite/entity/Person.java | 8 +- .../testsuite/resource/Application.java | 6 +- .../testsuite/resource/DocumentResource.java | 14 +- .../testsuite/resource/PersonResource.java | 16 +- .../src/test/resources/META-INF/beans.xml | 7 +- .../test/resources/META-INF/persistence.xml | 10 +- integration/jaxrs-jsonb-jakarta/pom.xml | 222 -- integration/jaxrs-jsonb/pom.xml | 123 +- .../jsonb/EntityViewMessageBodyReader.java | 58 +- ...tyViewIdAwareParameterServiceProvider.java | 62 - .../src/main/java/module-info.java | 16 + .../src/main/resources/META-INF/beans.xml | 12 +- ...odel.internal.spi.ParameterServiceProvider | 1 - .../jsonb/testsuite/AbstractJaxrsTest.java | 28 +- .../jsonb/testsuite/DocumentResourceTest.java | 4 +- .../FromStringParamConverterProviderTest.java | 4 +- .../jsonb/testsuite/JsonbJsonProvider.java | 24 +- .../jsonb/testsuite/PersonResourceTest.java | 6 +- .../CriteriaBuilderFactoryProducer.java | 14 +- .../config/EntityManagerFactoryHolder.java | 12 +- .../testsuite/config/EntityManagerHolder.java | 12 +- .../config/EntityViewManagerProducer.java | 12 +- .../jsonb/testsuite/entity/Document.java | 10 +- .../jaxrs/jsonb/testsuite/entity/Person.java | 8 +- .../jsonb/testsuite/resource/Application.java | 4 +- .../testsuite/resource/DocumentResource.java | 14 +- .../testsuite/resource/PersonResource.java | 16 +- .../src/test/resources/META-INF/beans.xml | 7 +- .../test/resources/META-INF/persistence.xml | 10 +- integration/jaxrs/pom.xml | 27 - .../jaxrs/src/main/java/module-info.java | 7 + integration/jpa-base-jakarta/pom.xml | 262 -- integration/jpa-base-jar/pom.xml | 125 - integration/jpa-base/pom.xml | 83 +- .../jpa/JpaMetamodelAccessorImpl.java | 14 +- .../jpa-base/src/main/java/module-info.java | 12 + integration/jsonb-jakarta/pom.xml | 218 -- integration/jsonb/pom.xml | 72 +- .../jsonb/EntityViewIdValueAccessor.java | 4 +- .../jsonb/EntityViewJsonbDeserializer.java | 8 +- .../EntityViewPropertyVisibilityStrategy.java | 4 +- .../EntityViewReferenceDeserializer.java | 31 +- .../jsonstructure/JsonArrayIterator.java | 10 +- .../jsonstructure/JsonObjectIterator.java | 8 +- .../jsonstructure/JsonStructureIterator.java | 10 +- .../JsonStructureToParserAdapter.java | 16 +- .../JsonValueToParserAdapter.java | 24 +- .../jsonb/src/main/java/module-info.java | 13 + .../EntityViewJsonbDeserializerTest.java | 46 +- .../integration/jsonb/SomeEntity.java | 14 +- .../jsonb/StringListConverter.java | 4 +- integration/openjpa-jar/pom.xml | 125 - integration/openjpa/pom.xml | 121 - ...ObjectBuilderAggregateListenerAdapter.java | 51 - ...OpenJPAEntityManagerFactoryIntegrator.java | 63 - .../openjpa/OpenJPAJpaProvider.java | 529 --- integration/pom.xml | 162 +- integration/quarkus-3/deployment/pom.xml | 504 +-- integration/quarkus-3/pom.xml | 12 - integration/quarkus-3/runtime/pom.xml | 74 +- integration/quarkus/deployment/pom.xml | 287 -- .../BlazePersistenceCdiProcessor.java | 183 - ...ersistenceInstanceDescriptorBuildItem.java | 44 - .../deployment/BlazePersistenceProcessor.java | 563 --- .../EntityViewConfigurationBuildItem.java | 24 - .../deployment/EntityViewJandexScavenger.java | 71 - .../EntityViewListenersBuildItem.java | 26 - .../deployment/EntityViewsBuildItem.java | 27 - .../quarkus/deployment/HotReloadTest.java | 85 - .../quarkus/deployment/QuarkusTest.java | 120 - .../quarkus/deployment/entity/Document.java | 77 - .../quarkus/deployment/entity/Person.java | 79 - .../DocumentPostPersistEntityListener.java | 28 - ...stenceInstancesPackageAnnotationsTest.java | 110 - .../MultiBlazePersistenceInstancesTest.java | 110 - .../multipleinstances/entity/Car.java | 45 - .../multipleinstances/entity/Desk.java | 45 - .../entity/SharedEntity.java | 45 - .../view/annotation/car/CarView.java | 22 - .../view/annotation/car/package-info.java | 12 - .../view/annotation/desk/DeskView.java | 22 - .../view/annotation/desk/package-info.java | 12 - .../annotation/shared/SharedEntityView.java | 22 - .../view/annotation/shared/package-info.java | 14 - .../view/config/car/CarView.java | 22 - .../view/config/desk/DeskView.java | 22 - .../view/config/shared/SharedEntityView.java | 22 - .../deployment/resource/DocumentResource.java | 39 - .../deployment/resource/PersonResource.java | 39 - .../deployment/view/DocumentCreateView.java | 26 - .../quarkus/deployment/view/DocumentView.java | 18 - .../deployment/view/PersonCreateView.java | 27 - .../quarkus/deployment/view/PersonView.java | 16 - ...persistence-multiple-persistence-units.xml | 36 - .../test/resources/META-INF/persistence.xml | 22 - ...-multiple-instances-annotations.properties | 5 - .../application-multiple-instances.properties | 11 - .../src/test/resources/application.properties | 4 - integration/quarkus/pom.xml | 35 - integration/quarkus/runtime/pom.xml | 103 - .../BlazePersistenceConfiguration.java | 34 - ...rnateOrmIntegrationStaticInitListener.java | 30 - .../runtime/BlazePersistenceInstance.java | 64 - ...BlazePersistenceInstanceConfiguration.java | 184 - .../runtime/BlazePersistenceInstanceUtil.java | 21 - .../BlazePersistenceSubstitutions.java | 27 - .../CriteriaBuilderConfigurationHolder.java | 29 - ...DefaultCriteriaBuilderFactoryProducer.java | 32 - .../DefaultEntityViewManagerProducer.java | 30 - .../EntityViewConfigurationHolder.java | 30 - .../quarkus/runtime/EntityViewRecorder.java | 89 - .../META-INF/quarkus-extension.properties | 2 - .../resources/META-INF/quarkus-extension.yaml | 34 - .../querydsl/expressions-jakarta/pom.xml | 230 -- integration/querydsl/expressions/pom.xml | 104 +- .../querydsl/AbstractBlazeJPAQuery.java | 12 +- .../blazebit/persistence/querydsl/Binds.java | 2 +- .../BlazeCriteriaBuilderRenderer.java | 2 +- .../persistence/querydsl/BlazeJPAQuery.java | 2 +- .../querydsl/BlazeJPAQueryFactory.java | 2 +- .../querydsl/JPQLNextSerializer.java | 4 +- .../persistence/querydsl/SetExpression.java | 6 +- .../querydsl/SetExpressionImpl.java | 2 +- .../querydsl/ValuesExpression.java | 2 +- .../querydsl/WindowDefinition.java | 2 +- .../persistence/querydsl/WindowFunction.java | 2 +- integration/querydsl/pom.xml | 1 - integration/querydsl/testsuite/pom.xml | 2480 ++---------- .../persistence/querydsl/BasicQueryTest.java | 20 +- integration/spring-data/1.x/pom.xml | 124 - .../query/CriteriaQueryParameterBinder.java | 38 - .../EntityViewAwareRepositoryInformation.java | 116 - ...EntityViewAwareRepositoryMetadataImpl.java | 105 - .../query/ParameterMetadataProviderImpl.java | 278 -- .../query/PartTreeBlazePersistenceQuery.java | 221 -- .../BlazePersistenceRepositoryFactory.java | 226 -- ...BlazePersistenceRepositoryFactoryBean.java | 117 - .../EntityViewAwareRepositoryImpl.java | 73 - integration/spring-data/2.0/pom.xml | 240 -- .../query/CriteriaQueryParameterBinder.java | 38 - .../EntityViewAwareRepositoryInformation.java | 120 - ...EntityViewAwareRepositoryMetadataImpl.java | 108 - .../query/ParameterMetadataProviderImpl.java | 275 -- .../query/PartTreeBlazePersistenceQuery.java | 221 -- .../BlazePersistenceRepositoryFactory.java | 460 --- ...BlazePersistenceRepositoryFactoryBean.java | 117 - .../DefaultRepositoryInformation.java | 285 -- .../EntityViewAwareRepositoryImpl.java | 80 - .../data/impl/repository/MethodLookups.java | 443 --- integration/spring-data/2.1/pom.xml | 241 -- .../query/CriteriaQueryParameterBinder.java | 38 - .../EntityViewAwareRepositoryInformation.java | 120 - ...EntityViewAwareRepositoryMetadataImpl.java | 108 - .../query/ParameterMetadataProviderImpl.java | 286 -- .../query/PartTreeBlazePersistenceQuery.java | 222 -- .../BlazePersistenceRepositoryFactory.java | 470 --- ...BlazePersistenceRepositoryFactoryBean.java | 119 - .../DefaultRepositoryInformation.java | 285 -- .../EntityViewAwareRepositoryImpl.java | 90 - .../data/impl/repository/MethodLookups.java | 443 --- integration/spring-data/2.2/pom.xml | 241 -- .../query/CriteriaQueryParameterBinder.java | 38 - .../EntityViewAwareRepositoryInformation.java | 120 - ...EntityViewAwareRepositoryMetadataImpl.java | 108 - .../query/ParameterMetadataProviderImpl.java | 309 -- .../query/PartTreeBlazePersistenceQuery.java | 233 -- .../BlazePersistenceRepositoryFactory.java | 470 --- ...BlazePersistenceRepositoryFactoryBean.java | 119 - .../DefaultRepositoryInformation.java | 285 -- .../EntityViewAwareRepositoryImpl.java | 90 - .../data/impl/repository/MethodLookups.java | 443 --- integration/spring-data/2.3/pom.xml | 262 -- .../query/CriteriaQueryParameterBinder.java | 38 - .../EntityViewAwareRepositoryInformation.java | 126 - ...EntityViewAwareRepositoryMetadataImpl.java | 114 - .../query/ParameterMetadataProviderImpl.java | 309 -- .../query/PartTreeBlazePersistenceQuery.java | 233 -- .../BlazePersistenceRepositoryFactory.java | 500 --- ...BlazePersistenceRepositoryFactoryBean.java | 119 - .../DefaultRepositoryInformation.java | 295 -- .../EntityViewAwareRepositoryImpl.java | 90 - .../data/impl/repository/MethodLookups.java | 443 --- .../QueryCollectingQueryCreationListener.java | 34 - .../QueryExecutionResultHandler.java | 294 -- .../QueryExecutorMethodInterceptor.java | 235 -- integration/spring-data/2.4/pom.xml | 262 -- .../query/CriteriaQueryParameterBinder.java | 38 - .../EntityViewAwareRepositoryInformation.java | 126 - ...EntityViewAwareRepositoryMetadataImpl.java | 114 - .../query/ParameterMetadataProviderImpl.java | 309 -- .../query/PartTreeBlazePersistenceQuery.java | 244 -- .../BlazePersistenceRepositoryFactory.java | 580 --- ...BlazePersistenceRepositoryFactoryBean.java | 119 - .../DefaultRepositoryInformation.java | 295 -- .../EntityViewAwareRepositoryImpl.java | 97 - .../data/impl/repository/MethodLookups.java | 443 --- .../QueryCollectingQueryCreationListener.java | 34 - .../QueryExecutionResultHandler.java | 294 -- integration/spring-data/2.5/pom.xml | 262 -- .../query/CriteriaQueryParameterBinder.java | 38 - .../EntityViewAwareRepositoryInformation.java | 126 - ...EntityViewAwareRepositoryMetadataImpl.java | 114 - .../query/ParameterMetadataProviderImpl.java | 309 -- .../query/PartTreeBlazePersistenceQuery.java | 244 -- .../BlazePersistenceRepositoryFactory.java | 588 --- ...BlazePersistenceRepositoryFactoryBean.java | 119 - .../DefaultRepositoryInformation.java | 295 -- .../EntityViewAwareRepositoryImpl.java | 97 - .../data/impl/repository/MethodLookups.java | 443 --- .../QueryCollectingQueryCreationListener.java | 34 - .../QueryExecutionResultHandler.java | 294 -- integration/spring-data/2.6/pom.xml | 262 -- .../query/CriteriaQueryParameterBinder.java | 38 - .../EntityViewAwareRepositoryInformation.java | 127 - ...EntityViewAwareRepositoryMetadataImpl.java | 115 - .../query/ParameterMetadataProviderImpl.java | 309 -- .../query/PartTreeBlazePersistenceQuery.java | 244 -- .../BlazePersistenceRepositoryFactory.java | 588 --- ...BlazePersistenceRepositoryFactoryBean.java | 119 - .../DefaultRepositoryInformation.java | 295 -- .../EntityViewAwareRepositoryImpl.java | 129 - .../FetchableFluentQueryByExample.java | 280 -- .../impl/repository/FluentQuerySupport.java | 82 - .../data/impl/repository/MethodLookups.java | 443 --- .../QueryCollectingQueryCreationListener.java | 34 - .../QueryExecutionResultHandler.java | 294 -- integration/spring-data/2.7/pom.xml | 262 -- .../query/CriteriaQueryParameterBinder.java | 38 - .../EntityViewAwareRepositoryInformation.java | 136 - ...EntityViewAwareRepositoryMetadataImpl.java | 124 - .../query/ParameterMetadataProviderImpl.java | 309 -- .../query/PartTreeBlazePersistenceQuery.java | 244 -- .../BlazePersistenceRepositoryFactory.java | 588 --- ...BlazePersistenceRepositoryFactoryBean.java | 119 - .../DefaultRepositoryInformation.java | 313 -- .../EntityViewAwareRepositoryImpl.java | 129 - .../FetchableFluentQueryByExample.java | 279 -- .../impl/repository/FluentQuerySupport.java | 82 - .../data/impl/repository/MethodLookups.java | 443 --- .../QueryCollectingQueryCreationListener.java | 34 - .../QueryExecutionResultHandler.java | 294 -- integration/spring-data/3.1/pom.xml | 60 +- .../3.1/src/main/java/module-info.java | 18 + integration/spring-data/3.3/pom.xml | 60 +- .../3.3/src/main/java/module-info.java | 18 + integration/spring-data/asm-debug-all/pom.xml | 24 - integration/spring-data/base-3.1/pom.xml | 45 +- ...AbstractPartTreeBlazePersistenceQuery.java | 4 - .../query/FixedJpaCountQueryCreator.java | 3 +- .../base}/query/FixedJpaQueryCreator.java | 10 +- .../spring/data/base/query/QueryUtils.java | 1009 +++++ .../EntityViewSpecificationExecutor.java | 3 +- .../base-3.1/src/main/java/module-info.java | 23 + .../data/repository/config/BootstrapMode.java | 45 - integration/spring-data/base-3.3/pom.xml | 46 +- ...AbstractPartTreeBlazePersistenceQuery.java | 5 +- .../query/FixedJpaCountQueryCreator.java | 3 +- .../base}/query/FixedJpaQueryCreator.java | 10 +- .../spring/data/base/query/QueryUtils.java | 1009 +++++ .../EntityViewSpecificationExecutor.java | 3 +- .../base-3.3/src/main/java/module-info.java | 23 + .../data/repository/config/BootstrapMode.java | 45 - integration/spring-data/base/pom.xml | 420 --- .../spring/data/annotation/OptionalParam.java | 31 - .../spring/data/base/EntityViewSortUtil.java | 103 - .../AbstractCriteriaQueryParameterBinder.java | 107 - ...AbstractPartTreeBlazePersistenceQuery.java | 549 --- .../query/EntityViewAwareJpaQueryMethod.java | 109 - .../EntityViewAwareRepositoryMetadata.java | 25 - .../spring/data/base/query/JpaParameters.java | 343 -- .../data/base/query/KeysetAwarePageImpl.java | 73 - .../data/base/query/KeysetAwareSliceImpl.java | 74 - .../data/base/query/ParameterBinder.java | 190 - .../base/query/ParameterMetadataProvider.java | 94 - .../AbstractEntityViewAwareRepository.java | 686 ---- .../EntityViewAwareCrudMethodMetadata.java | 31 - ...wAwareCrudMethodMetadataPostProcessor.java | 366 -- .../data/repository/BlazeSpecification.java | 17 - .../EntityViewReplacingMethodInterceptor.java | 61 - .../data/repository/EntityViewRepository.java | 62 - .../EntityViewSettingProcessor.java | 23 - .../EntityViewSpecificationExecutor.java | 67 - .../data/repository/KeysetAwarePage.java | 33 - .../data/repository/KeysetAwareSlice.java | 34 - .../data/repository/KeysetPageRequest.java | 181 - .../data/repository/KeysetPageable.java | 49 - .../config/BlazeRepositoriesRegistrar.java | 28 - .../BlazeRepositoryConfigExtension.java | 64 - .../config/EnableBlazeRepositories.java | 151 - .../spring/data/repository/package-info.java | 12 - .../query/FixedJpaCountQueryCreator.java | 34 - .../query/FixedJpaQueryCreator.java | 299 -- .../data/repository/config/BootstrapMode.java | 45 - integration/spring-data/pom.xml | 49 +- integration/spring-data/testsuite/pom.xml | 22 - .../testsuite/webflux-jakarta-runner/pom.xml | 354 -- .../testsuite/webflux-jakarta/pom.xml | 258 -- .../spring-data/testsuite/webflux/pom.xml | 3181 +--------------- .../testsuite/webflux/entity/Document.java | 10 +- .../data/testsuite/webflux/entity/Person.java | 8 +- .../main/resources/META-INF/persistence.xml | 2 +- .../config/BlazePersistenceConfiguration.java | 4 +- ...ocalContainerEntityManagerFactoryBean.java | 4 +- .../repository/DocumentRepository.java | 2 +- .../ModificationPersonRepositoryImpl.java | 2 +- .../webflux/tx/TransactionalWorkService.java | 2 +- .../data/testsuite/webflux/tx/TxVoidWork.java | 2 +- .../data/testsuite/webflux/tx/TxWork.java | 2 +- .../testsuite/webflux/application-config.xml | 38 +- .../testsuite/webmvc-jakarta-runner/pom.xml | 341 -- .../testsuite/webmvc-jakarta/pom.xml | 258 -- .../spring-data/testsuite/webmvc/pom.xml | 3130 +--------------- .../testsuite/webmvc/entity/Document.java | 18 +- .../webmvc/entity/IdClassEntity.java | 6 +- .../data/testsuite/webmvc/entity/Person.java | 8 +- .../main/resources/META-INF/persistence.xml | 2 +- ...entProjectionEntityViewRepositoryTest.java | 2 +- .../webmvc/GenericRepositoryTest.java | 2 +- .../ReadOnlyDocumentRepositoryTest.java | 10 +- .../config/BlazePersistenceConfiguration.java | 4 +- ...ocalContainerEntityManagerFactoryBean.java | 4 +- .../webmvc/repository/DocumentRepository.java | 2 +- .../repository/PersonRepositoryImpl.java | 2 +- .../webmvc/tx/TransactionalWorkService.java | 2 +- .../data/testsuite/webmvc/tx/TxVoidWork.java | 2 +- .../data/testsuite/webmvc/tx/TxWork.java | 2 +- .../testsuite/webmvc/application-config.xml | 38 +- integration/spring-data/webflux/pom.xml | 256 +- .../webflux/src/main/java/module-info.java | 21 + .../spring-data/webmvc-jakarta/pom.xml | 136 - .../spring/data/webmvc/EntityViewId.java | 44 - .../spring/data/webmvc/KeysetConfig.java | 75 - .../KeysetPageableArgumentResolver.java | 133 - .../BlazePersistenceWebConfiguration.java | 89 - ...PageableHandlerMethodArgumentResolver.java | 532 --- .../spring/data/webmvc/impl/Sort.java | 44 - ...reMappingJackson2HttpMessageConverter.java | 83 - .../json/EntityViewIdHandlerInterceptor.java | 105 - .../impl/json/EntityViewIdValueHolder.java | 32 - .../spring/data/webmvc/package-info.java | 13 - integration/spring-data/webmvc/pom.xml | 333 +- .../spring/data/webmvc/EntityViewId.java | 3 +- .../spring/data/webmvc/KeysetConfig.java | 3 +- .../KeysetPageableArgumentResolver.java | 3 +- .../BlazePersistenceWebConfiguration.java | 13 +- ...PageableHandlerMethodArgumentResolver.java | 3 +- .../spring/data/webmvc/impl/Sort.java | 3 +- ...reMappingJackson2HttpMessageConverter.java | 3 +- .../json/EntityViewIdHandlerInterceptor.java | 18 +- .../spring/data/webmvc/package-info.java | 5 +- .../webmvc/src/main/java/module-info.java | 20 + .../main/resources/META-INF/spring.factories | 1 - ...ot.autoconfigure.AutoConfiguration.imports | 0 integration/spring-hateoas/pom.xml | 14 - .../webmvc-jakarta/log4j.properties | 22 - .../spring-hateoas/webmvc-jakarta/pom.xml | 419 --- ...sistenceAutoConfigurationImportFilter.java | 30 - ...AwareBlazePersistenceWebConfiguration.java | 88 - ...PageableHandlerMethodArgumentResolver.java | 93 - ...ParameterAwarePagedResourcesAssembler.java | 33 - .../KeysetAwarePagedResourcesAssembler.java | 319 -- ...gedResourcesAssemblerArgumentResolver.java | 142 - .../main/resources/META-INF/spring.factories | 1 - ...ot.autoconfigure.AutoConfiguration.imports | 1 - .../hateoas/webmvc/AbstractSpringTest.java | 74 - .../webmvc/AbstractSpringWebMvcTest.java | 58 - .../webmvc/DocumentControllerTest.java | 95 - .../config/BlazePersistenceConfiguration.java | 66 - ...ocalContainerEntityManagerFactoryBean.java | 28 - ...emPropertyBasedActiveProfilesResolver.java | 24 - .../webmvc/controller/DocumentController.java | 65 - .../hateoas/webmvc/entity/Document.java | 78 - .../spring/hateoas/webmvc/entity/Person.java | 75 - .../ReadOnlyDocumentViewRepository.java | 22 - .../webmvc/tx/TransactionalWorkService.java | 37 - .../spring/hateoas/webmvc/tx/TxVoidWork.java | 20 - .../spring/hateoas/webmvc/tx/TxWork.java | 20 - .../hateoas/webmvc/view/DocumentView.java | 40 - .../hateoas/webmvc/view/PersonView.java | 27 - .../test/resources/META-INF/persistence.xml | 16 - .../hateoas/webmvc/application-config.xml | 101 - .../src/test/resources/logback-test.xml | 16 - integration/spring-hateoas/webmvc/pom.xml | 412 +- ...sistenceAutoConfigurationImportFilter.java | 3 +- ...AwareBlazePersistenceWebConfiguration.java | 3 +- ...PageableHandlerMethodArgumentResolver.java | 5 +- ...ParameterAwarePagedResourcesAssembler.java | 3 +- .../KeysetAwarePagedResourcesAssembler.java | 3 +- ...gedResourcesAssemblerArgumentResolver.java | 3 +- .../webmvc/src/main/java/module-info.java | 17 + .../hateoas/webmvc/AbstractSpringTest.java | 3 +- .../webmvc/AbstractSpringWebMvcTest.java | 3 +- .../webmvc/DocumentControllerTest.java | 7 +- .../config/BlazePersistenceConfiguration.java | 7 +- ...ocalContainerEntityManagerFactoryBean.java | 7 +- ...emPropertyBasedActiveProfilesResolver.java | 3 +- .../webmvc/controller/DocumentController.java | 3 +- .../hateoas/webmvc/entity/Document.java | 13 +- .../spring/hateoas/webmvc/entity/Person.java | 11 +- .../ReadOnlyDocumentViewRepository.java | 3 +- .../webmvc/tx/TransactionalWorkService.java | 5 +- .../spring/hateoas/webmvc/tx/TxVoidWork.java | 5 +- .../spring/hateoas/webmvc/tx/TxWork.java | 5 +- .../hateoas/webmvc/view/DocumentView.java | 3 +- .../hateoas/webmvc/view/PersonView.java | 3 +- .../test/resources/META-INF/persistence.xml | 2 +- .../hateoas/webmvc/application-config.xml | 40 +- .../src/test/resources/logback-test.xml | 2 +- jpa-criteria/api-jakarta/pom.xml | 214 -- jpa-criteria/api-jar/pom.xml | 127 - jpa-criteria/api/pom.xml | 38 +- .../criteria/BlazeAbstractQuery.java | 10 +- .../BlazeAggregateFunctionExpression.java | 4 +- .../criteria/BlazeCollectionJoin.java | 6 +- .../criteria/BlazeCommonAbstractCriteria.java | 2 +- .../criteria/BlazeCriteriaBuilder.java | 22 +- .../criteria/BlazeCriteriaDelete.java | 10 +- .../criteria/BlazeCriteriaQuery.java | 16 +- .../criteria/BlazeCriteriaUpdate.java | 14 +- .../persistence/criteria/BlazeExpression.java | 2 +- .../persistence/criteria/BlazeFetch.java | 2 +- .../criteria/BlazeFetchParent.java | 8 +- .../persistence/criteria/BlazeFrom.java | 16 +- .../criteria/BlazeFunctionExpression.java | 2 +- .../persistence/criteria/BlazeJoin.java | 8 +- .../persistence/criteria/BlazeListJoin.java | 6 +- .../persistence/criteria/BlazeMapJoin.java | 6 +- .../persistence/criteria/BlazeOrder.java | 2 +- ...OrderedSetAggregateFunctionExpression.java | 6 +- .../persistence/criteria/BlazePath.java | 8 +- .../persistence/criteria/BlazeRoot.java | 2 +- .../persistence/criteria/BlazeSetJoin.java | 6 +- .../persistence/criteria/BlazeSubquery.java | 24 +- .../persistence/criteria/BlazeWindow.java | 4 +- .../BlazeWindowFunctionExpression.java | 2 +- .../api/src/main/java/module-info.java | 10 + jpa-criteria/impl-jakarta/pom.xml | 222 -- jpa-criteria/impl-jar/pom.xml | 129 - jpa-criteria/impl/pom.xml | 93 +- .../AbstractModificationCriteriaQuery.java | 6 +- .../impl/BlazeCriteriaBuilderFactoryImpl.java | 2 - .../impl/BlazeCriteriaBuilderImpl.java | 91 +- .../impl/BlazeCriteriaDeleteImpl.java | 8 +- .../criteria/impl/BlazeCriteriaQueryImpl.java | 18 +- .../impl/BlazeCriteriaUpdateImpl.java | 12 +- .../criteria/impl/BlazeWindowImpl.java | 4 +- .../criteria/impl/InternalQuery.java | 24 +- .../criteria/impl/JpaTupleObjectBuilder.java | 6 +- .../persistence/criteria/impl/OrderImpl.java | 2 +- .../criteria/impl/ParameterVisitor.java | 4 +- .../criteria/impl/RenderContext.java | 4 +- .../criteria/impl/RenderContextImpl.java | 4 +- .../impl/expression/AbstractExpression.java | 4 +- .../impl/expression/AbstractPredicate.java | 4 +- .../impl/expression/AbstractSelection.java | 2 +- .../expression/AbstractSimplePredicate.java | 2 +- .../impl/expression/AbstractTupleElement.java | 2 +- .../impl/expression/BetweenPredicate.java | 2 +- .../BinaryArithmeticExpression.java | 2 +- .../BooleanExpressionPredicate.java | 2 +- .../impl/expression/ComparisonPredicate.java | 2 +- .../impl/expression/CompoundPredicate.java | 4 +- .../expression/CompoundSelectionImpl.java | 4 +- .../impl/expression/ExistsPredicate.java | 2 +- .../expression/GeneralCaseExpression.java | 4 +- .../criteria/impl/expression/InPredicate.java | 4 +- .../impl/expression/IsNullPredicate.java | 2 +- .../impl/expression/LikePredicate.java | 2 +- .../impl/expression/MemberOfPredicate.java | 2 +- .../expression/ParameterExpressionImpl.java | 4 +- .../QuantifiableSubqueryExpression.java | 2 +- .../impl/expression/SimpleCaseExpression.java | 24 +- .../impl/expression/SubqueryExpression.java | 22 +- .../impl/expression/UnaryMinusExpression.java | 2 +- .../AggregationFunctionExpressionImpl.java | 4 +- .../expression/function/CoalesceFunction.java | 4 +- .../expression/function/ConcatFunction.java | 2 +- .../expression/function/EntryFunction.java | 2 +- .../function/FunctionExpressionImpl.java | 2 +- .../function/LocalDateFunction.java | 42 + .../function/LocalDateTimeFunction.java | 42 + .../function/LocalTimeFunction.java | 42 + .../expression/function/LocateFunction.java | 2 +- .../expression/function/NullifFunction.java | 2 +- .../OrderedSetAggregationFunction.java | 6 +- .../function/SubstringFunction.java | 2 +- .../expression/function/TrimFunction.java | 4 +- .../WindowFunctionExpressionImpl.java | 2 +- .../criteria/impl/path/AbstractFrom.java | 28 +- .../criteria/impl/path/AbstractJoin.java | 10 +- .../criteria/impl/path/AbstractPath.java | 12 +- .../path/AbstractPluralAttributeJoin.java | 14 +- .../impl/path/CollectionAttributeJoin.java | 12 +- .../criteria/impl/path/EntityJoin.java | 10 +- .../criteria/impl/path/ListAttributeJoin.java | 12 +- .../criteria/impl/path/MapAttributeJoin.java | 14 +- .../criteria/impl/path/MapKeyAttribute.java | 10 +- .../criteria/impl/path/MapKeyBasePath.java | 8 +- .../criteria/impl/path/MapKeyPath.java | 6 +- .../impl/path/PluralAttributePath.java | 8 +- .../criteria/impl/path/RootImpl.java | 4 +- .../criteria/impl/path/SetAttributeJoin.java | 12 +- .../impl/path/SingularAttributeJoin.java | 20 +- .../impl/path/SingularAttributePath.java | 16 +- .../criteria/impl/path/TreatedPath.java | 2 +- .../impl/support/CollectionJoinSupport.java | 6 +- .../impl/support/CriteriaBuilderSupport.java | 20 +- .../criteria/impl/support/JoinSupport.java | 6 +- .../impl/support/ListJoinSupport.java | 6 +- .../criteria/impl/support/MapJoinSupport.java | 6 +- .../criteria/impl/support/SetJoinSupport.java | 6 +- .../impl/support/SubquerySupport.java | 4 +- .../impl/src/main/java/module-info.java | 12 + ...e.criteria.spi.BlazeCriteriaBuilderFactory | 1 + jpa-criteria/jpa-2-compatibility-jar/pom.xml | 117 - jpa-criteria/jpa-2-compatibility/.gitignore | 1 - jpa-criteria/jpa-2-compatibility/pom.xml | 35 - .../javax/persistence/AttributeConverter.java | 44 - .../main/java/javax/persistence/Convert.java | 54 - .../java/javax/persistence/Converter.java | 65 - .../criteria/CommonAbstractCriteria.java | 44 - .../persistence/criteria/CriteriaDelete.java | 82 - .../persistence/criteria/CriteriaUpdate.java | 132 - jpa-criteria/pom.xml | 46 - jpa-criteria/testsuite-jakarta-runner/pom.xml | 422 --- jpa-criteria/testsuite-jakarta/pom.xml | 293 -- jpa-criteria/testsuite/pom.xml | 2326 ++---------- .../persistence/criteria/DeleteTest.java | 2 +- .../criteria/EmbeddableJoinTest.java | 2 +- .../persistence/criteria/GroupByTest.java | 4 +- .../persistence/criteria/JoinTest.java | 2 +- .../persistence/criteria/ListaggTest.java | 6 +- .../persistence/criteria/OrderByTest.java | 2 +- .../persistence/criteria/SelectTest.java | 8 +- .../persistence/criteria/TreatTest.java | 2 +- .../persistence/criteria/WhereTest.java | 4 +- parent/pom.xml | 627 +--- pom.xml | 157 +- setup-graalvm.sh | 6 +- .../jpa/assertion/AssertStatementBuilder.java | 2 +- .../assertion/src/main/java/module-info.java | 11 + testsuite-base/datanucleus/pom.xml | 94 - .../base/AbstractPersistenceTest.java | 96 - .../testsuite/base/SaneMySQLAdapter.java | 42 - .../testsuite/base/SanePostgreSQLAdapter.java | 39 - .../src/main/resources/META-INF/MANIFEST.MF | 7 - .../datanucleus/src/main/resources/plugin.xml | 11 - testsuite-base/eclipselink/pom.xml | 6 +- .../base/AbstractPersistenceTest.java | 6 +- testsuite-base/hibernate-jakarta/pom.xml | 222 -- testsuite-base/hibernate/pom.xml | 49 - .../base/AbstractPersistenceTest.java | 351 -- .../testsuite/base/SaneDB2Dialect.java | 16 - .../testsuite/base/SaneMySQLDialect.java | 27 - .../testsuite/base/SaneOracleDialect.java | 21 - testsuite-base/hibernate6/pom.xml | 5 +- .../base/AbstractPersistenceTest.java | 7 +- .../hibernate6/src/main/java/module-info.java | 11 + testsuite-base/jpa-jakarta/pom.xml | 251 -- testsuite-base/jpa/pom.xml | 8 +- .../base/jpa/AbstractJpaPersistenceTest.java | 56 +- .../base/jpa/MutablePersistenceUnitInfo.java | 10 +- .../testsuite/base/jpa/SchemaClearer.java | 16 +- .../cleaner/AbstractMySQLDatabaseCleaner.java | 4 +- .../base/jpa/cleaner/DB2DatabaseCleaner.java | 4 +- .../jpa/cleaner/MSSQLDatabaseCleaner.java | 4 +- .../jpa/cleaner/OracleDatabaseCleaner.java | 4 +- .../cleaner/PostgreSQLDatabaseCleaner.java | 8 +- .../jpa/src/main/java/module-info.java | 17 + testsuite-base/openjpa/pom.xml | 52 - .../base/AbstractPersistenceTest.java | 68 - testsuite-base/pom.xml | 28 +- website/pom.xml | 8 +- .../src/main/jbake/content/documentation.adoc | 4 +- website/src/main/jbake/content/downloads.adoc | 317 +- 2125 files changed, 12303 insertions(+), 119846 deletions(-) delete mode 100644 archetype/core-sample-jakarta/pom.xml delete mode 100644 archetype/core-sample-jakarta/src/main/resources/META-INF/maven/archetype.xml delete mode 100644 archetype/core-sample-jakarta/src/main/resources/archetype-resources/pom.xml delete mode 100644 archetype/core-sample-jakarta/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml delete mode 100644 archetype/core-sample-jakarta/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java delete mode 100644 archetype/core-sample-jakarta/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java rename archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/test/resources/META-INF/services/{javax.enterprise.inject.spi.Extension => jakarta.enterprise.inject.spi.Extension} (100%) delete mode 100644 archetype/entity-view-sample-jakarta/pom.xml delete mode 100644 archetype/entity-view-sample-jakarta/src/main/resources/META-INF/maven/archetype.xml delete mode 100644 archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/pom.xml delete mode 100644 archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/src/main/java/model/Cat.java delete mode 100644 archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/src/main/java/model/Person.java delete mode 100644 archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java delete mode 100644 archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java rename archetype/{java-ee-sample => jakarta-ee-sample}/pom.xml (95%) rename archetype/{java-ee-sample => jakarta-ee-sample}/src/main/resources/META-INF/maven/archetype.xml (94%) rename archetype/{java-ee-sample => jakarta-ee-sample}/src/main/resources/archetype-resources/pom.xml (69%) rename archetype/{java-ee-sample => jakarta-ee-sample}/src/main/resources/archetype-resources/src/main/java/Application.java (52%) rename archetype/{java-ee-sample => jakarta-ee-sample}/src/main/resources/archetype-resources/src/main/java/config/CriteriaBuilderFactoryProducer.java (77%) rename archetype/{java-ee-sample => jakarta-ee-sample}/src/main/resources/archetype-resources/src/main/java/config/EntityManagerProducer.java (57%) rename archetype/{java-ee-sample => jakarta-ee-sample}/src/main/resources/archetype-resources/src/main/java/config/EntityViewManagerProducer.java (81%) rename archetype/{java-ee-sample => jakarta-ee-sample}/src/main/resources/archetype-resources/src/main/java/controller/SampleController.java (76%) rename archetype/{core-sample-jakarta => jakarta-ee-sample}/src/main/resources/archetype-resources/src/main/java/model/Cat.java (100%) rename archetype/{core-sample-jakarta => jakarta-ee-sample}/src/main/resources/archetype-resources/src/main/java/model/Person.java (100%) rename archetype/{java-ee-sample => jakarta-ee-sample}/src/main/resources/archetype-resources/src/main/java/repository/CatSimpleViewRepository.java (77%) rename archetype/{entity-view-sample-jakarta => jakarta-ee-sample}/src/main/resources/archetype-resources/src/main/java/view/CatSimpleView.java (100%) rename archetype/{entity-view-sample-jakarta => jakarta-ee-sample}/src/main/resources/archetype-resources/src/main/java/view/CatWithOwnerView.java (100%) rename archetype/{entity-view-sample-jakarta => jakarta-ee-sample}/src/main/resources/archetype-resources/src/main/java/view/PersonSimpleView.java (100%) create mode 100644 archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/beans.xml rename archetype/{entity-view-sample-jakarta => jakarta-ee-sample}/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml (67%) rename archetype/{java-ee-sample => jakarta-ee-sample}/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java (88%) rename archetype/{java-ee-sample => jakarta-ee-sample}/src/main/resources/archetype-resources/src/test/java/sample/EntityManagerFactoryHolder.java (70%) rename archetype/{java-ee-sample => jakarta-ee-sample}/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java (89%) rename archetype/{java-ee-sample => jakarta-ee-sample}/src/main/resources/archetype-resources/src/test/java/sample/TestExtension.java (76%) create mode 100644 archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/test/resources/META-INF/beans.xml rename archetype/{java-ee-sample/src/main/resources/archetype-resources/src/test/resources/META-INF/services/javax.enterprise.inject.spi.Extension => jakarta-ee-sample/src/main/resources/archetype-resources/src/test/resources/META-INF/services/jakarta.enterprise.inject.spi.Extension} (100%) delete mode 100644 archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/model/Cat.java delete mode 100644 archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/model/Person.java delete mode 100644 archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/view/CatSimpleView.java delete mode 100644 archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/view/CatWithOwnerView.java delete mode 100644 archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/view/PersonSimpleView.java delete mode 100644 archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/beans.xml delete mode 100644 archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml delete mode 100644 archetype/java-ee-sample/src/main/resources/archetype-resources/src/test/resources/META-INF/beans.xml delete mode 100755 ci/build-travis.sh delete mode 100755 ci/deploy-snapshot-travis.sh delete mode 100644 core/api-jakarta/pom.xml delete mode 100644 core/api-jar/pom.xml create mode 100644 core/api/src/main/java/module-info.java delete mode 100644 core/api/src/main/java9/com/blazebit/persistence/DefaultPackageOpener.java delete mode 100644 core/api/src/main/resources/META-INF/MANIFEST.MF delete mode 100644 core/impl-jakarta/pom.xml delete mode 100644 core/impl-jar/pom.xml create mode 100644 core/impl/src/main/java/module-info.java delete mode 100644 core/impl/src/main/java9/com/blazebit/persistence/impl/CallerChecker.java delete mode 100644 core/impl/src/main/resources/META-INF/MANIFEST.MF delete mode 100644 core/parser-jakarta/pom.xml delete mode 100644 core/parser-jar/pom.xml create mode 100644 core/parser/src/main/java/module-info.java rename core/{testsuite-jakarta-runner => testsuite-hibernate}/pom.xml (59%) rename core/{testsuite-hibernate6 => testsuite-hibernate}/src/main/java/com/blazebit/persistence/testsuite/hibernate6/entity/IntegerProperty.java (100%) rename core/{testsuite-hibernate6 => testsuite-hibernate}/src/main/java/com/blazebit/persistence/testsuite/hibernate6/entity/Property.java (100%) rename core/{testsuite-hibernate6 => testsuite-hibernate}/src/main/java/com/blazebit/persistence/testsuite/hibernate6/entity/PropertyHolder.java (100%) rename core/{testsuite-hibernate6 => testsuite-hibernate}/src/main/java/com/blazebit/persistence/testsuite/hibernate6/entity/StringProperty.java (100%) rename core/{testsuite-hibernate6/src/test/java/com/blazebit/persistence/testsuite/hibernate6 => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate}/AnyMappingTest.java (93%) rename core/{testsuite/src/test/hibernateold/com/blazebit/persistence/testsuite => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate}/CTESubselectFilteringTest.java (90%) rename core/{testsuite/src/test/hibernate/com/blazebit/persistence/testsuite => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate}/CollectionJoinTestHibernate.java (92%) rename core/{testsuite/src/test/hibernateold/com/blazebit/persistence/testsuite => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate}/CustomFunctionTest.java (64%) rename core/{testsuite/src/test/hibernate/com/blazebit/persistence/testsuite => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate}/DereferenceManyToOneAssociationInJoinedInheritanceHierarchyTest.java (95%) rename core/{testsuite/src/test/hibernate/com/blazebit/persistence/testsuite => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate}/EmbeddableIdComplexTest.java (91%) rename core/{testsuite/src/test/hibernate/com/blazebit/persistence/testsuite => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate}/EnversTest.java (88%) rename core/{testsuite/src/test/hibernate/com/blazebit/persistence/testsuite => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate}/FullJoinTest.java (96%) rename core/{testsuite/src/test/hibernate/com/blazebit/persistence/testsuite => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate}/IgnoreNotFoundDereferenceTest.java (80%) rename core/{testsuite/src/test/hibernate/com/blazebit/persistence/testsuite => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate}/Issue1000Test.java (88%) rename core/{testsuite/src/test/hibernate/com/blazebit/persistence/testsuite => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate}/Issue1154Test.java (72%) rename core/{testsuite/src/test/hibernate/com/blazebit/persistence/testsuite => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate}/Issue1167Test.java (75%) rename core/{testsuite/src/test/hibernate/com/blazebit/persistence/testsuite => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate}/Issue1436Test.java (85%) rename core/{testsuite/src/test/hibernate/com/blazebit/persistence/testsuite => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate}/Issue1704Test.java (89%) rename core/{testsuite/src/test/hibernate/com/blazebit/persistence/testsuite => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate}/Issue1713Test.java (83%) rename core/{testsuite/src/test/hibernate/com/blazebit/persistence/testsuite => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate}/Issue227Test.java (93%) rename core/{testsuite/src/test/hibernate/com/blazebit/persistence/testsuite => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate}/Issue336HibernateTest.java (86%) rename core/{testsuite/src/test/hibernate/com/blazebit/persistence/testsuite => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate}/Issue519Test.java (86%) rename core/{testsuite/src/test/hibernate/com/blazebit/persistence/testsuite => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate}/Issue546Test.java (78%) rename core/{testsuite/src/test/hibernate/com/blazebit/persistence/testsuite => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate}/Issue666Test.java (86%) rename core/{testsuite/src/test/hibernate/com/blazebit/persistence/testsuite => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate}/Issue950Test.java (97%) rename core/{testsuite/src/test/hibernate/com/blazebit/persistence/testsuite => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate}/Issue969Test.java (88%) rename core/{testsuite/src/test/hibernate/com/blazebit/persistence/testsuite => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate}/QuotedIdentifiersTest.java (88%) rename core/{testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/hibernate => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/entity}/EmbeddableIdTestEntity.java (80%) rename core/{testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/hibernate => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/entity}/EmbeddableIdTestEntityEmbeddable.java (97%) rename core/{testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/hibernate => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/entity}/EmbeddableIdTestEntityId.java (96%) rename core/{testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/hibernate => testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/entity}/EmbeddableIdTestEntityNestedEmbeddable.java (87%) rename {integration/spring-hateoas/webmvc-jakarta => core/testsuite-hibernate}/src/test/resources/logging.properties (95%) delete mode 100644 core/testsuite-hibernate6/pom.xml delete mode 100644 core/testsuite-jakarta/pom.xml create mode 100644 core/testsuite/src/main/java/module-info.java delete mode 100644 core/testsuite/src/test/hibernate/org/hibernate/engine/spi/SharedSessionContractImplementor.java delete mode 100644 core/testsuite/src/test/hibernateold/com/blazebit/persistence/testsuite/CustomTypeFunctionArgumentTest.java delete mode 100644 core/testsuite/src/test/hibernateold/com/blazebit/persistence/testsuite/Issue1018Test.java delete mode 100644 core/testsuite/src/test/hibernateold/com/blazebit/persistence/testsuite/Issue545Test.java delete mode 100644 core/testsuite/src/test/hibernateold/com/blazebit/persistence/testsuite/Issue992Test.java delete mode 100644 dist/full/pom.xml delete mode 100644 dist/full/src/main/distribution/assembly.xml delete mode 100644 entity-view/api-jakarta/pom.xml delete mode 100644 entity-view/api-jar/pom.xml create mode 100644 entity-view/api/src/main/java/module-info.java delete mode 100644 entity-view/impl-jakarta/pom.xml delete mode 100644 entity-view/impl-jar/pom.xml rename entity-view/impl/src/main/{java9 => java}/com/blazebit/persistence/view/impl/proxy/AddReadsInjector.java (100%) rename entity-view/impl/src/main/{java9 => java}/com/blazebit/persistence/view/impl/proxy/UnsafeHelper.java (100%) create mode 100644 entity-view/impl/src/main/java/module-info.java delete mode 100644 entity-view/impl/src/main/java8/com/blazebit/persistence/view/impl/proxy/AddReadsInjector.java delete mode 100644 entity-view/impl/src/main/java8/com/blazebit/persistence/view/impl/proxy/UnsafeHelper.java create mode 100644 entity-view/impl/src/main/resources/META-INF/services/com.blazebit.persistence.view.spi.EntityViewConfigurationProvider delete mode 100644 entity-view/processor-jakarta/pom.xml create mode 100644 entity-view/processor/src/main/java/module-info.java delete mode 100644 entity-view/processor/src/test/java/javax/annotation/Generated.java delete mode 100644 entity-view/testsuite-jakarta-runner/pom.xml delete mode 100644 entity-view/testsuite-jakarta/pom.xml create mode 100644 entity-view/testsuite/src/main/java/module-info.java rename examples/deltaspike-data-rest/src/test/resources/META-INF/services/{javax.enterprise.inject.spi.Extension => jakarta.enterprise.inject.spi.Extension} (100%) delete mode 100644 examples/quarkus/base/pom.xml delete mode 100644 examples/quarkus/base/src/main/java/com/blazebit/persistence/examples/quarkus/base/config/BlazePersistenceConfigurator.java delete mode 100644 examples/quarkus/base/src/main/java/com/blazebit/persistence/examples/quarkus/base/entity/Document.java delete mode 100644 examples/quarkus/base/src/main/java/com/blazebit/persistence/examples/quarkus/base/entity/DocumentType.java delete mode 100644 examples/quarkus/base/src/main/java/com/blazebit/persistence/examples/quarkus/base/entity/Person.java delete mode 100644 examples/quarkus/base/src/main/java/com/blazebit/persistence/examples/quarkus/base/resource/DocumentResource.java delete mode 100644 examples/quarkus/base/src/main/java/com/blazebit/persistence/examples/quarkus/base/resource/DocumentTypeResource.java delete mode 100644 examples/quarkus/base/src/main/java/com/blazebit/persistence/examples/quarkus/base/resource/PersonResource.java delete mode 100644 examples/quarkus/base/src/main/java/com/blazebit/persistence/examples/quarkus/base/view/DocumentTypeCreateView.java delete mode 100644 examples/quarkus/base/src/main/java/com/blazebit/persistence/examples/quarkus/base/view/DocumentTypeUpdateView.java delete mode 100644 examples/quarkus/base/src/main/java/com/blazebit/persistence/examples/quarkus/base/view/DocumentTypeView.java delete mode 100644 examples/quarkus/base/src/main/java/com/blazebit/persistence/examples/quarkus/base/view/DocumentUpdateView.java delete mode 100644 examples/quarkus/base/src/main/java/com/blazebit/persistence/examples/quarkus/base/view/DocumentView.java delete mode 100644 examples/quarkus/base/src/main/java/com/blazebit/persistence/examples/quarkus/base/view/DocumentWithJsonIgnoredNameView.java delete mode 100644 examples/quarkus/base/src/main/java/com/blazebit/persistence/examples/quarkus/base/view/PersonCreateView.java delete mode 100644 examples/quarkus/base/src/main/java/com/blazebit/persistence/examples/quarkus/base/view/PersonUpdateView.java delete mode 100644 examples/quarkus/base/src/main/java/com/blazebit/persistence/examples/quarkus/base/view/PersonView.java delete mode 100644 examples/quarkus/base/src/main/resources/META-INF/beans.xml delete mode 100644 examples/quarkus/pom.xml delete mode 100644 examples/quarkus/testsuite/base/pom.xml delete mode 100644 examples/quarkus/testsuite/base/src/main/java/com/blazebit/persistence/examples/quarkus/testsuite/base/AbstractQuarkusExampleTest.java delete mode 100644 examples/quarkus/testsuite/base/src/test/h2/com/blazebit/examples/quarkus/testsuite/base/TestResources.java delete mode 100644 examples/quarkus/testsuite/base/src/test/java/com/blazebit/examples/quarkus/testsuite/base/QuarkusExampleTest.java delete mode 100644 examples/quarkus/testsuite/base/src/test/resources/application.properties delete mode 100644 examples/quarkus/testsuite/native/db2/pom.xml delete mode 100644 examples/quarkus/testsuite/native/db2/src/main/java/com/blazebit/persistence/examples/quarkus/testsuite/nativedb2/Dummy.java delete mode 100644 examples/quarkus/testsuite/native/db2/src/main/resources/application.properties delete mode 100644 examples/quarkus/testsuite/native/db2/src/test/java/com/blazebit/persistence/examples/quarkus/testsuite/db2/QuarkusExampleIT.java delete mode 100644 examples/quarkus/testsuite/native/h2/pom.xml delete mode 100644 examples/quarkus/testsuite/native/h2/src/main/java/com/blazebit/persistence/examples/quarkus/testsuite/nativeh2/Dummy.java delete mode 100644 examples/quarkus/testsuite/native/h2/src/main/resources/application.properties delete mode 100644 examples/quarkus/testsuite/native/h2/src/test/java/com/blazebit/persistence/examples/quarkus/testsuite/h2/QuarkusExampleIT.java delete mode 100644 examples/quarkus/testsuite/native/mssql/pom.xml delete mode 100644 examples/quarkus/testsuite/native/mssql/src/main/java/com/blazebit/persistence/examples/quarkus/testsuite/nativemssql/Dummy.java delete mode 100644 examples/quarkus/testsuite/native/mssql/src/main/resources/application.properties delete mode 100644 examples/quarkus/testsuite/native/mssql/src/test/java/com/blazebit/persistence/examples/testsuite/mssql/QuarkusExampleIT.java delete mode 100644 examples/quarkus/testsuite/native/mysql/pom.xml delete mode 100644 examples/quarkus/testsuite/native/mysql/src/main/java/com/blazebit/persistence/examples/quarkus/testsuite/nativemysql/Dummy.java delete mode 100644 examples/quarkus/testsuite/native/mysql/src/main/resources/application.properties delete mode 100644 examples/quarkus/testsuite/native/mysql/src/test/java/com/blazebit/persistence/examples/quarkus/testsuite/mysql/QuarkusExampleIT.java delete mode 100644 examples/quarkus/testsuite/native/pom.xml delete mode 100644 examples/quarkus/testsuite/native/postgresql/pom.xml delete mode 100644 examples/quarkus/testsuite/native/postgresql/src/main/java/com/blazebit/persistence/examples/quarkus/testsuite/nativepostgresql/Dummy.java delete mode 100644 examples/quarkus/testsuite/native/postgresql/src/main/resources/application.properties delete mode 100644 examples/quarkus/testsuite/native/postgresql/src/test/java/com/blazebit/persistence/examples/quarkus/testsuite/postgresql/QuarkusExampleIT.java delete mode 100644 examples/quarkus/testsuite/pom.xml delete mode 100644 examples/showcase/runner/cdi/src/main/java/com/blazebit/persistence/examples/showcase/runner/cdi/transaction/JavaxTransactionalExtension.java create mode 100644 examples/showcase/runner/cdi/src/main/java/com/blazebit/persistence/examples/showcase/runner/cdi/transaction/TransactionalExtension.java rename examples/showcase/runner/cdi/src/main/resources/META-INF/services/{javax.enterprise.inject.spi.Extension => jakarta.enterprise.inject.spi.Extension} (95%) create mode 100644 examples/showcase/runner/cdi/src/test/resources/META-INF/beans.xml delete mode 100644 integration/datanucleus-5.1/pom.xml delete mode 100644 integration/datanucleus-5.1/src/main/java/com/blazebit/persistence/integration/datanucleus/CTEAnnotationReader.java delete mode 100644 integration/datanucleus-5.1/src/main/java/com/blazebit/persistence/integration/datanucleus/DataNucleus51ExtendedQuerySupport.java delete mode 100644 integration/datanucleus-5.1/src/main/java/com/blazebit/persistence/integration/datanucleus/DataNucleus51JpaMetamodelAccessor.java delete mode 100644 integration/datanucleus-5.1/src/main/java/com/blazebit/persistence/integration/datanucleus/DataNucleus51JpaProvider.java delete mode 100644 integration/datanucleus-5.1/src/main/java/com/blazebit/persistence/integration/datanucleus/function/AbstractJpqlFunctionSQLMethod.java delete mode 100644 integration/datanucleus-5.1/src/main/java/com/blazebit/persistence/integration/datanucleus/function/CustomSQLText.java delete mode 100644 integration/datanucleus-5.1/src/main/java/com/blazebit/persistence/integration/datanucleus/function/DataNucleus51EntityManagerFactoryIntegrator.java delete mode 100644 integration/datanucleus-5.1/src/main/java/com/blazebit/persistence/integration/datanucleus/function/DataNucleusFunctionRenderContext.java delete mode 100644 integration/datanucleus-5.1/src/main/java/com/blazebit/persistence/integration/datanucleus/function/DataNucleusJpqlFunctionAdapter.java delete mode 100644 integration/datanucleus-5.1/src/main/java/com/blazebit/persistence/integration/datanucleus/function/JpqlFunctionInstanceSQLMethod.java delete mode 100644 integration/datanucleus-5.1/src/main/java/com/blazebit/persistence/integration/datanucleus/function/JpqlFunctionSQLMethod.java delete mode 100644 integration/datanucleus-5.1/src/main/java/com/blazebit/persistence/integration/datanucleus/function/QueryGeneratorInvocationHandler.java delete mode 100644 integration/datanucleus-5.1/src/main/resources/META-INF/MANIFEST.MF delete mode 100644 integration/datanucleus-5.1/src/main/resources/plugin.xml delete mode 100644 integration/datanucleus/pom.xml delete mode 100644 integration/datanucleus/src/main/java/com/blazebit/persistence/integration/datanucleus/CTEAnnotationReader.java delete mode 100644 integration/datanucleus/src/main/java/com/blazebit/persistence/integration/datanucleus/DataNucleusExtendedQuerySupport.java delete mode 100644 integration/datanucleus/src/main/java/com/blazebit/persistence/integration/datanucleus/DataNucleusJpaMetamodelAccessor.java delete mode 100644 integration/datanucleus/src/main/java/com/blazebit/persistence/integration/datanucleus/DataNucleusJpaProvider.java delete mode 100644 integration/datanucleus/src/main/java/com/blazebit/persistence/integration/datanucleus/function/AbstractJpqlFunctionSQLMethod.java delete mode 100644 integration/datanucleus/src/main/java/com/blazebit/persistence/integration/datanucleus/function/CustomSQLText.java delete mode 100644 integration/datanucleus/src/main/java/com/blazebit/persistence/integration/datanucleus/function/DataNucleusEntityManagerFactoryIntegrator.java delete mode 100644 integration/datanucleus/src/main/java/com/blazebit/persistence/integration/datanucleus/function/DataNucleusFunctionRenderContext.java delete mode 100644 integration/datanucleus/src/main/java/com/blazebit/persistence/integration/datanucleus/function/DataNucleusJpqlFunctionAdapter.java delete mode 100644 integration/datanucleus/src/main/java/com/blazebit/persistence/integration/datanucleus/function/JpqlFunctionInstanceSQLMethod.java delete mode 100644 integration/datanucleus/src/main/java/com/blazebit/persistence/integration/datanucleus/function/JpqlFunctionSQLMethod.java delete mode 100644 integration/datanucleus/src/main/java/com/blazebit/persistence/integration/datanucleus/function/QueryGeneratorInvocationHandler.java delete mode 100644 integration/datanucleus/src/main/resources/META-INF/MANIFEST.MF delete mode 100644 integration/datanucleus/src/main/resources/plugin.xml create mode 100644 integration/deltaspike-data/api/src/main/java/module-info.java create mode 100644 integration/deltaspike-data/base/src/main/java/module-info.java delete mode 100644 integration/deltaspike-data/impl-1.7/pom.xml delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/CustomPartialBeanBindingExtension.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/DeltaspikeExtensionDeactivator.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/EntityViewRepositoryExtension.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/builder/EntityViewAnnotatedQueryBuilder.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/builder/EntityViewAwareQueryBuilderFactory.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/builder/EntityViewDelegateQueryBuilder.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/builder/EntityViewMethodQueryBuilder.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/builder/EntityViewQueryBuilder.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/builder/EntityViewQueryBuilderContext.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/builder/WrappedEntityViewQueryBuilder.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/builder/part/EntityViewQueryRoot.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/builder/postprocessor/CountQueryPostProcessor.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/builder/postprocessor/FirstResultPostProcessor.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/builder/postprocessor/FlushModePostProcessor.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/builder/postprocessor/HintPostProcessor.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/builder/postprocessor/LockModePostProcessor.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/builder/postprocessor/MaxResultPostProcessor.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/builder/result/EntityViewDefaultQueryResult.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/builder/result/EntityViewQueryProcessor.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/handler/CriteriaSupportHandler.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/handler/EntityManagerRefLookup.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/handler/EntityViewAwareQueryHandler.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/handler/EntityViewCdiQueryInvocationContext.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/handler/EntityViewCdiQueryInvocationContextHolder.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/handler/EntityViewJpaQueryPostProcessor.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/handler/EntityViewManagerRefLookup.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/handler/EntityViewQueryProcessorFactory.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/handler/EntityViewRepositoryHandler.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/handler/TransactionalEntityViewQueryRunner.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/meta/EntityViewRepositoryComponent.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/meta/EntityViewRepositoryComponents.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/meta/EntityViewRepositoryComponentsFactory.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/meta/EntityViewRepositoryMethod.java delete mode 100644 integration/deltaspike-data/impl-1.7/src/main/java/com/blazebit/persistence/deltaspike/data/impl/param/ExtendedParameters.java delete mode 100644 integration/deltaspike-data/impl-1.8/pom.xml delete mode 100644 integration/deltaspike-data/impl-1.8/src/main/java/com/blazebit/persistence/deltaspike/data/impl/handler/EntityViewQueryRunner.java delete mode 100644 integration/deltaspike-data/impl-1.8/src/main/java/com/blazebit/persistence/deltaspike/data/impl/tx/EntityViewInvocationContextWrapper.java delete mode 100644 integration/deltaspike-data/impl-1.8/src/main/resources/META-INF/apache-deltaspike.properties delete mode 100644 integration/deltaspike-data/impl-1.8/src/main/resources/META-INF/beans.xml create mode 100644 integration/deltaspike-data/impl-2.0/pom.xml rename integration/deltaspike-data/{impl-1.8 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/CustomPartialBeanBindingExtension.java (94%) rename integration/deltaspike-data/{impl-1.8 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/DeltaspikeExtensionDeactivator.java (100%) rename integration/deltaspike-data/{impl-1.8 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/builder/EntityViewAnnotatedQueryBuilder.java (87%) rename integration/deltaspike-data/{impl-1.8 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/builder/EntityViewAwareQueryBuilderFactory.java (95%) rename integration/deltaspike-data/{impl-1.8 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/builder/EntityViewDelegateQueryBuilder.java (93%) rename integration/deltaspike-data/{impl-1.8 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/builder/EntityViewMethodQueryBuilder.java (96%) rename integration/deltaspike-data/{impl-1.8 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/builder/EntityViewQueryBuilder.java (97%) rename integration/deltaspike-data/{impl-1.8 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/builder/WrappedEntityViewQueryBuilder.java (100%) rename integration/deltaspike-data/{impl-1.8 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/builder/part/EntityViewQueryRoot.java (95%) rename integration/deltaspike-data/{impl-1.8 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/builder/result/EntityViewDefaultQueryResult.java (98%) rename integration/deltaspike-data/{impl-1.8 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/handler/CriteriaSupportHandler.java (96%) rename integration/deltaspike-data/{impl-1.8 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/handler/EntityViewAwareQueryHandler.java (96%) rename integration/deltaspike-data/{impl-1.8 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/handler/EntityViewCdiQueryInvocationContext.java (97%) rename integration/deltaspike-data/{impl-1.8 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/handler/EntityViewCdiQueryInvocationContextHolder.java (93%) rename integration/deltaspike-data/{impl-1.8 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/handler/EntityViewDelegateQueryHandler.java (100%) rename integration/deltaspike-data/{impl-1.8 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/handler/EntityViewManagerRefLookup.java (96%) rename integration/deltaspike-data/{impl-1.8 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/handler/EntityViewQueryProcessorFactory.java (96%) rename integration/deltaspike-data/{impl-1.7 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/handler/EntityViewQueryRunner.java (100%) rename integration/deltaspike-data/{impl-1.8 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/handler/EntityViewRepositoryHandler.java (95%) rename integration/deltaspike-data/{impl-1.8 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/handler/TransactionalEntityViewQueryRunner.java (96%) rename integration/deltaspike-data/{impl-1.8 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/meta/EntityViewAwareRepositoryMetadata.java (100%) rename integration/deltaspike-data/{impl-1.8 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/meta/EntityViewAwareRepositoryMetadataInitializer.java (95%) rename integration/deltaspike-data/{impl-1.8 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/meta/EntityViewAwareRepositoryMethodMetadata.java (100%) rename integration/deltaspike-data/{impl-1.8 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/meta/EntityViewAwareRepositoryMethodMetadataInitializer.java (97%) rename integration/deltaspike-data/{impl-1.8 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/param/ExtendedParameters.java (99%) rename integration/deltaspike-data/{impl-1.7 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/tx/EntityViewInvocationContextWrapper.java (100%) rename integration/deltaspike-data/{impl-1.8 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/util/OptionalUtils.java (100%) rename integration/deltaspike-data/{impl-1.8 => impl-2.0}/src/main/java/com/blazebit/persistence/deltaspike/data/impl/util/StreamUtils.java (100%) create mode 100644 integration/deltaspike-data/impl-2.0/src/main/java/module-info.java rename integration/deltaspike-data/{impl-1.7 => impl-2.0}/src/main/resources/META-INF/apache-deltaspike.properties (100%) rename integration/deltaspike-data/{impl-1.7 => impl-2.0}/src/main/resources/META-INF/beans.xml (100%) create mode 100644 integration/deltaspike-data/impl-2.0/src/main/resources/META-INF/services/jakarta.enterprise.inject.spi.Extension create mode 100644 integration/deltaspike-data/rest/api/src/main/java/module-info.java create mode 100644 integration/deltaspike-data/rest/impl/src/main/java/module-info.java create mode 100644 integration/eclipselink/src/main/java/module-info.java create mode 100644 integration/eclipselink/src/main/resources/META-INF/services/com.blazebit.persistence.spi.EntityManagerFactoryIntegrator delete mode 100644 integration/entity-view-cdi-jakarta/pom.xml delete mode 100644 integration/entity-view-cdi-jar/pom.xml create mode 100644 integration/entity-view-cdi/src/main/java/module-info.java create mode 100644 integration/entity-view-cdi/src/main/resources/META-INF/services/jakarta.enterprise.inject.spi.Extension create mode 100644 integration/entity-view-spring-6.0/src/main/java/module-info.java delete mode 100644 integration/entity-view-spring/pom.xml delete mode 100644 integration/entity-view-spring/src/main/java/com/blazebit/persistence/integration/view/spring/EnableEntityViews.java delete mode 100644 integration/entity-view-spring/src/main/java/com/blazebit/persistence/integration/view/spring/impl/AbstractEntityViewConfigurationSource.java delete mode 100644 integration/entity-view-spring/src/main/java/com/blazebit/persistence/integration/view/spring/impl/AnnotationEntityViewConfigurationSource.java delete mode 100644 integration/entity-view-spring/src/main/java/com/blazebit/persistence/integration/view/spring/impl/EntityViewComponentProvider.java delete mode 100644 integration/entity-view-spring/src/main/java/com/blazebit/persistence/integration/view/spring/impl/EntityViewConfigurationDelegate.java delete mode 100644 integration/entity-view-spring/src/main/java/com/blazebit/persistence/integration/view/spring/impl/EntityViewConfigurationProducer.java delete mode 100644 integration/entity-view-spring/src/main/java/com/blazebit/persistence/integration/view/spring/impl/EntityViewNamespaceHandler.java delete mode 100644 integration/entity-view-spring/src/main/java/com/blazebit/persistence/integration/view/spring/impl/EntityViewRegistrar.java delete mode 100644 integration/entity-view-spring/src/main/java/com/blazebit/persistence/integration/view/spring/impl/SpringTransactionAccessFactory.java delete mode 100644 integration/entity-view-spring/src/main/java/com/blazebit/persistence/integration/view/spring/impl/SpringTransactionSupport.java delete mode 100644 integration/entity-view-spring/src/main/java/com/blazebit/persistence/integration/view/spring/impl/SpringTransactionSynchronizationStrategy.java delete mode 100644 integration/entity-view-spring/src/main/java/com/blazebit/persistence/integration/view/spring/impl/TypeFilterParser.java delete mode 100644 integration/entity-view-spring/src/main/java/com/blazebit/persistence/integration/view/spring/impl/XmlEntityViewConfigurationSource.java delete mode 100644 integration/entity-view-spring/src/main/java/com/blazebit/persistence/integration/view/spring/package-info.java delete mode 100644 integration/entity-view-spring/src/main/resources/META-INF/services/com.blazebit.persistence.view.spi.TransactionAccessFactory delete mode 100644 integration/entity-view-spring/src/main/resources/META-INF/spring.handlers delete mode 100644 integration/entity-view-spring/src/main/resources/META-INF/spring.schemas delete mode 100644 integration/entity-view-spring/src/main/resources/com/blazebit/persistence/integration/view/spring/spring-entity-views-1.2.xsd delete mode 100644 integration/entity-view-spring/src/test/java/com/blazebit/persistence/integration/view/spring/AnnotationBasePackageClassesTest.java delete mode 100644 integration/entity-view-spring/src/test/java/com/blazebit/persistence/integration/view/spring/AnnotationBasePackagesTest.java delete mode 100644 integration/entity-view-spring/src/test/java/com/blazebit/persistence/integration/view/spring/AnnotationClassLoaderTest.java delete mode 100644 integration/entity-view-spring/src/test/java/com/blazebit/persistence/integration/view/spring/AnnotationExcludeAnnotationFilterTest.java delete mode 100644 integration/entity-view-spring/src/test/java/com/blazebit/persistence/integration/view/spring/AnnotationExcludeAssignableFilterTest.java delete mode 100644 integration/entity-view-spring/src/test/java/com/blazebit/persistence/integration/view/spring/AnnotationExcludeRegexFilterTest.java delete mode 100644 integration/entity-view-spring/src/test/java/com/blazebit/persistence/integration/view/spring/AnnotationIncludeAnnotationFilterTest.java delete mode 100644 integration/entity-view-spring/src/test/java/com/blazebit/persistence/integration/view/spring/AnnotationIncludeAssignableFilterTest.java delete mode 100644 integration/entity-view-spring/src/test/java/com/blazebit/persistence/integration/view/spring/AnnotationIncludeRegexFilterTest.java delete mode 100644 integration/entity-view-spring/src/test/java/com/blazebit/persistence/integration/view/spring/AnnotationPlainTest.java delete mode 100644 integration/entity-view-spring/src/test/java/com/blazebit/persistence/integration/view/spring/AnnotationValueTest.java delete mode 100644 integration/entity-view-spring/src/test/java/com/blazebit/persistence/integration/view/spring/CombinedConfigTest.java delete mode 100644 integration/entity-view-spring/src/test/java/com/blazebit/persistence/integration/view/spring/XmlConfigTest.java delete mode 100644 integration/entity-view-spring/src/test/java/com/blazebit/persistence/integration/view/spring/XmlExcludeAnnotationFilterTest.java delete mode 100644 integration/entity-view-spring/src/test/java/com/blazebit/persistence/integration/view/spring/XmlExcludeAssignableFilterTest.java delete mode 100644 integration/entity-view-spring/src/test/java/com/blazebit/persistence/integration/view/spring/XmlExcludeRegexFilterTest.java delete mode 100644 integration/entity-view-spring/src/test/java/com/blazebit/persistence/integration/view/spring/XmlIncludeAnnotationFilterTest.java delete mode 100644 integration/entity-view-spring/src/test/java/com/blazebit/persistence/integration/view/spring/XmlIncludeAssignableFilterTest.java delete mode 100644 integration/entity-view-spring/src/test/java/com/blazebit/persistence/integration/view/spring/XmlIncludeRegexFilterTest.java delete mode 100644 integration/entity-view-spring/src/test/java/com/blazebit/persistence/integration/view/spring/entity/TestEntity.java delete mode 100644 integration/entity-view-spring/src/test/java/com/blazebit/persistence/integration/view/spring/qualifier/TestEntityViewQualifier.java delete mode 100644 integration/entity-view-spring/src/test/java/com/blazebit/persistence/integration/view/spring/views/SomeSuperInterface.java delete mode 100644 integration/entity-view-spring/src/test/java/com/blazebit/persistence/integration/view/spring/views/sub1/TestView1.java delete mode 100644 integration/entity-view-spring/src/test/java/com/blazebit/persistence/integration/view/spring/views/sub2/TestView2.java delete mode 100644 integration/entity-view-spring/src/test/resources/com/blazebit/persistence/integration/view/spring/entity-views-config.xml delete mode 100644 integration/entity-view-spring/src/test/resources/com/blazebit/persistence/integration/view/spring/exclude-annotation-filter-config.xml delete mode 100644 integration/entity-view-spring/src/test/resources/com/blazebit/persistence/integration/view/spring/exclude-assignable-filter-config.xml delete mode 100644 integration/entity-view-spring/src/test/resources/com/blazebit/persistence/integration/view/spring/exclude-regex-filter-config.xml delete mode 100644 integration/entity-view-spring/src/test/resources/com/blazebit/persistence/integration/view/spring/include-annotation-filter-config.xml delete mode 100644 integration/entity-view-spring/src/test/resources/com/blazebit/persistence/integration/view/spring/include-assignable-filter-config.xml delete mode 100644 integration/entity-view-spring/src/test/resources/com/blazebit/persistence/integration/view/spring/include-regex-filter-config.xml delete mode 100644 integration/entity-view-spring/src/test/resources/logback-test.xml create mode 100644 integration/graphql-dgs-7.0/src/main/java/module-info.java delete mode 100644 integration/graphql-dgs/pom.xml delete mode 100644 integration/graphql-dgs/src/main/java/com/blazebit/persistence/integration/graphql/dgs/BlazePersistenceDgsAutoConfiguration.java delete mode 100644 integration/graphql-dgs/src/main/java/com/blazebit/persistence/integration/graphql/dgs/GraphQLEntityViewSupportFactoryAutoConfiguration.java delete mode 100644 integration/graphql-dgs/src/main/java/com/blazebit/persistence/integration/graphql/dgs/converter/ByteInputIdConverter.java delete mode 100644 integration/graphql-dgs/src/main/java/com/blazebit/persistence/integration/graphql/dgs/converter/EntityViewInputIdTypeConverter.java delete mode 100644 integration/graphql-dgs/src/main/java/com/blazebit/persistence/integration/graphql/dgs/converter/IntegerInputIdConverter.java delete mode 100644 integration/graphql-dgs/src/main/java/com/blazebit/persistence/integration/graphql/dgs/converter/LongInputIdConverter.java delete mode 100644 integration/graphql-dgs/src/main/java/com/blazebit/persistence/integration/graphql/dgs/converter/ShortInputIdConverter.java delete mode 100644 integration/graphql-dgs/src/main/java/com/blazebit/persistence/integration/graphql/dgs/converter/StringInputIdConverter.java delete mode 100644 integration/graphql-dgs/src/main/java/com/blazebit/persistence/integration/graphql/dgs/converter/UUIDInputIdConverter.java delete mode 100644 integration/graphql-dgs/src/main/java/com/blazebit/persistence/integration/graphql/dgs/mapper/EntityViewInputObjectMapper.java delete mode 100644 integration/graphql-dgs/src/main/resources/META-INF/spring.factories delete mode 100644 integration/graphql-dgs/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports delete mode 100644 integration/graphql-dgs/src/test/java/com/blazebit/persistence/integration/graphql/dgs/AbstractSampleTest.java delete mode 100644 integration/graphql-dgs/src/test/java/com/blazebit/persistence/integration/graphql/dgs/Application.java delete mode 100644 integration/graphql-dgs/src/test/java/com/blazebit/persistence/integration/graphql/dgs/SampleTest.java delete mode 100644 integration/graphql-dgs/src/test/java/com/blazebit/persistence/integration/graphql/dgs/config/BlazePersistenceConfiguration.java delete mode 100644 integration/graphql-dgs/src/test/java/com/blazebit/persistence/integration/graphql/dgs/fetcher/CatGraphQLApi.java delete mode 100644 integration/graphql-dgs/src/test/java/com/blazebit/persistence/integration/graphql/dgs/model/Cat.java delete mode 100644 integration/graphql-dgs/src/test/java/com/blazebit/persistence/integration/graphql/dgs/model/ListStringConverter.java delete mode 100644 integration/graphql-dgs/src/test/java/com/blazebit/persistence/integration/graphql/dgs/model/Person.java delete mode 100644 integration/graphql-dgs/src/test/java/com/blazebit/persistence/integration/graphql/dgs/repository/CatJpaRepository.java delete mode 100644 integration/graphql-dgs/src/test/java/com/blazebit/persistence/integration/graphql/dgs/repository/CatViewRepository.java delete mode 100644 integration/graphql-dgs/src/test/java/com/blazebit/persistence/integration/graphql/dgs/view/CatCreateView.java delete mode 100644 integration/graphql-dgs/src/test/java/com/blazebit/persistence/integration/graphql/dgs/view/CatSimpleCreateView.java delete mode 100644 integration/graphql-dgs/src/test/java/com/blazebit/persistence/integration/graphql/dgs/view/CatSimpleView.java delete mode 100644 integration/graphql-dgs/src/test/java/com/blazebit/persistence/integration/graphql/dgs/view/CatUpdateView.java delete mode 100644 integration/graphql-dgs/src/test/java/com/blazebit/persistence/integration/graphql/dgs/view/CatWithOwnerView.java delete mode 100644 integration/graphql-dgs/src/test/java/com/blazebit/persistence/integration/graphql/dgs/view/PersonIdView.java delete mode 100644 integration/graphql-dgs/src/test/java/com/blazebit/persistence/integration/graphql/dgs/view/PersonSimpleView.java delete mode 100644 integration/graphql-dgs/src/test/resources/META-INF/test-config.xml delete mode 100644 integration/graphql-dgs/src/test/resources/application.properties delete mode 100644 integration/graphql-dgs/src/test/resources/logback-test.xml delete mode 100644 integration/graphql-dgs/src/test/resources/schema/schema.graphqls delete mode 100644 integration/graphql-jakarta/pom.xml delete mode 100644 integration/graphql-spqr-jakarta/pom.xml create mode 100644 integration/graphql-spqr/src/main/java/module-info.java create mode 100644 integration/graphql/src/main/java/module-info.java delete mode 100644 integration/hibernate-4.2/.gitignore delete mode 100644 integration/hibernate-4.2/pom.xml delete mode 100644 integration/hibernate-4.2/src/main/java/com/blazebit/persistence/integration/hibernate/CustomBasicCollectionPersister.java delete mode 100644 integration/hibernate-4.2/src/main/java/com/blazebit/persistence/integration/hibernate/CustomMultiTableBulkIdStrategy.java delete mode 100644 integration/hibernate-4.2/src/main/java/com/blazebit/persistence/integration/hibernate/CustomOneToManyPersister.java delete mode 100644 integration/hibernate-4.2/src/main/java/com/blazebit/persistence/integration/hibernate/CustomPersisterClassResolver.java delete mode 100644 integration/hibernate-4.2/src/main/java/com/blazebit/persistence/integration/hibernate/CustomSubselectCollectionLoader.java delete mode 100644 integration/hibernate-4.2/src/main/java/com/blazebit/persistence/integration/hibernate/CustomSubselectOneToManyLoader.java delete mode 100644 integration/hibernate-4.2/src/main/java/com/blazebit/persistence/integration/hibernate/CustomTableBasedUpdateHandlerImpl.java delete mode 100644 integration/hibernate-4.2/src/main/java/com/blazebit/persistence/integration/hibernate/DelegatingStatementPreparerImpl.java delete mode 100644 integration/hibernate-4.2/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate42EntityManagerFactoryIntegrator.java delete mode 100644 integration/hibernate-4.2/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate4Access.java delete mode 100644 integration/hibernate-4.2/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate4DelegatingDialect.java delete mode 100644 integration/hibernate-4.2/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate4Integrator.java delete mode 100644 integration/hibernate-4.2/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate4LimitHandler.java delete mode 100644 integration/hibernate-4.2/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate4LimitHandlingDialect.java delete mode 100644 integration/hibernate-4.2/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate4SessionFactoryInvocationHandler.java delete mode 100644 integration/hibernate-4.2/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate4SessionInvocationHandler.java delete mode 100644 integration/hibernate-4.2/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate4TransactionAccessFactory.java delete mode 100644 integration/hibernate-4.2/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate4TransactionCoordinatorInvocationHandler.java delete mode 100644 integration/hibernate-4.2/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate4TransactionSynchronizationStrategy.java delete mode 100644 integration/hibernate-4.2/src/main/java/com/blazebit/persistence/integration/hibernate/JdbcCoordinatorInvocationHandler.java delete mode 100644 integration/hibernate-4.2/src/main/java/com/blazebit/persistence/integration/hibernate/PreparedStatementInvocationHandler.java delete mode 100644 integration/hibernate-4.2/src/main/java/com/blazebit/persistence/integration/hibernate/SecondaryTableUpdateSupportingPreparedStatementInvocationHandler.java delete mode 100644 integration/hibernate-4.2/src/main/java/com/blazebit/persistence/integration/hibernate/StatementPreparerImpl.java delete mode 100644 integration/hibernate-4.2/src/main/resources/META-INF/services/org.hibernate.metamodel.spi.TypeContributor delete mode 100644 integration/hibernate-4.3/.gitignore delete mode 100644 integration/hibernate-4.3/pom.xml delete mode 100644 integration/hibernate-4.3/src/main/java/com/blazebit/persistence/integration/hibernate/CustomBasicCollectionPersister.java delete mode 100644 integration/hibernate-4.3/src/main/java/com/blazebit/persistence/integration/hibernate/CustomMultiTableBulkIdStrategy.java delete mode 100644 integration/hibernate-4.3/src/main/java/com/blazebit/persistence/integration/hibernate/CustomOneToManyPersister.java delete mode 100644 integration/hibernate-4.3/src/main/java/com/blazebit/persistence/integration/hibernate/CustomPersisterClassResolver.java delete mode 100644 integration/hibernate-4.3/src/main/java/com/blazebit/persistence/integration/hibernate/CustomSubselectCollectionLoader.java delete mode 100644 integration/hibernate-4.3/src/main/java/com/blazebit/persistence/integration/hibernate/CustomSubselectOneToManyLoader.java delete mode 100644 integration/hibernate-4.3/src/main/java/com/blazebit/persistence/integration/hibernate/CustomTableBasedUpdateHandlerImpl.java delete mode 100644 integration/hibernate-4.3/src/main/java/com/blazebit/persistence/integration/hibernate/DelegatingStatementPreparerImpl.java delete mode 100644 integration/hibernate-4.3/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate43Access.java delete mode 100644 integration/hibernate-4.3/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate43DelegatingDialect.java delete mode 100644 integration/hibernate-4.3/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate43EntityManagerFactoryIntegrator.java delete mode 100644 integration/hibernate-4.3/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate43Integrator.java delete mode 100644 integration/hibernate-4.3/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate43LimitHandler.java delete mode 100644 integration/hibernate-4.3/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate43LimitHandlingDialect.java delete mode 100644 integration/hibernate-4.3/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate43SessionFactoryInvocationHandler.java delete mode 100644 integration/hibernate-4.3/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate43SessionInvocationHandler.java delete mode 100644 integration/hibernate-4.3/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate43TransactionCoordinatorInvocationHandler.java delete mode 100644 integration/hibernate-4.3/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate4TransactionAccessFactory.java delete mode 100644 integration/hibernate-4.3/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate4TransactionSynchronizationStrategy.java delete mode 100644 integration/hibernate-4.3/src/main/java/com/blazebit/persistence/integration/hibernate/JdbcCoordinatorInvocationHandler.java delete mode 100644 integration/hibernate-4.3/src/main/java/com/blazebit/persistence/integration/hibernate/PreparedStatementInvocationHandler.java delete mode 100644 integration/hibernate-4.3/src/main/java/com/blazebit/persistence/integration/hibernate/SecondaryTableUpdateSupportingPreparedStatementInvocationHandler.java delete mode 100644 integration/hibernate-4.3/src/main/java/com/blazebit/persistence/integration/hibernate/StatementPreparerImpl.java delete mode 100644 integration/hibernate-4.3/src/main/resources/META-INF/services/org.hibernate.metamodel.spi.TypeContributor delete mode 100644 integration/hibernate-5.2/pom.xml delete mode 100644 integration/hibernate-5.2/src/main/java/com/blazebit/persistence/integration/hibernate/CustomBasicCollectionPersister.java delete mode 100644 integration/hibernate-5.2/src/main/java/com/blazebit/persistence/integration/hibernate/CustomMultiTableBulkIdStrategy.java delete mode 100644 integration/hibernate-5.2/src/main/java/com/blazebit/persistence/integration/hibernate/CustomOneToManyPersister.java delete mode 100644 integration/hibernate-5.2/src/main/java/com/blazebit/persistence/integration/hibernate/CustomPersisterClassResolver.java delete mode 100644 integration/hibernate-5.2/src/main/java/com/blazebit/persistence/integration/hibernate/CustomSubselectCollectionLoader.java delete mode 100644 integration/hibernate-5.2/src/main/java/com/blazebit/persistence/integration/hibernate/CustomSubselectOneToManyLoader.java delete mode 100644 integration/hibernate-5.2/src/main/java/com/blazebit/persistence/integration/hibernate/CustomTableBasedUpdateHandlerImpl.java delete mode 100644 integration/hibernate-5.2/src/main/java/com/blazebit/persistence/integration/hibernate/DelegatingStatementPreparerImpl.java delete mode 100644 integration/hibernate-5.2/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate52Access.java delete mode 100644 integration/hibernate-5.2/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate52DelegatingDialect.java delete mode 100644 integration/hibernate-5.2/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate52EntityManagerFactoryIntegrator.java delete mode 100644 integration/hibernate-5.2/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate52Integrator.java delete mode 100644 integration/hibernate-5.2/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate52LimitHandler.java delete mode 100644 integration/hibernate-5.2/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate52LimitHandlingDialect.java delete mode 100644 integration/hibernate-5.2/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate52MetadataContributor.java delete mode 100644 integration/hibernate-5.2/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate52ServiceContributor.java delete mode 100644 integration/hibernate-5.2/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate52SessionFactoryInvocationHandler.java delete mode 100644 integration/hibernate-5.2/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate52SessionInvocationHandler.java delete mode 100644 integration/hibernate-5.2/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate5EntityTransactionSynchronizationStrategy.java delete mode 100644 integration/hibernate-5.2/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate5JtaPlatformTransactionSynchronizationStrategy.java delete mode 100644 integration/hibernate-5.2/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate5TransactionAccessFactory.java delete mode 100644 integration/hibernate-5.2/src/main/java/com/blazebit/persistence/integration/hibernate/JdbcCoordinatorInvocationHandler.java delete mode 100644 integration/hibernate-5.2/src/main/java/com/blazebit/persistence/integration/hibernate/NativeTableNameFormatter.java delete mode 100644 integration/hibernate-5.2/src/main/java/com/blazebit/persistence/integration/hibernate/PreparedStatementInvocationHandler.java delete mode 100644 integration/hibernate-5.2/src/main/java/com/blazebit/persistence/integration/hibernate/SecondaryTableUpdateSupportingPreparedStatementInvocationHandler.java delete mode 100644 integration/hibernate-5.2/src/main/java/com/blazebit/persistence/integration/hibernate/StatementPreparerImpl.java delete mode 100644 integration/hibernate-5.3/pom.xml delete mode 100644 integration/hibernate-5.3/src/main/java/com/blazebit/persistence/integration/hibernate/CustomBasicCollectionPersister.java delete mode 100644 integration/hibernate-5.3/src/main/java/com/blazebit/persistence/integration/hibernate/CustomMultiTableBulkIdStrategy.java delete mode 100644 integration/hibernate-5.3/src/main/java/com/blazebit/persistence/integration/hibernate/CustomOneToManyPersister.java delete mode 100644 integration/hibernate-5.3/src/main/java/com/blazebit/persistence/integration/hibernate/CustomPersisterClassResolver.java delete mode 100644 integration/hibernate-5.3/src/main/java/com/blazebit/persistence/integration/hibernate/CustomSubselectCollectionLoader.java delete mode 100644 integration/hibernate-5.3/src/main/java/com/blazebit/persistence/integration/hibernate/CustomSubselectOneToManyLoader.java delete mode 100644 integration/hibernate-5.3/src/main/java/com/blazebit/persistence/integration/hibernate/CustomTableBasedUpdateHandlerImpl.java delete mode 100644 integration/hibernate-5.3/src/main/java/com/blazebit/persistence/integration/hibernate/DelegatingStatementPreparerImpl.java delete mode 100644 integration/hibernate-5.3/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate53Access.java delete mode 100644 integration/hibernate-5.3/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate53DelegatingDialect.java delete mode 100644 integration/hibernate-5.3/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate53EntityManagerFactoryIntegrator.java delete mode 100644 integration/hibernate-5.3/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate53Integrator.java delete mode 100644 integration/hibernate-5.3/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate53LimitHandler.java delete mode 100644 integration/hibernate-5.3/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate53LimitHandlingDialect.java delete mode 100644 integration/hibernate-5.3/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate53MetadataContributor.java delete mode 100644 integration/hibernate-5.3/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate53ServiceContributor.java delete mode 100644 integration/hibernate-5.3/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate53SessionFactoryInvocationHandler.java delete mode 100644 integration/hibernate-5.3/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate53SessionInvocationHandler.java delete mode 100644 integration/hibernate-5.3/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate5EntityTransactionSynchronizationStrategy.java delete mode 100644 integration/hibernate-5.3/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate5JtaPlatformTransactionSynchronizationStrategy.java delete mode 100644 integration/hibernate-5.3/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate5TransactionAccessFactory.java delete mode 100644 integration/hibernate-5.3/src/main/java/com/blazebit/persistence/integration/hibernate/JdbcCoordinatorInvocationHandler.java delete mode 100644 integration/hibernate-5.3/src/main/java/com/blazebit/persistence/integration/hibernate/NativeTableNameFormatter.java delete mode 100644 integration/hibernate-5.3/src/main/java/com/blazebit/persistence/integration/hibernate/PreparedStatementInvocationHandler.java delete mode 100644 integration/hibernate-5.3/src/main/java/com/blazebit/persistence/integration/hibernate/SecondaryTableUpdateSupportingPreparedStatementInvocationHandler.java delete mode 100644 integration/hibernate-5.3/src/main/java/com/blazebit/persistence/integration/hibernate/StatementPreparerImpl.java delete mode 100644 integration/hibernate-5.4/pom.xml delete mode 100644 integration/hibernate-5.5-jakarta/pom.xml delete mode 100644 integration/hibernate-5.5/pom.xml delete mode 100644 integration/hibernate-5.6-jakarta/pom.xml delete mode 100644 integration/hibernate-5.6/pom.xml delete mode 100644 integration/hibernate-5.6/src/main/java/com/blazebit/persistence/integration/hibernate/CustomBasicCollectionPersister.java delete mode 100644 integration/hibernate-5.6/src/main/java/com/blazebit/persistence/integration/hibernate/CustomMultiTableBulkIdStrategy.java delete mode 100644 integration/hibernate-5.6/src/main/java/com/blazebit/persistence/integration/hibernate/CustomOneToManyPersister.java delete mode 100644 integration/hibernate-5.6/src/main/java/com/blazebit/persistence/integration/hibernate/CustomPersisterClassResolver.java delete mode 100644 integration/hibernate-5.6/src/main/java/com/blazebit/persistence/integration/hibernate/CustomSubselectCollectionLoader.java delete mode 100644 integration/hibernate-5.6/src/main/java/com/blazebit/persistence/integration/hibernate/CustomSubselectOneToManyLoader.java delete mode 100644 integration/hibernate-5.6/src/main/java/com/blazebit/persistence/integration/hibernate/CustomTableBasedUpdateHandlerImpl.java delete mode 100644 integration/hibernate-5.6/src/main/java/com/blazebit/persistence/integration/hibernate/DelegatingStatementPreparerImpl.java delete mode 100644 integration/hibernate-5.6/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate56Access.java delete mode 100644 integration/hibernate-5.6/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate56DelegatingDialect.java delete mode 100644 integration/hibernate-5.6/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate56EntityManagerFactoryIntegrator.java delete mode 100644 integration/hibernate-5.6/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate56Integrator.java delete mode 100644 integration/hibernate-5.6/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate56LimitHandler.java delete mode 100644 integration/hibernate-5.6/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate56LimitHandlingDialect.java delete mode 100644 integration/hibernate-5.6/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate56MetadataContributor.java delete mode 100644 integration/hibernate-5.6/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate56ServiceContributor.java delete mode 100644 integration/hibernate-5.6/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate56SessionFactoryInvocationHandler.java delete mode 100644 integration/hibernate-5.6/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate56SessionInvocationHandler.java delete mode 100644 integration/hibernate-5.6/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate5EntityTransactionSynchronizationStrategy.java delete mode 100644 integration/hibernate-5.6/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate5JtaPlatformTransactionSynchronizationStrategy.java delete mode 100644 integration/hibernate-5.6/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate5TransactionAccessFactory.java delete mode 100644 integration/hibernate-5.6/src/main/java/com/blazebit/persistence/integration/hibernate/JdbcCoordinatorInvocationHandler.java delete mode 100644 integration/hibernate-5.6/src/main/java/com/blazebit/persistence/integration/hibernate/NativeTableNameFormatter.java delete mode 100644 integration/hibernate-5.6/src/main/java/com/blazebit/persistence/integration/hibernate/PreparedStatementInvocationHandler.java delete mode 100644 integration/hibernate-5.6/src/main/java/com/blazebit/persistence/integration/hibernate/SecondaryTableUpdateSupportingPreparedStatementInvocationHandler.java delete mode 100644 integration/hibernate-5.6/src/main/java/com/blazebit/persistence/integration/hibernate/StatementPreparerImpl.java delete mode 100644 integration/hibernate-5/.gitignore delete mode 100644 integration/hibernate-5/pom.xml delete mode 100644 integration/hibernate-5/src/main/java/com/blazebit/persistence/integration/hibernate/CustomBasicCollectionPersister.java delete mode 100644 integration/hibernate-5/src/main/java/com/blazebit/persistence/integration/hibernate/CustomMultiTableBulkIdStrategy.java delete mode 100644 integration/hibernate-5/src/main/java/com/blazebit/persistence/integration/hibernate/CustomOneToManyPersister.java delete mode 100644 integration/hibernate-5/src/main/java/com/blazebit/persistence/integration/hibernate/CustomPersisterClassResolver.java delete mode 100644 integration/hibernate-5/src/main/java/com/blazebit/persistence/integration/hibernate/CustomSubselectCollectionLoader.java delete mode 100644 integration/hibernate-5/src/main/java/com/blazebit/persistence/integration/hibernate/CustomSubselectOneToManyLoader.java delete mode 100644 integration/hibernate-5/src/main/java/com/blazebit/persistence/integration/hibernate/CustomTableBasedUpdateHandlerImpl.java delete mode 100644 integration/hibernate-5/src/main/java/com/blazebit/persistence/integration/hibernate/DelegatingStatementPreparerImpl.java delete mode 100644 integration/hibernate-5/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate5Access.java delete mode 100644 integration/hibernate-5/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate5DelegatingDialect.java delete mode 100644 integration/hibernate-5/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate5EntityManagerFactoryIntegrator.java delete mode 100644 integration/hibernate-5/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate5EntityTransactionSynchronizationStrategy.java delete mode 100644 integration/hibernate-5/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate5Integrator.java delete mode 100644 integration/hibernate-5/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate5JtaPlatformTransactionSynchronizationStrategy.java delete mode 100644 integration/hibernate-5/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate5LimitHandler.java delete mode 100644 integration/hibernate-5/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate5LimitHandlingDialect.java delete mode 100644 integration/hibernate-5/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate5MetadataContributor.java delete mode 100644 integration/hibernate-5/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate5ServiceContributor.java delete mode 100644 integration/hibernate-5/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate5SessionFactoryInvocationHandler.java delete mode 100644 integration/hibernate-5/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate5SessionInvocationHandler.java delete mode 100644 integration/hibernate-5/src/main/java/com/blazebit/persistence/integration/hibernate/Hibernate5TransactionAccessFactory.java delete mode 100644 integration/hibernate-5/src/main/java/com/blazebit/persistence/integration/hibernate/JdbcCoordinatorInvocationHandler.java delete mode 100644 integration/hibernate-5/src/main/java/com/blazebit/persistence/integration/hibernate/NativeTableNameFormatter.java delete mode 100644 integration/hibernate-5/src/main/java/com/blazebit/persistence/integration/hibernate/PreparedStatementInvocationHandler.java delete mode 100644 integration/hibernate-5/src/main/java/com/blazebit/persistence/integration/hibernate/SecondaryTableUpdateSupportingPreparedStatementInvocationHandler.java delete mode 100644 integration/hibernate-5/src/main/java/com/blazebit/persistence/integration/hibernate/StatementPreparerImpl.java create mode 100644 integration/hibernate-6.2/src/main/java/module-info.java create mode 100644 integration/hibernate-6.2/src/main/resources/META-INF/services/com.blazebit.persistence.integration.hibernate.base.HibernateAccess create mode 100644 integration/hibernate-6.2/src/main/resources/META-INF/services/com.blazebit.persistence.spi.EntityManagerFactoryIntegrator create mode 100644 integration/hibernate-6.2/src/main/resources/META-INF/services/com.blazebit.persistence.view.spi.TransactionAccessFactory create mode 100644 integration/hibernate-6.2/src/main/resources/META-INF/services/org.hibernate.boot.spi.AdditionalMappingContributor create mode 100644 integration/hibernate-6.2/src/main/resources/META-INF/services/org.hibernate.integrator.spi.Integrator create mode 100644 integration/hibernate-6.2/src/main/resources/META-INF/services/org.hibernate.persister.spi.PersisterClassResolver create mode 100644 integration/hibernate-6.2/src/main/resources/META-INF/services/org.hibernate.service.spi.ServiceContributor delete mode 100644 integration/hibernate-base-jakarta/pom.xml delete mode 100644 integration/hibernate-base/.gitignore delete mode 100644 integration/hibernate-base/pom.xml delete mode 100644 integration/hibernate-base/src/main/java/com/blazebit/persistence/integration/hibernate/base/CustomCollectionPersister.java delete mode 100644 integration/hibernate-base/src/main/java/com/blazebit/persistence/integration/hibernate/base/Database.java delete mode 100644 integration/hibernate-base/src/main/java/com/blazebit/persistence/integration/hibernate/base/HibernateAccess.java delete mode 100644 integration/hibernate-base/src/main/java/com/blazebit/persistence/integration/hibernate/base/HibernateExtendedQuerySupport.java delete mode 100644 integration/hibernate-base/src/main/java/com/blazebit/persistence/integration/hibernate/base/HibernateJpa21Provider.java delete mode 100644 integration/hibernate-base/src/main/java/com/blazebit/persistence/integration/hibernate/base/HibernateJpaProvider.java delete mode 100644 integration/hibernate-base/src/main/java/com/blazebit/persistence/integration/hibernate/base/HibernateReturningResult.java delete mode 100644 integration/hibernate-base/src/main/java/com/blazebit/persistence/integration/hibernate/base/MultiIterator.java delete mode 100644 integration/hibernate-base/src/main/java/com/blazebit/persistence/integration/hibernate/base/QuoteMode.java delete mode 100644 integration/hibernate-base/src/main/java/com/blazebit/persistence/integration/hibernate/base/ResultSetInvocationHandler.java delete mode 100644 integration/hibernate-base/src/main/java/com/blazebit/persistence/integration/hibernate/base/ScrollableResultsIterator.java delete mode 100644 integration/hibernate-base/src/main/java/com/blazebit/persistence/integration/hibernate/base/SimpleDatabase.java delete mode 100644 integration/hibernate-base/src/main/java/com/blazebit/persistence/integration/hibernate/base/SimpleTableNameFormatter.java delete mode 100644 integration/hibernate-base/src/main/java/com/blazebit/persistence/integration/hibernate/base/SubselectLoaderUtils.java delete mode 100644 integration/hibernate-base/src/main/java/com/blazebit/persistence/integration/hibernate/base/SubselectPreparedStatementProxyHandler.java delete mode 100644 integration/hibernate-base/src/main/java/com/blazebit/persistence/integration/hibernate/base/TableNameFormatter.java delete mode 100644 integration/hibernate-base/src/main/java/com/blazebit/persistence/integration/hibernate/base/function/AbstractHibernateEntityManagerFactoryIntegrator.java delete mode 100644 integration/hibernate-base/src/main/java/com/blazebit/persistence/integration/hibernate/base/function/HibernateFunctionRenderContext.java delete mode 100644 integration/hibernate-base/src/main/java/com/blazebit/persistence/integration/hibernate/base/function/HibernateJpqlFunctionAdapter.java delete mode 100644 integration/hibernate-base/src/main/java/com/blazebit/persistence/integration/hibernate/base/function/HibernateSQLFunctionAdapter.java delete mode 100644 integration/hibernate-base/src/main/java/com/blazebit/persistence/integration/hibernate/base/spi/HibernateVersionProvider.java create mode 100644 integration/hibernate6-base/src/main/java/module-info.java create mode 100644 integration/hibernate6-base/src/main/resources/META-INF/services/com.blazebit.persistence.spi.ExtendedQuerySupport delete mode 100644 integration/jackson-jakarta/pom.xml create mode 100644 integration/jackson/src/main/java/module-info.java delete mode 100644 integration/jaxrs-jackson-jakarta/pom.xml delete mode 100644 integration/jaxrs-jackson/src/main/java/com/blazebit/persistence/integration/jaxrs/jackson/jersey/EntityViewIdAwareParameterServiceProvider.java create mode 100644 integration/jaxrs-jackson/src/main/java/module-info.java delete mode 100644 integration/jaxrs-jackson/src/main/resources/META-INF/services/org.glassfish.jersey.model.internal.spi.ParameterServiceProvider delete mode 100644 integration/jaxrs-jsonb-jakarta/pom.xml delete mode 100644 integration/jaxrs-jsonb/src/main/java/com/blazebit/persistence/integration/jaxrs/jsonb/jersey/EntityViewIdAwareParameterServiceProvider.java create mode 100644 integration/jaxrs-jsonb/src/main/java/module-info.java delete mode 100644 integration/jaxrs-jsonb/src/main/resources/META-INF/services/org.glassfish.jersey.model.internal.spi.ParameterServiceProvider create mode 100644 integration/jaxrs/src/main/java/module-info.java delete mode 100644 integration/jpa-base-jakarta/pom.xml delete mode 100644 integration/jpa-base-jar/pom.xml create mode 100644 integration/jpa-base/src/main/java/module-info.java delete mode 100644 integration/jsonb-jakarta/pom.xml create mode 100644 integration/jsonb/src/main/java/module-info.java delete mode 100644 integration/openjpa-jar/pom.xml delete mode 100644 integration/openjpa/pom.xml delete mode 100644 integration/openjpa/src/main/java/com/blazebit/persistence/integration/openjpa/ObjectBuilderAggregateListenerAdapter.java delete mode 100644 integration/openjpa/src/main/java/com/blazebit/persistence/integration/openjpa/OpenJPAEntityManagerFactoryIntegrator.java delete mode 100644 integration/openjpa/src/main/java/com/blazebit/persistence/integration/openjpa/OpenJPAJpaProvider.java delete mode 100644 integration/quarkus/deployment/pom.xml delete mode 100644 integration/quarkus/deployment/src/main/java/com/blazebit/persistence/integration/quarkus/deployment/BlazePersistenceCdiProcessor.java delete mode 100644 integration/quarkus/deployment/src/main/java/com/blazebit/persistence/integration/quarkus/deployment/BlazePersistenceInstanceDescriptorBuildItem.java delete mode 100644 integration/quarkus/deployment/src/main/java/com/blazebit/persistence/integration/quarkus/deployment/BlazePersistenceProcessor.java delete mode 100644 integration/quarkus/deployment/src/main/java/com/blazebit/persistence/integration/quarkus/deployment/EntityViewConfigurationBuildItem.java delete mode 100644 integration/quarkus/deployment/src/main/java/com/blazebit/persistence/integration/quarkus/deployment/EntityViewJandexScavenger.java delete mode 100644 integration/quarkus/deployment/src/main/java/com/blazebit/persistence/integration/quarkus/deployment/EntityViewListenersBuildItem.java delete mode 100644 integration/quarkus/deployment/src/main/java/com/blazebit/persistence/integration/quarkus/deployment/EntityViewsBuildItem.java delete mode 100644 integration/quarkus/deployment/src/test/java/com/blazebit/persistence/integration/quarkus/deployment/HotReloadTest.java delete mode 100644 integration/quarkus/deployment/src/test/java/com/blazebit/persistence/integration/quarkus/deployment/QuarkusTest.java delete mode 100644 integration/quarkus/deployment/src/test/java/com/blazebit/persistence/integration/quarkus/deployment/entity/Document.java delete mode 100644 integration/quarkus/deployment/src/test/java/com/blazebit/persistence/integration/quarkus/deployment/entity/Person.java delete mode 100644 integration/quarkus/deployment/src/test/java/com/blazebit/persistence/integration/quarkus/deployment/listener/DocumentPostPersistEntityListener.java delete mode 100644 integration/quarkus/deployment/src/test/java/com/blazebit/persistence/integration/quarkus/deployment/multipleinstances/MultiBlazePersistenceInstancesPackageAnnotationsTest.java delete mode 100644 integration/quarkus/deployment/src/test/java/com/blazebit/persistence/integration/quarkus/deployment/multipleinstances/MultiBlazePersistenceInstancesTest.java delete mode 100644 integration/quarkus/deployment/src/test/java/com/blazebit/persistence/integration/quarkus/deployment/multipleinstances/entity/Car.java delete mode 100644 integration/quarkus/deployment/src/test/java/com/blazebit/persistence/integration/quarkus/deployment/multipleinstances/entity/Desk.java delete mode 100644 integration/quarkus/deployment/src/test/java/com/blazebit/persistence/integration/quarkus/deployment/multipleinstances/entity/SharedEntity.java delete mode 100644 integration/quarkus/deployment/src/test/java/com/blazebit/persistence/integration/quarkus/deployment/multipleinstances/view/annotation/car/CarView.java delete mode 100644 integration/quarkus/deployment/src/test/java/com/blazebit/persistence/integration/quarkus/deployment/multipleinstances/view/annotation/car/package-info.java delete mode 100644 integration/quarkus/deployment/src/test/java/com/blazebit/persistence/integration/quarkus/deployment/multipleinstances/view/annotation/desk/DeskView.java delete mode 100644 integration/quarkus/deployment/src/test/java/com/blazebit/persistence/integration/quarkus/deployment/multipleinstances/view/annotation/desk/package-info.java delete mode 100644 integration/quarkus/deployment/src/test/java/com/blazebit/persistence/integration/quarkus/deployment/multipleinstances/view/annotation/shared/SharedEntityView.java delete mode 100644 integration/quarkus/deployment/src/test/java/com/blazebit/persistence/integration/quarkus/deployment/multipleinstances/view/annotation/shared/package-info.java delete mode 100644 integration/quarkus/deployment/src/test/java/com/blazebit/persistence/integration/quarkus/deployment/multipleinstances/view/config/car/CarView.java delete mode 100644 integration/quarkus/deployment/src/test/java/com/blazebit/persistence/integration/quarkus/deployment/multipleinstances/view/config/desk/DeskView.java delete mode 100644 integration/quarkus/deployment/src/test/java/com/blazebit/persistence/integration/quarkus/deployment/multipleinstances/view/config/shared/SharedEntityView.java delete mode 100644 integration/quarkus/deployment/src/test/java/com/blazebit/persistence/integration/quarkus/deployment/resource/DocumentResource.java delete mode 100644 integration/quarkus/deployment/src/test/java/com/blazebit/persistence/integration/quarkus/deployment/resource/PersonResource.java delete mode 100644 integration/quarkus/deployment/src/test/java/com/blazebit/persistence/integration/quarkus/deployment/view/DocumentCreateView.java delete mode 100644 integration/quarkus/deployment/src/test/java/com/blazebit/persistence/integration/quarkus/deployment/view/DocumentView.java delete mode 100644 integration/quarkus/deployment/src/test/java/com/blazebit/persistence/integration/quarkus/deployment/view/PersonCreateView.java delete mode 100644 integration/quarkus/deployment/src/test/java/com/blazebit/persistence/integration/quarkus/deployment/view/PersonView.java delete mode 100644 integration/quarkus/deployment/src/test/resources/META-INF/persistence-multiple-persistence-units.xml delete mode 100644 integration/quarkus/deployment/src/test/resources/META-INF/persistence.xml delete mode 100644 integration/quarkus/deployment/src/test/resources/application-multiple-instances-annotations.properties delete mode 100644 integration/quarkus/deployment/src/test/resources/application-multiple-instances.properties delete mode 100644 integration/quarkus/deployment/src/test/resources/application.properties delete mode 100644 integration/quarkus/pom.xml delete mode 100644 integration/quarkus/runtime/pom.xml delete mode 100644 integration/quarkus/runtime/src/main/java/com/blazebit/persistence/integration/quarkus/runtime/BlazePersistenceConfiguration.java delete mode 100644 integration/quarkus/runtime/src/main/java/com/blazebit/persistence/integration/quarkus/runtime/BlazePersistenceHibernateOrmIntegrationStaticInitListener.java delete mode 100644 integration/quarkus/runtime/src/main/java/com/blazebit/persistence/integration/quarkus/runtime/BlazePersistenceInstance.java delete mode 100644 integration/quarkus/runtime/src/main/java/com/blazebit/persistence/integration/quarkus/runtime/BlazePersistenceInstanceConfiguration.java delete mode 100644 integration/quarkus/runtime/src/main/java/com/blazebit/persistence/integration/quarkus/runtime/BlazePersistenceInstanceUtil.java delete mode 100644 integration/quarkus/runtime/src/main/java/com/blazebit/persistence/integration/quarkus/runtime/BlazePersistenceSubstitutions.java delete mode 100644 integration/quarkus/runtime/src/main/java/com/blazebit/persistence/integration/quarkus/runtime/CriteriaBuilderConfigurationHolder.java delete mode 100644 integration/quarkus/runtime/src/main/java/com/blazebit/persistence/integration/quarkus/runtime/DefaultCriteriaBuilderFactoryProducer.java delete mode 100644 integration/quarkus/runtime/src/main/java/com/blazebit/persistence/integration/quarkus/runtime/DefaultEntityViewManagerProducer.java delete mode 100644 integration/quarkus/runtime/src/main/java/com/blazebit/persistence/integration/quarkus/runtime/EntityViewConfigurationHolder.java delete mode 100644 integration/quarkus/runtime/src/main/java/com/blazebit/persistence/integration/quarkus/runtime/EntityViewRecorder.java delete mode 100644 integration/quarkus/runtime/src/main/resources/META-INF/quarkus-extension.properties delete mode 100644 integration/quarkus/runtime/src/main/resources/META-INF/quarkus-extension.yaml delete mode 100644 integration/querydsl/expressions-jakarta/pom.xml delete mode 100644 integration/spring-data/1.x/pom.xml delete mode 100644 integration/spring-data/1.x/src/main/java/com/blazebit/persistence/spring/data/impl/query/CriteriaQueryParameterBinder.java delete mode 100644 integration/spring-data/1.x/src/main/java/com/blazebit/persistence/spring/data/impl/query/EntityViewAwareRepositoryInformation.java delete mode 100644 integration/spring-data/1.x/src/main/java/com/blazebit/persistence/spring/data/impl/query/EntityViewAwareRepositoryMetadataImpl.java delete mode 100644 integration/spring-data/1.x/src/main/java/com/blazebit/persistence/spring/data/impl/query/ParameterMetadataProviderImpl.java delete mode 100644 integration/spring-data/1.x/src/main/java/com/blazebit/persistence/spring/data/impl/query/PartTreeBlazePersistenceQuery.java delete mode 100644 integration/spring-data/1.x/src/main/java/com/blazebit/persistence/spring/data/impl/repository/BlazePersistenceRepositoryFactory.java delete mode 100644 integration/spring-data/1.x/src/main/java/com/blazebit/persistence/spring/data/impl/repository/BlazePersistenceRepositoryFactoryBean.java delete mode 100644 integration/spring-data/1.x/src/main/java/com/blazebit/persistence/spring/data/impl/repository/EntityViewAwareRepositoryImpl.java delete mode 100644 integration/spring-data/2.0/pom.xml delete mode 100644 integration/spring-data/2.0/src/main/java/com/blazebit/persistence/spring/data/impl/query/CriteriaQueryParameterBinder.java delete mode 100644 integration/spring-data/2.0/src/main/java/com/blazebit/persistence/spring/data/impl/query/EntityViewAwareRepositoryInformation.java delete mode 100644 integration/spring-data/2.0/src/main/java/com/blazebit/persistence/spring/data/impl/query/EntityViewAwareRepositoryMetadataImpl.java delete mode 100644 integration/spring-data/2.0/src/main/java/com/blazebit/persistence/spring/data/impl/query/ParameterMetadataProviderImpl.java delete mode 100644 integration/spring-data/2.0/src/main/java/com/blazebit/persistence/spring/data/impl/query/PartTreeBlazePersistenceQuery.java delete mode 100644 integration/spring-data/2.0/src/main/java/com/blazebit/persistence/spring/data/impl/repository/BlazePersistenceRepositoryFactory.java delete mode 100644 integration/spring-data/2.0/src/main/java/com/blazebit/persistence/spring/data/impl/repository/BlazePersistenceRepositoryFactoryBean.java delete mode 100644 integration/spring-data/2.0/src/main/java/com/blazebit/persistence/spring/data/impl/repository/DefaultRepositoryInformation.java delete mode 100644 integration/spring-data/2.0/src/main/java/com/blazebit/persistence/spring/data/impl/repository/EntityViewAwareRepositoryImpl.java delete mode 100644 integration/spring-data/2.0/src/main/java/com/blazebit/persistence/spring/data/impl/repository/MethodLookups.java delete mode 100644 integration/spring-data/2.1/pom.xml delete mode 100644 integration/spring-data/2.1/src/main/java/com/blazebit/persistence/spring/data/impl/query/CriteriaQueryParameterBinder.java delete mode 100644 integration/spring-data/2.1/src/main/java/com/blazebit/persistence/spring/data/impl/query/EntityViewAwareRepositoryInformation.java delete mode 100644 integration/spring-data/2.1/src/main/java/com/blazebit/persistence/spring/data/impl/query/EntityViewAwareRepositoryMetadataImpl.java delete mode 100644 integration/spring-data/2.1/src/main/java/com/blazebit/persistence/spring/data/impl/query/ParameterMetadataProviderImpl.java delete mode 100644 integration/spring-data/2.1/src/main/java/com/blazebit/persistence/spring/data/impl/query/PartTreeBlazePersistenceQuery.java delete mode 100644 integration/spring-data/2.1/src/main/java/com/blazebit/persistence/spring/data/impl/repository/BlazePersistenceRepositoryFactory.java delete mode 100644 integration/spring-data/2.1/src/main/java/com/blazebit/persistence/spring/data/impl/repository/BlazePersistenceRepositoryFactoryBean.java delete mode 100644 integration/spring-data/2.1/src/main/java/com/blazebit/persistence/spring/data/impl/repository/DefaultRepositoryInformation.java delete mode 100644 integration/spring-data/2.1/src/main/java/com/blazebit/persistence/spring/data/impl/repository/EntityViewAwareRepositoryImpl.java delete mode 100644 integration/spring-data/2.1/src/main/java/com/blazebit/persistence/spring/data/impl/repository/MethodLookups.java delete mode 100644 integration/spring-data/2.2/pom.xml delete mode 100644 integration/spring-data/2.2/src/main/java/com/blazebit/persistence/spring/data/impl/query/CriteriaQueryParameterBinder.java delete mode 100644 integration/spring-data/2.2/src/main/java/com/blazebit/persistence/spring/data/impl/query/EntityViewAwareRepositoryInformation.java delete mode 100644 integration/spring-data/2.2/src/main/java/com/blazebit/persistence/spring/data/impl/query/EntityViewAwareRepositoryMetadataImpl.java delete mode 100644 integration/spring-data/2.2/src/main/java/com/blazebit/persistence/spring/data/impl/query/ParameterMetadataProviderImpl.java delete mode 100644 integration/spring-data/2.2/src/main/java/com/blazebit/persistence/spring/data/impl/query/PartTreeBlazePersistenceQuery.java delete mode 100644 integration/spring-data/2.2/src/main/java/com/blazebit/persistence/spring/data/impl/repository/BlazePersistenceRepositoryFactory.java delete mode 100644 integration/spring-data/2.2/src/main/java/com/blazebit/persistence/spring/data/impl/repository/BlazePersistenceRepositoryFactoryBean.java delete mode 100644 integration/spring-data/2.2/src/main/java/com/blazebit/persistence/spring/data/impl/repository/DefaultRepositoryInformation.java delete mode 100644 integration/spring-data/2.2/src/main/java/com/blazebit/persistence/spring/data/impl/repository/EntityViewAwareRepositoryImpl.java delete mode 100644 integration/spring-data/2.2/src/main/java/com/blazebit/persistence/spring/data/impl/repository/MethodLookups.java delete mode 100644 integration/spring-data/2.3/pom.xml delete mode 100644 integration/spring-data/2.3/src/main/java/com/blazebit/persistence/spring/data/impl/query/CriteriaQueryParameterBinder.java delete mode 100644 integration/spring-data/2.3/src/main/java/com/blazebit/persistence/spring/data/impl/query/EntityViewAwareRepositoryInformation.java delete mode 100644 integration/spring-data/2.3/src/main/java/com/blazebit/persistence/spring/data/impl/query/EntityViewAwareRepositoryMetadataImpl.java delete mode 100644 integration/spring-data/2.3/src/main/java/com/blazebit/persistence/spring/data/impl/query/ParameterMetadataProviderImpl.java delete mode 100644 integration/spring-data/2.3/src/main/java/com/blazebit/persistence/spring/data/impl/query/PartTreeBlazePersistenceQuery.java delete mode 100644 integration/spring-data/2.3/src/main/java/com/blazebit/persistence/spring/data/impl/repository/BlazePersistenceRepositoryFactory.java delete mode 100644 integration/spring-data/2.3/src/main/java/com/blazebit/persistence/spring/data/impl/repository/BlazePersistenceRepositoryFactoryBean.java delete mode 100644 integration/spring-data/2.3/src/main/java/com/blazebit/persistence/spring/data/impl/repository/DefaultRepositoryInformation.java delete mode 100644 integration/spring-data/2.3/src/main/java/com/blazebit/persistence/spring/data/impl/repository/EntityViewAwareRepositoryImpl.java delete mode 100644 integration/spring-data/2.3/src/main/java/com/blazebit/persistence/spring/data/impl/repository/MethodLookups.java delete mode 100644 integration/spring-data/2.3/src/main/java/com/blazebit/persistence/spring/data/impl/repository/QueryCollectingQueryCreationListener.java delete mode 100644 integration/spring-data/2.3/src/main/java/com/blazebit/persistence/spring/data/impl/repository/QueryExecutionResultHandler.java delete mode 100644 integration/spring-data/2.3/src/main/java/com/blazebit/persistence/spring/data/impl/repository/QueryExecutorMethodInterceptor.java delete mode 100644 integration/spring-data/2.4/pom.xml delete mode 100644 integration/spring-data/2.4/src/main/java/com/blazebit/persistence/spring/data/impl/query/CriteriaQueryParameterBinder.java delete mode 100644 integration/spring-data/2.4/src/main/java/com/blazebit/persistence/spring/data/impl/query/EntityViewAwareRepositoryInformation.java delete mode 100644 integration/spring-data/2.4/src/main/java/com/blazebit/persistence/spring/data/impl/query/EntityViewAwareRepositoryMetadataImpl.java delete mode 100644 integration/spring-data/2.4/src/main/java/com/blazebit/persistence/spring/data/impl/query/ParameterMetadataProviderImpl.java delete mode 100644 integration/spring-data/2.4/src/main/java/com/blazebit/persistence/spring/data/impl/query/PartTreeBlazePersistenceQuery.java delete mode 100644 integration/spring-data/2.4/src/main/java/com/blazebit/persistence/spring/data/impl/repository/BlazePersistenceRepositoryFactory.java delete mode 100644 integration/spring-data/2.4/src/main/java/com/blazebit/persistence/spring/data/impl/repository/BlazePersistenceRepositoryFactoryBean.java delete mode 100644 integration/spring-data/2.4/src/main/java/com/blazebit/persistence/spring/data/impl/repository/DefaultRepositoryInformation.java delete mode 100644 integration/spring-data/2.4/src/main/java/com/blazebit/persistence/spring/data/impl/repository/EntityViewAwareRepositoryImpl.java delete mode 100644 integration/spring-data/2.4/src/main/java/com/blazebit/persistence/spring/data/impl/repository/MethodLookups.java delete mode 100644 integration/spring-data/2.4/src/main/java/com/blazebit/persistence/spring/data/impl/repository/QueryCollectingQueryCreationListener.java delete mode 100644 integration/spring-data/2.4/src/main/java/com/blazebit/persistence/spring/data/impl/repository/QueryExecutionResultHandler.java delete mode 100644 integration/spring-data/2.5/pom.xml delete mode 100644 integration/spring-data/2.5/src/main/java/com/blazebit/persistence/spring/data/impl/query/CriteriaQueryParameterBinder.java delete mode 100644 integration/spring-data/2.5/src/main/java/com/blazebit/persistence/spring/data/impl/query/EntityViewAwareRepositoryInformation.java delete mode 100644 integration/spring-data/2.5/src/main/java/com/blazebit/persistence/spring/data/impl/query/EntityViewAwareRepositoryMetadataImpl.java delete mode 100644 integration/spring-data/2.5/src/main/java/com/blazebit/persistence/spring/data/impl/query/ParameterMetadataProviderImpl.java delete mode 100644 integration/spring-data/2.5/src/main/java/com/blazebit/persistence/spring/data/impl/query/PartTreeBlazePersistenceQuery.java delete mode 100644 integration/spring-data/2.5/src/main/java/com/blazebit/persistence/spring/data/impl/repository/BlazePersistenceRepositoryFactory.java delete mode 100644 integration/spring-data/2.5/src/main/java/com/blazebit/persistence/spring/data/impl/repository/BlazePersistenceRepositoryFactoryBean.java delete mode 100644 integration/spring-data/2.5/src/main/java/com/blazebit/persistence/spring/data/impl/repository/DefaultRepositoryInformation.java delete mode 100644 integration/spring-data/2.5/src/main/java/com/blazebit/persistence/spring/data/impl/repository/EntityViewAwareRepositoryImpl.java delete mode 100644 integration/spring-data/2.5/src/main/java/com/blazebit/persistence/spring/data/impl/repository/MethodLookups.java delete mode 100644 integration/spring-data/2.5/src/main/java/com/blazebit/persistence/spring/data/impl/repository/QueryCollectingQueryCreationListener.java delete mode 100644 integration/spring-data/2.5/src/main/java/com/blazebit/persistence/spring/data/impl/repository/QueryExecutionResultHandler.java delete mode 100644 integration/spring-data/2.6/pom.xml delete mode 100644 integration/spring-data/2.6/src/main/java/com/blazebit/persistence/spring/data/impl/query/CriteriaQueryParameterBinder.java delete mode 100644 integration/spring-data/2.6/src/main/java/com/blazebit/persistence/spring/data/impl/query/EntityViewAwareRepositoryInformation.java delete mode 100644 integration/spring-data/2.6/src/main/java/com/blazebit/persistence/spring/data/impl/query/EntityViewAwareRepositoryMetadataImpl.java delete mode 100644 integration/spring-data/2.6/src/main/java/com/blazebit/persistence/spring/data/impl/query/ParameterMetadataProviderImpl.java delete mode 100644 integration/spring-data/2.6/src/main/java/com/blazebit/persistence/spring/data/impl/query/PartTreeBlazePersistenceQuery.java delete mode 100644 integration/spring-data/2.6/src/main/java/com/blazebit/persistence/spring/data/impl/repository/BlazePersistenceRepositoryFactory.java delete mode 100644 integration/spring-data/2.6/src/main/java/com/blazebit/persistence/spring/data/impl/repository/BlazePersistenceRepositoryFactoryBean.java delete mode 100644 integration/spring-data/2.6/src/main/java/com/blazebit/persistence/spring/data/impl/repository/DefaultRepositoryInformation.java delete mode 100644 integration/spring-data/2.6/src/main/java/com/blazebit/persistence/spring/data/impl/repository/EntityViewAwareRepositoryImpl.java delete mode 100644 integration/spring-data/2.6/src/main/java/com/blazebit/persistence/spring/data/impl/repository/FetchableFluentQueryByExample.java delete mode 100644 integration/spring-data/2.6/src/main/java/com/blazebit/persistence/spring/data/impl/repository/FluentQuerySupport.java delete mode 100644 integration/spring-data/2.6/src/main/java/com/blazebit/persistence/spring/data/impl/repository/MethodLookups.java delete mode 100644 integration/spring-data/2.6/src/main/java/com/blazebit/persistence/spring/data/impl/repository/QueryCollectingQueryCreationListener.java delete mode 100644 integration/spring-data/2.6/src/main/java/com/blazebit/persistence/spring/data/impl/repository/QueryExecutionResultHandler.java delete mode 100644 integration/spring-data/2.7/pom.xml delete mode 100644 integration/spring-data/2.7/src/main/java/com/blazebit/persistence/spring/data/impl/query/CriteriaQueryParameterBinder.java delete mode 100644 integration/spring-data/2.7/src/main/java/com/blazebit/persistence/spring/data/impl/query/EntityViewAwareRepositoryInformation.java delete mode 100644 integration/spring-data/2.7/src/main/java/com/blazebit/persistence/spring/data/impl/query/EntityViewAwareRepositoryMetadataImpl.java delete mode 100644 integration/spring-data/2.7/src/main/java/com/blazebit/persistence/spring/data/impl/query/ParameterMetadataProviderImpl.java delete mode 100644 integration/spring-data/2.7/src/main/java/com/blazebit/persistence/spring/data/impl/query/PartTreeBlazePersistenceQuery.java delete mode 100644 integration/spring-data/2.7/src/main/java/com/blazebit/persistence/spring/data/impl/repository/BlazePersistenceRepositoryFactory.java delete mode 100644 integration/spring-data/2.7/src/main/java/com/blazebit/persistence/spring/data/impl/repository/BlazePersistenceRepositoryFactoryBean.java delete mode 100644 integration/spring-data/2.7/src/main/java/com/blazebit/persistence/spring/data/impl/repository/DefaultRepositoryInformation.java delete mode 100644 integration/spring-data/2.7/src/main/java/com/blazebit/persistence/spring/data/impl/repository/EntityViewAwareRepositoryImpl.java delete mode 100644 integration/spring-data/2.7/src/main/java/com/blazebit/persistence/spring/data/impl/repository/FetchableFluentQueryByExample.java delete mode 100644 integration/spring-data/2.7/src/main/java/com/blazebit/persistence/spring/data/impl/repository/FluentQuerySupport.java delete mode 100644 integration/spring-data/2.7/src/main/java/com/blazebit/persistence/spring/data/impl/repository/MethodLookups.java delete mode 100644 integration/spring-data/2.7/src/main/java/com/blazebit/persistence/spring/data/impl/repository/QueryCollectingQueryCreationListener.java delete mode 100644 integration/spring-data/2.7/src/main/java/com/blazebit/persistence/spring/data/impl/repository/QueryExecutionResultHandler.java create mode 100644 integration/spring-data/3.1/src/main/java/module-info.java create mode 100644 integration/spring-data/3.3/src/main/java/module-info.java delete mode 100644 integration/spring-data/asm-debug-all/pom.xml rename integration/spring-data/base-3.1/src/main/java/{org/springframework/data/jpa/repository => com/blazebit/persistence/spring/data/base}/query/FixedJpaCountQueryCreator.java (89%) rename integration/spring-data/base-3.1/src/main/java/{org/springframework/data/jpa/repository => com/blazebit/persistence/spring/data/base}/query/FixedJpaQueryCreator.java (97%) create mode 100644 integration/spring-data/base-3.1/src/main/java/com/blazebit/persistence/spring/data/base/query/QueryUtils.java create mode 100644 integration/spring-data/base-3.1/src/main/java/module-info.java delete mode 100644 integration/spring-data/base-3.1/src/main/java/org/springframework/data/repository/config/BootstrapMode.java rename integration/spring-data/base-3.3/src/main/java/{org/springframework/data/jpa/repository => com/blazebit/persistence/spring/data/base}/query/FixedJpaCountQueryCreator.java (89%) rename integration/spring-data/base-3.3/src/main/java/{org/springframework/data/jpa/repository => com/blazebit/persistence/spring/data/base}/query/FixedJpaQueryCreator.java (97%) create mode 100644 integration/spring-data/base-3.3/src/main/java/com/blazebit/persistence/spring/data/base/query/QueryUtils.java create mode 100644 integration/spring-data/base-3.3/src/main/java/module-info.java delete mode 100644 integration/spring-data/base-3.3/src/main/java/org/springframework/data/repository/config/BootstrapMode.java delete mode 100644 integration/spring-data/base/pom.xml delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/annotation/OptionalParam.java delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/base/EntityViewSortUtil.java delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/base/query/AbstractCriteriaQueryParameterBinder.java delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/base/query/AbstractPartTreeBlazePersistenceQuery.java delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/base/query/EntityViewAwareJpaQueryMethod.java delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/base/query/EntityViewAwareRepositoryMetadata.java delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/base/query/JpaParameters.java delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/base/query/KeysetAwarePageImpl.java delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/base/query/KeysetAwareSliceImpl.java delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/base/query/ParameterBinder.java delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/base/query/ParameterMetadataProvider.java delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/base/repository/AbstractEntityViewAwareRepository.java delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/base/repository/EntityViewAwareCrudMethodMetadata.java delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/base/repository/EntityViewAwareCrudMethodMetadataPostProcessor.java delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/repository/BlazeSpecification.java delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/repository/EntityViewReplacingMethodInterceptor.java delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/repository/EntityViewRepository.java delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/repository/EntityViewSettingProcessor.java delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/repository/EntityViewSpecificationExecutor.java delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/repository/KeysetAwarePage.java delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/repository/KeysetAwareSlice.java delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/repository/KeysetPageRequest.java delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/repository/KeysetPageable.java delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/repository/config/BlazeRepositoriesRegistrar.java delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/repository/config/BlazeRepositoryConfigExtension.java delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/repository/config/EnableBlazeRepositories.java delete mode 100644 integration/spring-data/base/src/main/java/com/blazebit/persistence/spring/data/repository/package-info.java delete mode 100644 integration/spring-data/base/src/main/java/org/springframework/data/jpa/repository/query/FixedJpaCountQueryCreator.java delete mode 100644 integration/spring-data/base/src/main/java/org/springframework/data/jpa/repository/query/FixedJpaQueryCreator.java delete mode 100644 integration/spring-data/base/src/main/java/org/springframework/data/repository/config/BootstrapMode.java delete mode 100644 integration/spring-data/testsuite/webflux-jakarta-runner/pom.xml delete mode 100644 integration/spring-data/testsuite/webflux-jakarta/pom.xml delete mode 100644 integration/spring-data/testsuite/webmvc-jakarta-runner/pom.xml delete mode 100644 integration/spring-data/testsuite/webmvc-jakarta/pom.xml create mode 100644 integration/spring-data/webflux/src/main/java/module-info.java delete mode 100644 integration/spring-data/webmvc-jakarta/pom.xml delete mode 100644 integration/spring-data/webmvc-jakarta/src/main/java/com/blazebit/persistence/spring/data/webmvc/EntityViewId.java delete mode 100644 integration/spring-data/webmvc-jakarta/src/main/java/com/blazebit/persistence/spring/data/webmvc/KeysetConfig.java delete mode 100644 integration/spring-data/webmvc-jakarta/src/main/java/com/blazebit/persistence/spring/data/webmvc/KeysetPageableArgumentResolver.java delete mode 100644 integration/spring-data/webmvc-jakarta/src/main/java/com/blazebit/persistence/spring/data/webmvc/impl/BlazePersistenceWebConfiguration.java delete mode 100644 integration/spring-data/webmvc-jakarta/src/main/java/com/blazebit/persistence/spring/data/webmvc/impl/KeysetPageableHandlerMethodArgumentResolver.java delete mode 100644 integration/spring-data/webmvc-jakarta/src/main/java/com/blazebit/persistence/spring/data/webmvc/impl/Sort.java delete mode 100644 integration/spring-data/webmvc-jakarta/src/main/java/com/blazebit/persistence/spring/data/webmvc/impl/json/EntityViewAwareMappingJackson2HttpMessageConverter.java delete mode 100644 integration/spring-data/webmvc-jakarta/src/main/java/com/blazebit/persistence/spring/data/webmvc/impl/json/EntityViewIdHandlerInterceptor.java delete mode 100644 integration/spring-data/webmvc-jakarta/src/main/java/com/blazebit/persistence/spring/data/webmvc/impl/json/EntityViewIdValueHolder.java delete mode 100644 integration/spring-data/webmvc-jakarta/src/main/java/com/blazebit/persistence/spring/data/webmvc/package-info.java create mode 100644 integration/spring-data/webmvc/src/main/java/module-info.java delete mode 100644 integration/spring-data/webmvc/src/main/resources/META-INF/spring.factories rename integration/spring-data/{webmvc-jakarta => webmvc}/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports (100%) delete mode 100644 integration/spring-hateoas/webmvc-jakarta/log4j.properties delete mode 100644 integration/spring-hateoas/webmvc-jakarta/pom.xml delete mode 100644 integration/spring-hateoas/webmvc-jakarta/src/main/java/com/blazebit/persistence/spring/hateoas/webmvc/BlazePersistenceAutoConfigurationImportFilter.java delete mode 100644 integration/spring-hateoas/webmvc-jakarta/src/main/java/com/blazebit/persistence/spring/hateoas/webmvc/HateoasAwareBlazePersistenceWebConfiguration.java delete mode 100644 integration/spring-hateoas/webmvc-jakarta/src/main/java/com/blazebit/persistence/spring/hateoas/webmvc/HateoasKeysetPageableHandlerMethodArgumentResolver.java delete mode 100644 integration/spring-hateoas/webmvc-jakarta/src/main/java/com/blazebit/persistence/spring/hateoas/webmvc/KeysetAwareMethodParameterAwarePagedResourcesAssembler.java delete mode 100644 integration/spring-hateoas/webmvc-jakarta/src/main/java/com/blazebit/persistence/spring/hateoas/webmvc/KeysetAwarePagedResourcesAssembler.java delete mode 100644 integration/spring-hateoas/webmvc-jakarta/src/main/java/com/blazebit/persistence/spring/hateoas/webmvc/KeysetAwarePagedResourcesAssemblerArgumentResolver.java delete mode 100644 integration/spring-hateoas/webmvc-jakarta/src/main/resources/META-INF/spring.factories delete mode 100644 integration/spring-hateoas/webmvc-jakarta/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports delete mode 100644 integration/spring-hateoas/webmvc-jakarta/src/test/java/com/blazebit/persistence/spring/hateoas/webmvc/AbstractSpringTest.java delete mode 100644 integration/spring-hateoas/webmvc-jakarta/src/test/java/com/blazebit/persistence/spring/hateoas/webmvc/AbstractSpringWebMvcTest.java delete mode 100644 integration/spring-hateoas/webmvc-jakarta/src/test/java/com/blazebit/persistence/spring/hateoas/webmvc/DocumentControllerTest.java delete mode 100644 integration/spring-hateoas/webmvc-jakarta/src/test/java/com/blazebit/persistence/spring/hateoas/webmvc/config/BlazePersistenceConfiguration.java delete mode 100644 integration/spring-hateoas/webmvc-jakarta/src/test/java/com/blazebit/persistence/spring/hateoas/webmvc/config/CustomLocalContainerEntityManagerFactoryBean.java delete mode 100644 integration/spring-hateoas/webmvc-jakarta/src/test/java/com/blazebit/persistence/spring/hateoas/webmvc/config/SystemPropertyBasedActiveProfilesResolver.java delete mode 100644 integration/spring-hateoas/webmvc-jakarta/src/test/java/com/blazebit/persistence/spring/hateoas/webmvc/controller/DocumentController.java delete mode 100644 integration/spring-hateoas/webmvc-jakarta/src/test/java/com/blazebit/persistence/spring/hateoas/webmvc/entity/Document.java delete mode 100644 integration/spring-hateoas/webmvc-jakarta/src/test/java/com/blazebit/persistence/spring/hateoas/webmvc/entity/Person.java delete mode 100644 integration/spring-hateoas/webmvc-jakarta/src/test/java/com/blazebit/persistence/spring/hateoas/webmvc/repository/ReadOnlyDocumentViewRepository.java delete mode 100644 integration/spring-hateoas/webmvc-jakarta/src/test/java/com/blazebit/persistence/spring/hateoas/webmvc/tx/TransactionalWorkService.java delete mode 100644 integration/spring-hateoas/webmvc-jakarta/src/test/java/com/blazebit/persistence/spring/hateoas/webmvc/tx/TxVoidWork.java delete mode 100644 integration/spring-hateoas/webmvc-jakarta/src/test/java/com/blazebit/persistence/spring/hateoas/webmvc/tx/TxWork.java delete mode 100644 integration/spring-hateoas/webmvc-jakarta/src/test/java/com/blazebit/persistence/spring/hateoas/webmvc/view/DocumentView.java delete mode 100644 integration/spring-hateoas/webmvc-jakarta/src/test/java/com/blazebit/persistence/spring/hateoas/webmvc/view/PersonView.java delete mode 100644 integration/spring-hateoas/webmvc-jakarta/src/test/resources/META-INF/persistence.xml delete mode 100644 integration/spring-hateoas/webmvc-jakarta/src/test/resources/com/blazebit/persistence/spring/hateoas/webmvc/application-config.xml delete mode 100644 integration/spring-hateoas/webmvc-jakarta/src/test/resources/logback-test.xml create mode 100644 integration/spring-hateoas/webmvc/src/main/java/module-info.java delete mode 100644 jpa-criteria/api-jakarta/pom.xml delete mode 100644 jpa-criteria/api-jar/pom.xml create mode 100644 jpa-criteria/api/src/main/java/module-info.java delete mode 100644 jpa-criteria/impl-jakarta/pom.xml delete mode 100644 jpa-criteria/impl-jar/pom.xml create mode 100644 jpa-criteria/impl/src/main/java/com/blazebit/persistence/criteria/impl/expression/function/LocalDateFunction.java create mode 100644 jpa-criteria/impl/src/main/java/com/blazebit/persistence/criteria/impl/expression/function/LocalDateTimeFunction.java create mode 100644 jpa-criteria/impl/src/main/java/com/blazebit/persistence/criteria/impl/expression/function/LocalTimeFunction.java create mode 100644 jpa-criteria/impl/src/main/java/module-info.java create mode 100644 jpa-criteria/impl/src/main/resources/META-INF/services/com.blazebit.persistence.criteria.spi.BlazeCriteriaBuilderFactory delete mode 100644 jpa-criteria/jpa-2-compatibility-jar/pom.xml delete mode 100644 jpa-criteria/jpa-2-compatibility/.gitignore delete mode 100644 jpa-criteria/jpa-2-compatibility/pom.xml delete mode 100644 jpa-criteria/jpa-2-compatibility/src/main/java/javax/persistence/AttributeConverter.java delete mode 100644 jpa-criteria/jpa-2-compatibility/src/main/java/javax/persistence/Convert.java delete mode 100644 jpa-criteria/jpa-2-compatibility/src/main/java/javax/persistence/Converter.java delete mode 100644 jpa-criteria/jpa-2-compatibility/src/main/java/javax/persistence/criteria/CommonAbstractCriteria.java delete mode 100644 jpa-criteria/jpa-2-compatibility/src/main/java/javax/persistence/criteria/CriteriaDelete.java delete mode 100644 jpa-criteria/jpa-2-compatibility/src/main/java/javax/persistence/criteria/CriteriaUpdate.java delete mode 100644 jpa-criteria/testsuite-jakarta-runner/pom.xml delete mode 100644 jpa-criteria/testsuite-jakarta/pom.xml create mode 100644 testsuite-base/assertion/src/main/java/module-info.java delete mode 100644 testsuite-base/datanucleus/pom.xml delete mode 100644 testsuite-base/datanucleus/src/main/java/com/blazebit/persistence/testsuite/base/AbstractPersistenceTest.java delete mode 100644 testsuite-base/datanucleus/src/main/java/com/blazebit/persistence/testsuite/base/SaneMySQLAdapter.java delete mode 100644 testsuite-base/datanucleus/src/main/java/com/blazebit/persistence/testsuite/base/SanePostgreSQLAdapter.java delete mode 100644 testsuite-base/datanucleus/src/main/resources/META-INF/MANIFEST.MF delete mode 100644 testsuite-base/datanucleus/src/main/resources/plugin.xml delete mode 100644 testsuite-base/hibernate-jakarta/pom.xml delete mode 100644 testsuite-base/hibernate/pom.xml delete mode 100644 testsuite-base/hibernate/src/main/java/com/blazebit/persistence/testsuite/base/AbstractPersistenceTest.java delete mode 100644 testsuite-base/hibernate/src/main/java/com/blazebit/persistence/testsuite/base/SaneDB2Dialect.java delete mode 100644 testsuite-base/hibernate/src/main/java/com/blazebit/persistence/testsuite/base/SaneMySQLDialect.java delete mode 100644 testsuite-base/hibernate/src/main/java/com/blazebit/persistence/testsuite/base/SaneOracleDialect.java create mode 100644 testsuite-base/hibernate6/src/main/java/module-info.java delete mode 100644 testsuite-base/jpa-jakarta/pom.xml create mode 100644 testsuite-base/jpa/src/main/java/module-info.java delete mode 100644 testsuite-base/openjpa/pom.xml delete mode 100644 testsuite-base/openjpa/src/main/java/com/blazebit/persistence/testsuite/base/AbstractPersistenceTest.java diff --git a/.github/quarkus-ecosystem-test b/.github/quarkus-ecosystem-test index d5286ab9f8..877973c04d 100755 --- a/.github/quarkus-ecosystem-test +++ b/.github/quarkus-ecosystem-test @@ -3,7 +3,7 @@ set -e # For annotation processors, the managed dependency version doesn't work, so by default, we use 6.2.13.Final # Override this for snapshot builds and use the latest version instead -HIBERNATE_VERSION=6.4.0.Final +HIBERNATE_VERSION=6.6.1.Final # Since the compile output is used rather than the shaded JAR when running a Quarkus test, we must first install the parser to the local maven repo mvn --settings .github/quarkus-ecosystem-maven-settings.xml clean install -pl core/parser -am -Dversion.quarkus-3=${QUARKUS_VERSION} -Dversion.hibernate-orm=${HIBERNATE_VERSION} -DskipTests @@ -11,4 +11,4 @@ mvn --settings .github/quarkus-ecosystem-maven-settings.xml clean install -pl co rm -Rf core/parser/target # In the second execution we exclude the parser from the project list so that it uses the previously installed one, which shades ANTLR PROJECT_LIST=integration/quarkus-3/deployment,examples/quarkus-3/testsuite/base,examples/quarkus-3/testsuite/native/h2,!core/parser -mvn --settings .github/quarkus-ecosystem-maven-settings.xml clean install -Dversion.quarkus-3=${QUARKUS_VERSION} -Dversion.hibernate-orm=${HIBERNATE_VERSION} -Dquarkus.native.container-build=true -Pnative -Ph2 -P"spring-data-2.7.x" -P"deltaspike-1.9" --projects $PROJECT_LIST -am \ No newline at end of file +mvn --settings .github/quarkus-ecosystem-maven-settings.xml clean install -Dversion.quarkus-3=${QUARKUS_VERSION} -Dversion.hibernate-orm=${HIBERNATE_VERSION} -Dquarkus.native.container-build=true -Pnative -Ph2 -P"spring-data-3.3.x" -P"deltaspike-2.0" --projects $PROJECT_LIST -am \ No newline at end of file diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index fed321712f..ba6752623c 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -21,553 +21,59 @@ jobs: matrix: include: ################################################ -# hibernate-5.6 +# hibernate-6.6 ################################################ - rdbms: h2 - provider: hibernate-5.6 - jdk: 8 + provider: hibernate-6.6 + jdk: 17 native: true - rdbms: mysql - provider: hibernate-5.6 - jdk: 8 - native: true - - rdbms: mysql8 - provider: hibernate-5.6 - jdk: 8 + provider: hibernate-6.6 + jdk: 17 native: true - rdbms: postgresql - provider: hibernate-5.6 - jdk: 8 + provider: hibernate-6.6 + jdk: 17 native: true - rdbms: oracle - provider: hibernate-5.6 - jdk: 8 + provider: hibernate-6.6 + jdk: 17 # native: true - rdbms: db2 - provider: hibernate-5.6 - jdk: 8 + provider: hibernate-6.6 + jdk: 17 # native: true - rdbms: mssql - provider: hibernate-5.6 - jdk: 8 + provider: hibernate-6.6 + jdk: 17 native: true ################################################ # Test different spring-data and deltaspike versions ################################################ - rdbms: h2 - provider: hibernate-5.6 - jdk: 8 - spring-data: spring-data-1.11.x - deltaspike: deltaspike-1.7 - - rdbms: h2 - provider: hibernate-5.6 - jdk: 8 - spring-data: spring-data-2.0.x - deltaspike: deltaspike-1.8 - - rdbms: h2 - provider: hibernate-5.6 - jdk: 8 - spring-data: spring-data-2.1.x - - rdbms: h2 - provider: hibernate-5.6 - jdk: 8 - spring-data: spring-data-2.2.x - - rdbms: h2 - provider: hibernate-5.6 - jdk: 8 - spring-data: spring-data-2.3.x - - rdbms: h2 - provider: hibernate-5.6 - jdk: 8 - spring-data: spring-data-2.4.x - - rdbms: h2 - provider: hibernate-5.6 - jdk: 8 - spring-data: spring-data-2.5.x - - rdbms: h2 - provider: hibernate-5.6 - jdk: 8 - spring-data: spring-data-2.6.x + provider: hibernate-6.6 + jdk: 17 + spring-data: spring-data-3.3.x ################################################ -# A Hibernate 5.6 profile that also runs the entity-view-annotation-processor +# A Hibernate 6.6 profile that also runs the entity-view-annotation-processor ################################################ - rdbms: postgresql provider: hibernate-apt - jdk: 8 - -################################################ -# datanucleus-5 -################################################ - - rdbms: h2 - provider: datanucleus-5 - jdk: 8 - spring-data: spring-data-1.11.x - deltaspike: deltaspike-1.7 - - rdbms: mysql - provider: datanucleus-5 - jdk: 8 - spring-data: spring-data-1.11.x - deltaspike: deltaspike-1.7 - - rdbms: postgresql - provider: datanucleus-5 - jdk: 8 - spring-data: spring-data-1.11.x - deltaspike: deltaspike-1.7 -# - rdbms: mssql -# provider: datanucleus-5 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: db2 -# provider: datanucleus-5 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: oracle -# provider: datanucleus-5 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 + jdk: 17 ################################################ # eclipselink ################################################ - rdbms: h2 provider: eclipselink - jdk: 8 - spring-data: spring-data-1.11.x - deltaspike: deltaspike-1.7 -# - rdbms: mysql -# provider: eclipselink -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: postgresql -# provider: eclipselink -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: mssql -# provider: eclipselink -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: db2 -# provider: eclipselink -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: oracle -# provider: eclipselink -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 - -################################################ -# openjpa -################################################ -# - rdbms: h2 -# provider: openjpa -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: mysql -# provider: openjpa -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: postgresql -# provider: openjpa -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: mssql -# provider: openjpa -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: db2 -# provider: openjpa -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: oracle -# provider: openjpa -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 - -################################################ -# hibernate-5.3 -################################################ - - rdbms: h2 - provider: hibernate-5.3 - jdk: 8 - spring-data: spring-data-1.11.x - deltaspike: deltaspike-1.7 - - rdbms: mysql - provider: hibernate-5.3 - jdk: 8 - spring-data: spring-data-1.11.x - deltaspike: deltaspike-1.7 - - rdbms: postgresql - provider: hibernate-5.3 - jdk: 8 - spring-data: spring-data-1.11.x - deltaspike: deltaspike-1.7 - - rdbms: oracle - provider: hibernate-5.3 - jdk: 8 - spring-data: spring-data-1.11.x - deltaspike: deltaspike-1.7 - - rdbms: db2 - provider: hibernate-5.3 - jdk: 8 - spring-data: spring-data-1.11.x - deltaspike: deltaspike-1.7 - - rdbms: mssql - provider: hibernate-5.3 - jdk: 8 - spring-data: spring-data-1.11.x - deltaspike: deltaspike-1.7 - -################################################ -# datanucleus-5.1 -################################################ -# - rdbms: h2 -# provider: datanucleus-5.1 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: mysql -# provider: datanucleus-5.1 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: postgresql -# provider: datanucleus-5.1 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: mssql -# provider: datanucleus-5.1 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: db2 -# provider: datanucleus-5.1 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: oracle -# provider: datanucleus-5.1 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 - -################################################ -# hibernate-5.5 -################################################ - - rdbms: h2 - provider: hibernate-5.5 - jdk: 8 - spring-data: spring-data-1.11.x - deltaspike: deltaspike-1.7 -# - rdbms: mysql8 -# provider: hibernate-5.5 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: postgresql -# provider: hibernate-5.5 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: oracle -# provider: hibernate-5.5 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: db2 -# provider: hibernate-5.5 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: mssql -# provider: hibernate-5.5 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 - -################################################ -# hibernate-5.4 -################################################ - - rdbms: h2 - provider: hibernate-5.4 - jdk: 8 - spring-data: spring-data-1.11.x - deltaspike: deltaspike-1.7 -# - rdbms: mysql8 -# provider: hibernate-5.4 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: postgresql -# provider: hibernate-5.4 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: oracle -# provider: hibernate-5.4 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: db2 -# provider: hibernate-5.4 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: mssql -# provider: hibernate-5.4 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 - -################################################ -# hibernate-5.2 -################################################ - - rdbms: h2 - provider: hibernate-5.2 - jdk: 8 - spring-data: spring-data-1.11.x - deltaspike: deltaspike-1.7 -# - rdbms: mysql -# provider: hibernate-5.2 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: postgresql -# provider: hibernate-5.2 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: mysql8 -# provider: hibernate-5.2 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: oracle -# provider: hibernate-5.2 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: db2 -# provider: hibernate-5.2 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: mssql -# provider: hibernate-5.2 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 - -################################################ -# hibernate-5.1 -################################################ - - rdbms: h2 - provider: hibernate-5.1 - jdk: 8 - spring-data: spring-data-1.11.x - deltaspike: deltaspike-1.7 -# - rdbms: mysql -# provider: hibernate-5.1 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: postgresql -# provider: hibernate-5.1 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: mysql8 -# provider: hibernate-5.1 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: oracle -# provider: hibernate-5.1 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: db2 -# provider: hibernate-5.1 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: mssql -# provider: hibernate-5.1 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 - -################################################ -# hibernate-5.0 -################################################ - - rdbms: h2 - provider: hibernate-5.0 - jdk: 8 - spring-data: spring-data-1.11.x - deltaspike: deltaspike-1.7 -# - rdbms: mysql -# provider: hibernate-5.0 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: postgresql -# provider: hibernate-5.0 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: mysql8 -# provider: hibernate-5.0 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: oracle -# provider: hibernate-5.0 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: db2 -# provider: hibernate-5.0 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: mssql -# provider: hibernate-5.0 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 - -################################################ -# hibernate-4.3 -################################################ - - rdbms: h2 - provider: hibernate-4.3 - jdk: 8 - spring-data: spring-data-1.11.x - deltaspike: deltaspike-1.7 -# - rdbms: mysql -# provider: hibernate-4.3 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: postgresql -# provider: hibernate-4.3 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: mysql8 -# provider: hibernate-4.3 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: oracle -# provider: hibernate-4.3 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: db2 -# provider: hibernate-4.3 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: mssql -# provider: hibernate-4.3 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 - -################################################ -# hibernate-4.2 -################################################ - - rdbms: h2 - provider: hibernate - jdk: 8 - spring-data: spring-data-1.11.x - deltaspike: deltaspike-1.7 -# - rdbms: mysql -# provider: hibernate -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: postgresql -# provider: hibernate -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: mysql8 -# provider: hibernate -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: oracle -# provider: hibernate -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: db2 -# provider: hibernate -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: mssql -# provider: hibernate -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 - -################################################ -# datanucleus-4 -################################################ - - rdbms: h2 - provider: datanucleus-4 - jdk: 8 - spring-data: spring-data-1.11.x - deltaspike: deltaspike-1.7 -# - rdbms: mysql -# provider: datanucleus-4 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: postgresql -# provider: datanucleus-4 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: mssql -# provider: datanucleus-4 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: db2 -# provider: datanucleus-4 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 -# - rdbms: oracle -# provider: datanucleus-4 -# jdk: 8 -# spring-data: spring-data-1.11.x -# deltaspike: deltaspike-1.7 + jdk: 17 ################################################ # hibernate-6.2 ################################################ - rdbms: h2 provider: hibernate-6.2 - jdk: 11 + jdk: 17 spring-data: spring-data-3.1.x ################################################ @@ -578,54 +84,30 @@ jobs: jdk: 17 spring-data: spring-data-3.2.x ################################################ -# hibernate-6.5 -################################################ - - rdbms: h2 - provider: hibernate-6.5 - jdk: 17 - spring-data: spring-data-3.3.x -################################################ -# hibernate-6.6 -################################################ - - rdbms: h2 - provider: hibernate-6.6 - jdk: 17 - spring-data: spring-data-3.3.x -################################################ # LTS JDKs ################################################ - rdbms: h2 - provider: hibernate-5.6 - jdk: 11 - - rdbms: h2 - provider: hibernate-5.6 - jdk: 11 - build-jdk: 11 - - rdbms: h2 - provider: hibernate-5.6 - jdk: 17 - - rdbms: h2 - provider: hibernate-5.6 + provider: hibernate-6.6 jdk: 17 build-jdk: 17 ################################################ # Latest GA JDK ################################################ - rdbms: h2 - provider: hibernate-5.6 + provider: hibernate-6.6 jdk: 21 - rdbms: h2 - provider: hibernate-5.6 + provider: hibernate-6.6 jdk: 21 build-jdk: 21 ################################################ # Early access JDKs ################################################ # - rdbms: h2 -# provider: hibernate-5.6 +# provider: hibernate-6.6 # jdk: 22-ea # - rdbms: h2 -# provider: hibernate-5.6 +# provider: hibernate-6.6 # jdk: 22-ea # build-jdk: 22-ea steps: @@ -636,24 +118,20 @@ jobs: run: echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts - name: Reclaim Disk Space run: .github/ci-prerequisites.sh - - uses: DeLaGuardo/setup-graalvm@master + - uses: graalvm/setup-graalvm@v1 if: ${{ matrix.native }} with: - graalvm-version: '20.1.0.java11' - - name: Set up Java 8 - uses: AdoptOpenJDK/install-jdk@v1 - with: - version: 8 - targets: JDK8_HOME;JAVA_HOME + java-version: '17' + distribution: 'mandrel' - name: Set up Requested JDK uses: actions/setup-java@v3 - if: ${{ matrix.jdk != 8 && !endsWith(matrix.jdk, '-ea') && matrix.jdk != '21' }} + if: ${{ !endsWith(matrix.jdk, '-ea') && matrix.jdk != '21' }} with: java-version: ${{ matrix.jdk }} distribution: 'temurin' - name: Set up EA JDK uses: actions/setup-java@v3 - if: ${{ matrix.jdk != 8 && (endsWith(matrix.jdk, '-ea') || matrix.jdk == '21') }} + if: ${{ endsWith(matrix.jdk, '-ea') || matrix.jdk == '21' }} with: java-version: ${{ matrix.jdk }} distribution: 'zulu' @@ -676,7 +154,6 @@ jobs: - name: Run build script env: - JDK8_HOME: ${{ env.JDK8_HOME }} RDBMS: ${{ matrix.rdbms }} JPAPROVIDER: ${{ matrix.provider }} JDK: ${{ matrix.jdk }} @@ -691,7 +168,7 @@ jobs: uses: actions/upload-artifact@v4 if: failure() with: - name: test-reports-${{ matrix.provider }}-${{ matrix.rdbms }}-jdk${{ matrix.jdk }}-build-jdk${{ matrix.build-jdk }}-${{ matrix.deltaspike }}-${{ matrix.spring-data }} + name: test-reports-${{ matrix.provider }}-${{ matrix.rdbms }}-jdk${{ matrix.jdk }}-build-jdk${{ matrix.build-jdk }}-${{ matrix.spring-data }} path: './**/*-reports/' - name: Omit produced artifacts from build cache diff --git a/.github/workflows/latest.yaml b/.github/workflows/latest.yaml index 87c5594048..b38cd04df8 100644 --- a/.github/workflows/latest.yaml +++ b/.github/workflows/latest.yaml @@ -34,13 +34,6 @@ jobs: component: hibernate-6.4 jdk: 17 -################################################ -# hibernate-6.5 -################################################ - - rdbms: h2 - component: hibernate-6.5 - jdk: 17 - ################################################ # hibernate-6.6 ################################################ @@ -55,20 +48,15 @@ jobs: run: echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts - name: Reclaim Disk Space run: .github/ci-prerequisites.sh - - name: Set up Java 8 - uses: AdoptOpenJDK/install-jdk@v1 - with: - version: 8 - targets: JDK8_HOME;JAVA_HOME - name: Set up Requested JDK uses: actions/setup-java@v3 - if: ${{ matrix.jdk != 8 && !endsWith(matrix.jdk, '-ea') }} + if: ${{ !endsWith(matrix.jdk, '-ea') }} with: java-version: ${{ matrix.jdk }} distribution: 'temurin' - name: Set up EA JDK uses: actions/setup-java@v3 - if: ${{ matrix.jdk != 8 && endsWith(matrix.jdk, '-ea') }} + if: ${{ endsWith(matrix.jdk, '-ea') }} with: java-version: ${{ matrix.jdk }} distribution: 'zulu' @@ -91,7 +79,6 @@ jobs: - name: Run build script env: - JDK8_HOME: ${{ env.JDK8_HOME }} RDBMS: ${{ matrix.rdbms }} COMPONENT: ${{ matrix.component }} JDK: ${{ matrix.jdk }} diff --git a/.github/workflows/publish-snapshot.yaml b/.github/workflows/publish-snapshot.yaml index 5281cd8741..8cdf594823 100644 --- a/.github/workflows/publish-snapshot.yaml +++ b/.github/workflows/publish-snapshot.yaml @@ -15,11 +15,6 @@ jobs: # /etc/hosts file needs to be updated as a workaround for # https://github.com/actions/virtual-environments/issues/3185 run: echo -e "$(ip addr show eth0 | grep "inet\b" | awk '{print $2}' | cut -d/ -f1)\t$(hostname -f) $(hostname -s)" | sudo tee -a /etc/hosts - - name: Set up Java 8 - uses: AdoptOpenJDK/install-jdk@v1 - with: - version: 8 - targets: JDK8_HOME;JAVA_HOME - name: Set up JDK 17 uses: actions/setup-java@v3 with: diff --git a/.github/workflows/quarkus-snapshot.yaml b/.github/workflows/quarkus-snapshot.yaml index 8ae2608654..7defe1517b 100644 --- a/.github/workflows/quarkus-snapshot.yaml +++ b/.github/workflows/quarkus-snapshot.yaml @@ -32,9 +32,10 @@ jobs: run: sudo add-apt-repository ppa:rmescandon/yq && sudo apt update && sudo apt install yq -y - name: Set up Java - uses: actions/setup-java@v1 + uses: actions/setup-java@v3 with: java-version: ${{ env.JAVA_VERSION }} + distribution: 'temurin' - name: Checkout repo uses: actions/checkout@v2 diff --git a/README.md b/README.md index 9fdd1c55dd..2d97f118d6 100644 --- a/README.md +++ b/README.md @@ -40,12 +40,12 @@ Here is a rough overview of new features that are introduced by Blaze-Persistenc * Use CTEs and recursive CTEs * Use modification CTEs aka DML in CTEs -* Make use of the RETURNING clause from DML statements -* Use the VALUES clause for reporting queries and soon make use of table generating functions -* Create queries that use SET operations like UNION, EXCEPT and INTERSECT +* Make use of the `RETURNING` clause from DML statements +* Use the `VALUES` clause for reporting queries and soon make use of table generating functions +* Create queries that use SET operations like `UNION`, `EXCEPT` and `INTERSECT` * Manage entity collections via DML statements to avoid reading them in memory -* Define functions similar to Hibernates SQLFunction in a JPA provider agnostic way -* Use many built-in functions like GROUP_CONCAT, date extraction, date arithmetic and many more +* Define functions similar to Hibernates `SQLFunction` in a JPA provider agnostic way +* Use many built-in functions like `GROUP_CONCAT`, date extraction, date arithmetic and many more * Easy pagination and simple API to make use of keyset pagination In addition to that, Blaze-Persistence also works around some JPA provider issues in a transparent way. @@ -114,71 +114,47 @@ mvn archetype:generate "-DarchetypeGroupId=com.blazebit" "-DarchetypeArtifactId= Java EE archetype: ```bash -mvn archetype:generate "-DarchetypeGroupId=com.blazebit" "-DarchetypeArtifactId=blaze-persistence-archetype-java-ee-sample" "-DarchetypeVersion=1.6.14" -``` - -Core-only Jakarta archetype: - -```bash -mvn archetype:generate "-DarchetypeGroupId=com.blazebit" "-DarchetypeArtifactId=blaze-persistence-archetype-core-sample-jakarta" "-DarchetypeVersion=1.6.14" -``` - -Entity view Jakarta archetype: - -```bash -mvn archetype:generate "-DarchetypeGroupId=com.blazebit" "-DarchetypeArtifactId=blaze-persistence-archetype-entity-view-sample-jakarta" "-DarchetypeVersion=1.6.14" +mvn archetype:generate "-DarchetypeGroupId=com.blazebit" "-DarchetypeArtifactId=blaze-persistence-archetype-jakarta-ee-sample" "-DarchetypeVersion=1.6.14" ``` ## Supported Java runtimes -All projects are built for Java 7 except for the ones where dependencies already use Java 8 like e.g. Hibernate 5.2, Spring Data 2.0 etc. -So you are going to need a JDK 8 for building the project. The latest Java version we test and support is Java 21. - -We also support building the project with JDK 9 and try to keep up with newer versions. -If you want to run your application on a Java 9 JVM you need to handle the fact that JDK 9+ doesn't export the JAXB and JTA APIs anymore. -In fact, JDK 11 removed the modules, so the command line flags to add modules to the classpath won't work. - -Since libraries like Hibernate and others require these APIs you need to make them available. The easiest way to get these APIs back on the classpath is to package them along with your application. -This will also work when running on Java 8. We suggest you add the following dependencies. +All projects are built for Java 11 except for the ones where dependencies already use Java 17 like e.g. Spring Data integration etc. +So you are going to need a JDK 17 for building the project. The latest Java version we test and support is Java 21. ```xml jakarta.xml.bind jakarta.xml.bind-api - - 2.3.3 + 3.0.1 provided com.sun.xml.bind jaxb-impl - - 2.3.3 + 3.0.2 provided jakarta.transaction jakarta.transaction-api - - 1.3.3 + 2.0.1 provided jakarta.activation jakarta.activation-api - - 1.2.2 + 2.0.1 provided jakarta.annotation jakarta.annotation-api - - 1.3.5 + 2.1.1 provided @@ -188,28 +164,25 @@ The `jakarta.transaction` and `jakarta.activation` dependencies are especially r ## Supported environments/libraries -The bare minimum is JPA 2.0. If you want to use the JPA Criteria API module, you will also have to add the JPA 2 compatibility module. -Generally, we support the usage in Java EE 6+ or Spring 4+ applications. +The bare minimum is JPA 3.1. Generally, we support the usage in Java EE 10+, Quarkus 3+ or Spring 6+ applications. See the following table for an overview of supported versions. -Module | Minimum version | Supported versions ----------------------------------|-------------------------------------|-------------------- -Hibernate integration | Hibernate 4.2 | 4.2, 4.3, 5.0+, 6.2+ (not all features are available in older versions) -EclipseLink integration | EclipseLink 2.6 | 2.6 (Probably 2.4 and 2.5 work as well, but only tested against 2.6) -DataNucleus integration | DataNucleus 4.1 | 4.1, 5.0 -OpenJPA integration | N/A | (Currently not usable. OpenJPA doesn't seem to be actively developed anymore and no users asked for support yet) -Entity View CDI integration | CDI 1.0 | 1.0, 1.1, 1.2, 2.0, 3.0 -Entity View Spring integration | Spring 4.3 | 4.3, 5.0, 5.1, 5.2, 5.3, 6.0 -DeltaSpike Data integration | DeltaSpike 1.7 | 1.7, 1.8, 1.9 -Spring Data integration | Spring Data 1.11 | 1.11 - 2.7, 3.1 - 3.3 -Spring Data WebMvc integration | Spring Data 1.11, Spring WebMvc 4.3 | Spring Data 1.11 - 2.7, Spring WebMvc 4.3 - 5.3 -Spring Data WebFlux integration | Spring Data 2.0, Spring WebFlux 5.0 | Spring Data 2.0 - 2.7, Spring WebFlux 5.0 - 5.3 -Spring HATEOAS WebMvc integration| Spring Data 2.2, Spring WebMvc 5.2 | Spring Data 2.3+, Spring WebMvc 5.2+, Spring HATEOAS 1.0+ -Jackson integration | 2.8.11 | 2.8.11+ -GraphQL integration | 17.3 | 17.3+ -JAX-RS integration | Any JAX-RS version | Any JAX-RS version -Quarkus integration | 1.4.2 | 1.4+, 2.0+, 3.1+ +Module | Minimum version | Supported versions +---------------------------------|--------------------|-------------------- +Hibernate integration | Hibernate 6.2 | 6.2, 6.4, 6.6 +EclipseLink integration | EclipseLink 4.0 | 4.0 +Entity View CDI integration | CDI 4.0 | 4.0+ +Entity View Spring integration | Spring 6.0 | 6.0, 6.1 +DeltaSpike Data integration | DeltaSpike 2.0 | 2.0 +Spring Data integration | Spring Data 3.1 | 3.1, 3.2, 3.3 +Spring Data WebMvc integration | Spring WebMvc 6.0 | 6.0, 6.1 +Spring Data WebFlux integration | Spring WebFlux 6.0 | 6.0, 6.1 +Spring HATEOAS WebMvc integration| Spring HATEOAS 2.1 | Spring WebMvc 6.0+, Spring HATEOAS 2.1+ +Jackson integration | 2.8.11 | 2.8.11+ +GraphQL integration | 17.3 | 17.3+ +JAX-RS integration | JAX-RS 3.1 | 3.1+ +Quarkus integration | 3.2 | 3.2, 3.8, 3.15+ ## Manual setup @@ -438,12 +411,7 @@ Here some notes about setting up a local environment for testing. ## Setup general build environment -Although Blaze-Persistence still supports running on Java 7, the build must be run with at least JDK 8. -When doing a release at least a JDK 9 is required as we need to build some Multi-Release or MR JARs. -Since we try to support the latest JDK versions as well, we require developers that want to build the project with JDK 11+ to define a system property for a release build. - -The system property `jdk8.home` should be set to the path to a Java 7 or 8 installation that contains either `jre/lib/rt.jar` or `jre/lib/classes.jar`. -This property is necessary when using JDK 11+ because `sun.misc.Unsafe.defineClass` was removed. +Although Blaze-Persistence still supports running on Java 11, the build must be run with at least JDK 17. ## Building the website and documentation @@ -464,53 +432,27 @@ Click on *Check project* and checkstyle will run once for the whole project, the ## Testing a JPA provider and DBMS combination -By default, a Maven build `mvn clean install` will test against H2 and Hibernate 5.2 but you can activate different profiles to test other combinations. +By default, a Maven build `mvn clean install` will test against H2, Hibernate 6.6 and Spring Boot/Data 3.3, but you can activate different profiles to test other combinations. To test a specific combination, you need to activate at least 4 profiles * One of the JPA provider profiles - * `hibernate-6.6` + the `jakarta` profile - * `hibernate-6.5` + the `jakarta` profile - * `hibernate-6.4` + the `jakarta` profile - * `hibernate-6.3` + the `jakarta` profile - * `hibernate-6.2` + the `jakarta` profile - * `hibernate-5.6` - * `hibernate-5.5` - * `hibernate-5.4` - * `hibernate-5.3` - * `hibernate-5.2` - * `hibernate-5.1` - * `hibernate-5.0` - * `hibernate-4.3` - * `hibernate` + * `hibernate-6.6` + * `hibernate-6.4` + * `hibernate-6.2` * `eclipselink` - * `datanucleus-5.1` - * `datanucleus-5` - * `datanucleus-4` - * `openjpa` * A DBMS profile * `h2` * `postgresql` * `mysql` - * `mysql8` * `oracle` * `db2` * `mssql` - * `firebird` - * `sqllite` * A Spring data profile - * `spring-data-2.7.x` - * `spring-data-2.6.x` - * `spring-data-2.5.x` - * `spring-data-2.4.x` - * `spring-data-2.3.x` - * `spring-data-2.2.x` - * `spring-data-2.1.x` - * `spring-data-2.0.x` - * `spring-data-1.11.x` + * `spring-data-3.3.x` + * `spring-data-3.2.x` + * `spring-data-3.1.x` * A DeltaSpike profile - * `deltaspike-1.9` - * `deltaspike-1.8` - * `deltaspike-1.7` + * `deltaspike-2.0` The default DBMS connection infos are defined via Maven properties, so you can override them in a build by passing the properties as system properties. @@ -523,11 +465,6 @@ The values are defined in e.g. `core/testsuite/pom.xml` in the respective DBMS p For executing tests against a database on a dedicated host you might want to specify the following system property `-DdbHost=192.168.99.100`. -## Testing with Jakarta Persistence provider - -To build everything use `mvn -pl core/testsuite-jakarta-runner clean install -am -P "hibernate-6.2,jakarta,h2,spring-data-2.6.x,deltaspike-1.9" -DskipTests` -and to run tests use ` mvn -pl core/testsuite-jakarta-runner clean install -P "hibernate-6.2,jakarta,h2,spring-data-2.6.x,deltaspike-1.9" "-Dtest=com.blazebit.persistence.testsuite.SetOperationTest#testUnionAllOrderBySubqueryLimit"`. - ## Switching JPA provider profiles in IntelliJ When switching between Hibernate and other JPA provider profiles, IntelliJ does not unmark the `basic` or `hibernate` source directories in *core/testsuite*. @@ -538,31 +475,6 @@ If you encounter errors like _duplicate class file found_ or something alike, ma Unmarking as source root can be done by right clicking on the source directory, going to the submenu _Mark directory as_ and finally clicking _Unmark as Sources Root_. -## Using DataNucleus profiles in IntelliJ - -DataNucleus requires bytecode enhancement to work properly which requires an extra step to be able to do testing within IntelliJ. -Usually when switching the JPA provider profile, it is recommended to trigger a _Rebuild Project_ action in IntelliJ to avoid strange errors causes by previous bytecode enhancement runs. -After that, the entities in the project *core/testsuite* have to be enhanced. This is done through a Maven command. - -* DataNucleus 4: `mvn -P "datanucleus-4,h2,deltaspike-1.8,spring-data-2.0.x" -pl core/testsuite,entity-view/testsuite,integration/spring-data/testsuite/webmvc,integration/spring-data/testsuite/webflux datanucleus:enhance` -* DataNucleus 5: `mvn -P "datanucleus-5,h2,deltaspike-1.8,spring-data-2.0.x" -pl core/testsuite,entity-view/testsuite,integration/spring-data/testsuite/webmvc,integration/spring-data/testsuite/webflux datanucleus:enhance` -* DataNucleus 5.1: `mvn -P "datanucleus-5.1,h2,deltaspike-1.8,spring-data-2.0.x" -pl core/testsuite,entity-view/testsuite,integration/spring-data/testsuite/webmvc,integration/spring-data/testsuite/webflux datanucleus:enhance` - -After doing that, you should be able to execute any test in IntelliJ. - -Note that if you make changes to an entity class or add a new entity class you might need to redo the rebuild and enhancement. - -## Firebird - -When installing the 3.x version, you also need a 3.x JDBC driver. -Additionally you should add the following to the firebird.conf - -``` -WireCrypt = Enabled -``` - -After creating the DB with `create database 'localhost:test' user 'sysdba' password 'sysdba';`, you can connect with JDBC with `jdbc:firebirdsql:localhost:test?charSet=utf-8` - ## Oracle When setting up Oracle locally, keep in mind that when you connect to it, you have to set the NLS_SORT to BINARY. @@ -573,14 +485,14 @@ In IntelliJ when defining the Oracle database, go to the Advanced tab an specify The general setup required for building native images with GraalVM is described in https://quarkus.io/guides/building-native-image. -* Install GraalVM 20.2.0 (Java 11) and make sure you install the native-image tool and set `GRAALVM_HOME` environment variable +* Install GraalVM 22.3.0 (Java 17) and make sure you install the native-image tool and set `GRAALVM_HOME` environment variable * Install required packages for a C development environment * Under Windows, install [Visual Studio 2017 Visual C++ Build Tools](https://aka.ms/vs/15/release/vs_buildtools.exe) For example, run the following maven build to execute native image tests for H2: ``` -mvn -pl examples/quarkus/testsuite/native/h2 -am integration-test -Pnative,h2,spring-data-2.7.x,deltaspike-1.9 +mvn -pl examples/quarkus/testsuite/native/h2 -am integration-test -Pnative,h2,spring-data-3.3.x,deltaspike-2.0 ``` Under Windows, make sure you run maven builds that use native image from the VS2017 native tools command line. diff --git a/archetype/core-sample-jakarta/pom.xml b/archetype/core-sample-jakarta/pom.xml deleted file mode 100644 index cfce385d05..0000000000 --- a/archetype/core-sample-jakarta/pom.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - 4.0.0 - - - com.blazebit - blaze-persistence-archetype - 1.6.15-SNAPSHOT - ../pom.xml - - - blaze-persistence-archetype-core-sample-jakarta - jar - - Blazebit Persistence Archetype Core Sample Jakarta - - - com.blazebit.persistence.archetype.core.sample - - - - - - - org.apache.maven.plugins - maven-resources-plugin - - \ - - - - - - - - src/main/resources - true - - archetype-resources/pom.xml - - - - src/main/resources - false - - archetype-resources/pom.xml - - - - - diff --git a/archetype/core-sample-jakarta/src/main/resources/META-INF/maven/archetype.xml b/archetype/core-sample-jakarta/src/main/resources/META-INF/maven/archetype.xml deleted file mode 100644 index 91cfe17f0c..0000000000 --- a/archetype/core-sample-jakarta/src/main/resources/META-INF/maven/archetype.xml +++ /dev/null @@ -1,21 +0,0 @@ - - - - - blaze-persistence-core-sample - - src/main/java/model/Cat.java - src/main/java/model/Person.java - - - src/main/resources/META-INF/persistence.xml - - - src/test/java/sample/AbstractSampleTest.java - src/test/java/sample/SampleTest.java - - \ No newline at end of file diff --git a/archetype/core-sample-jakarta/src/main/resources/archetype-resources/pom.xml b/archetype/core-sample-jakarta/src/main/resources/archetype-resources/pom.xml deleted file mode 100644 index 988e815f31..0000000000 --- a/archetype/core-sample-jakarta/src/main/resources/archetype-resources/pom.xml +++ /dev/null @@ -1,127 +0,0 @@ - - - - - 4.0.0 - - \${groupId} - \${artifactId} - \${version} - jar - - Blazebit Persistence Core Sample - - - UTF-8 - 11 - 11 - - ${project.version} - - - - - - com.blazebit - blaze-persistence-bom - \${version.blaze-persistence} - pom - import - - - - - - - org.hibernate - hibernate-core - 6.2.0.CR4 - - - - - com.blazebit - blaze-persistence-core-api-jakarta - - - com.blazebit - blaze-persistence-core-impl-jakarta - - - com.blazebit - blaze-persistence-integration-hibernate-6.2 - - - - jakarta.xml.bind - jakarta.xml.bind-api - 3.0.1 - provided - - - com.sun.xml.bind - jaxb-impl - 3.0.2 - provided - - - jakarta.transaction - jakarta.transaction-api - 2.0.0 - provided - - - jakarta.activation - jakarta.activation-api - 2.0.1 - provided - - - - - junit - junit - 4.11 - test - - - com.h2database - h2 - 1.4.200 - test - - - - - jdk11+ - - [11,) - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.0 - - --enable-preview - - - - org.apache.maven.plugins - maven-surefire-plugin - 3.0.0-M3 - - false - --enable-preview - - - - - - - - diff --git a/archetype/core-sample-jakarta/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml b/archetype/core-sample-jakarta/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml deleted file mode 100644 index 687a9b9fb0..0000000000 --- a/archetype/core-sample-jakarta/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - false - - - - - - - - - - diff --git a/archetype/core-sample-jakarta/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java b/archetype/core-sample-jakarta/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java deleted file mode 100644 index 3be4a9cb15..0000000000 --- a/archetype/core-sample-jakarta/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java +++ /dev/null @@ -1,99 +0,0 @@ -/* - * SPDX-License-Identifier: Apache-2.0 - * Copyright Blazebit - */ - -package ${package}.sample; - -import com.blazebit.persistence.Criteria; -import com.blazebit.persistence.CriteriaBuilderFactory; -import com.blazebit.persistence.spi.CriteriaBuilderConfiguration; -import java.util.function.Consumer; -import jakarta.persistence.EntityManager; -import jakarta.persistence.EntityManagerFactory; -import jakarta.persistence.EntityTransaction; -import jakarta.persistence.Persistence; -import ${package}.model.Cat; -import ${package}.model.Person; -import org.junit.After; -import org.junit.Before; - -public abstract class AbstractSampleTest { - - protected EntityManagerFactory emf; - protected CriteriaBuilderFactory cbf; - - @Before - public void init() { - emf = Persistence.createEntityManagerFactory("default"); - CriteriaBuilderConfiguration config = Criteria.getDefault(); - cbf = config.createCriteriaBuilderFactory(emf); - - transactional(em -> { - Person p1 = new Person("P1"); - Person p2 = new Person("P2"); - Person p3 = new Person("P3"); - em.persist(p1); - em.persist(p2); - em.persist(p3); - - Cat c1 = new Cat("C1", 1, p2); - Cat c2 = new Cat("C2", 2, p2); - Cat c3 = new Cat("C3", 4, p2); - - Cat c4 = new Cat("C4", 6, p3); - - Cat c5 = new Cat("C5", 8, null); - Cat c6 = new Cat("C6", 7, null); - - em.persist(c1); - em.persist(c2); - em.persist(c3); - em.persist(c4); - em.persist(c5); - em.persist(c6); - - c1.setMother(c3); - c3.getKittens().add(c1); - - c1.setFather(c5); - c5.getKittens().add(c1); - - c2.setMother(c3); - c3.getKittens().add(c2); - - c2.setFather(c6); - c6.getKittens().add(c2); - - c4.setFather(c6); - c6.getKittens().add(c4); - }); - } - - protected void transactional(Consumer consumer) { - EntityManager em = emf.createEntityManager(); - EntityTransaction tx = em.getTransaction(); - boolean success = false; - - try { - tx.begin(); - consumer.accept(em); - success = true; - } finally { - try { - if (success) { - tx.commit(); - } else { - tx.rollback(); - } - } finally { - em.close(); - } - } - } - - @After - public void destruct() { - emf.close(); - } -} diff --git a/archetype/core-sample-jakarta/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java b/archetype/core-sample-jakarta/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java deleted file mode 100644 index 9c93fe9a90..0000000000 --- a/archetype/core-sample-jakarta/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java +++ /dev/null @@ -1,31 +0,0 @@ -/* - * SPDX-License-Identifier: Apache-2.0 - * Copyright Blazebit - */ - -package ${package}.sample; - -import com.blazebit.persistence.CriteriaBuilder; -import java.util.List; -import ${package}.model.Cat; -import ${package}.model.Person; -import org.junit.Assert; -import org.junit.Test; - -public class SampleTest extends AbstractSampleTest { - - @Test - public void sampleTest() { - transactional(em -> { - CriteriaBuilder cb = cbf.create(em, Person.class); - cb.from(Cat.class, "cat"); - cb.where("cat.owner").isNotNull(); - cb.select("cat.owner"); - cb.distinct(); - List list = cb.getResultList(); - - System.out.println(list); - Assert.assertEquals(2, list.size()); - }); - } -} diff --git a/archetype/core-sample/pom.xml b/archetype/core-sample/pom.xml index 294411f088..6bf2482f42 100644 --- a/archetype/core-sample/pom.xml +++ b/archetype/core-sample/pom.xml @@ -17,7 +17,7 @@ blaze-persistence-archetype-core-sample jar - Blazebit Persistence Archetype Core Sample + Blazebit Persistence Archetype Core Sample Jakarta com.blazebit.persistence.archetype.core.sample diff --git a/archetype/core-sample/src/main/resources/archetype-resources/pom.xml b/archetype/core-sample/src/main/resources/archetype-resources/pom.xml index 342cd0618c..5d572c7247 100644 --- a/archetype/core-sample/src/main/resources/archetype-resources/pom.xml +++ b/archetype/core-sample/src/main/resources/archetype-resources/pom.xml @@ -16,8 +16,8 @@ UTF-8 - 1.8 - 1.8 + 11 + 11 ${project.version} @@ -36,9 +36,9 @@ - org.hibernate - hibernate-entitymanager - 5.2.8.Final + org.hibernate.orm + hibernate-core + ${version.hibernate-6.6} @@ -52,83 +52,86 @@ com.blazebit - blaze-persistence-integration-hibernate-5.2 + blaze-persistence-integration-hibernate-6.2 - + + jakarta.persistence + jakarta.persistence-api + ${version.jpa-api} + provided + + + jakarta.transaction + jakarta.transaction-api + ${version.jta-api} + provided + + + jakarta.validation + jakarta.validation-api + ${version.validation-api} + provided + jakarta.xml.bind jakarta.xml.bind-api - 2.3.3 + ${version.jaxb-api} provided com.sun.xml.bind jaxb-impl - 2.3.3 + ${version.jaxb} provided - jakarta.transaction - jakarta.transaction-api - 1.3.3 + jakarta.annotation + jakarta.annotation-api + ${version.annotation-api} provided jakarta.activation jakarta.activation-api - 1.2.2 + ${version.activation-api} provided - - jakarta.annotation - jakarta.annotation-api - 1.3.5 - provided - - + - junit - junit - 4.11 + org.junit.jupiter + junit-jupiter + ${version.junit-jupiter} test com.h2database h2 - 1.4.200 + ${h2.version} test - - - jdk11+ - - [11,) - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.0 - - --enable-preview - - - - org.apache.maven.plugins - maven-surefire-plugin - 3.0.0-M3 - - false - --enable-preview - - - - - - + + + + org.apache.maven.plugins + maven-compiler-plugin + ${version.compiler.plugin} + + --enable-preview + + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + false + --enable-preview + + + + diff --git a/archetype/core-sample/src/main/resources/archetype-resources/src/main/java/model/Cat.java b/archetype/core-sample/src/main/resources/archetype-resources/src/main/java/model/Cat.java index abdb90ab73..427a8c3df9 100644 --- a/archetype/core-sample/src/main/resources/archetype-resources/src/main/java/model/Cat.java +++ b/archetype/core-sample/src/main/resources/archetype-resources/src/main/java/model/Cat.java @@ -7,12 +7,12 @@ import java.util.HashSet; import java.util.Set; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; @Entity public class Cat { diff --git a/archetype/core-sample/src/main/resources/archetype-resources/src/main/java/model/Person.java b/archetype/core-sample/src/main/resources/archetype-resources/src/main/java/model/Person.java index 6e55200ef6..add2b18d41 100644 --- a/archetype/core-sample/src/main/resources/archetype-resources/src/main/java/model/Person.java +++ b/archetype/core-sample/src/main/resources/archetype-resources/src/main/java/model/Person.java @@ -7,10 +7,10 @@ import java.util.HashSet; import java.util.Set; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.OneToMany; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; @Entity public class Person { diff --git a/archetype/core-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml b/archetype/core-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml index 3a07cacc0b..687a9b9fb0 100644 --- a/archetype/core-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml +++ b/archetype/core-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml @@ -3,17 +3,17 @@ SPDX-License-Identifier: Apache-2.0 Copyright Blazebit --> - + false - - - - - + + + + + diff --git a/archetype/core-sample/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java b/archetype/core-sample/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java index c0fb8bb244..269db4070e 100644 --- a/archetype/core-sample/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java +++ b/archetype/core-sample/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java @@ -9,21 +9,21 @@ import com.blazebit.persistence.CriteriaBuilderFactory; import com.blazebit.persistence.spi.CriteriaBuilderConfiguration; import java.util.function.Consumer; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.EntityTransaction; -import javax.persistence.Persistence; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.EntityTransaction; +import jakarta.persistence.Persistence; import ${package}.model.Cat; import ${package}.model.Person; -import org.junit.After; -import org.junit.Before; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; public abstract class AbstractSampleTest { protected EntityManagerFactory emf; protected CriteriaBuilderFactory cbf; - @Before + @BeforeEach public void init() { emf = Persistence.createEntityManagerFactory("default"); CriteriaBuilderConfiguration config = Criteria.getDefault(); @@ -92,7 +92,7 @@ protected void transactional(Consumer consumer) { } } - @After + @AfterEach public void destruct() { emf.close(); } diff --git a/archetype/core-sample/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java b/archetype/core-sample/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java index 9c93fe9a90..2b5d361530 100644 --- a/archetype/core-sample/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java +++ b/archetype/core-sample/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java @@ -9,8 +9,8 @@ import java.util.List; import ${package}.model.Cat; import ${package}.model.Person; -import org.junit.Assert; -import org.junit.Test; +import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.*; public class SampleTest extends AbstractSampleTest { @@ -25,7 +25,7 @@ public void sampleTest() { List list = cb.getResultList(); System.out.println(list); - Assert.assertEquals(2, list.size()); + assertEquals(2, list.size()); }); } } diff --git a/archetype/deltaspike-data-sample/src/main/resources/META-INF/maven/archetype.xml b/archetype/deltaspike-data-sample/src/main/resources/META-INF/maven/archetype.xml index 1585c4b5f4..41b1ac3afa 100644 --- a/archetype/deltaspike-data-sample/src/main/resources/META-INF/maven/archetype.xml +++ b/archetype/deltaspike-data-sample/src/main/resources/META-INF/maven/archetype.xml @@ -24,7 +24,7 @@ src/main/resources/META-INF/persistence.xml src/main/resources/META-INF/beans.xml src/test/resources/META-INF/beans.xml - src/test/resources/META-INF/services/javax.enterprise.inject.spi.Extension + src/test/resources/META-INF/services/jakarta.enterprise.inject.spi.Extension src/test/java/sample/AbstractSampleTest.java diff --git a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/pom.xml b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/pom.xml index b0f38babec..d1da194d13 100644 --- a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/pom.xml +++ b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/pom.xml @@ -15,16 +15,14 @@ UTF-8 - 1.8 - 1.8 + 11 + 11 ${project.version} - 1.9.3 - 2.4.5.Final - 5.0.12.Final - - 5 - 2.6.4 + ${version.deltaspike-2.0} + ${version.weld} + ${version.hibernate-6.6} + ${version.eclipselink} @@ -55,34 +53,24 @@ org.apache.maven.plugins maven-compiler-plugin - 3.8.0 + ${version.compiler.plugin} - - + --enable-preview org.apache.maven.plugins maven-surefire-plugin - 3.0.0-M3 + ${version.surefire.plugin} false - - + --enable-preview - - org.jboss.spec - jboss-javaee-7.0 - 1.1.0.Final - pom - provided - - com.blazebit @@ -128,42 +116,90 @@ ${project.groupId} - blaze-persistence-integration-deltaspike-data-impl-1.8 + blaze-persistence-integration-deltaspike-data-impl-2.0 com.blazebit blaze-persistence-entity-view-processor - + + + jakarta.persistence + jakarta.persistence-api + ${version.jpa-api} + provided + + + jakarta.transaction + jakarta.transaction-api + ${version.jta-api} + provided + + + jakarta.interceptor + jakarta.interceptor-api + ${version.interceptor-api} + provided + + + jakarta.inject + jakarta.inject-api + ${version.atinject-api} + provided + + + jakarta.enterprise + jakarta.enterprise.cdi-api + ${version.cdi-api} + provided + + + jakarta.el + jakarta.el-api + ${version.el-api} + provided + + + jakarta.ws.rs + jakarta.ws.rs-api + ${version.jaxrs-api} + provided + + + jakarta.validation + jakarta.validation-api + ${version.validation-api} + provided + jakarta.xml.bind jakarta.xml.bind-api - 2.3.1 + ${version.jaxb-api} provided com.sun.xml.bind jaxb-impl - 2.3.3 + ${version.jaxb} provided - jakarta.transaction - jakarta.transaction-api - 1.3.3 + jakarta.annotation + jakarta.annotation-api + ${version.annotation-api} provided jakarta.activation jakarta.activation-api - 1.2.2 + ${version.activation-api} provided - jakarta.annotation - jakarta.annotation-api - 1.3.5 + jakarta.ejb + jakarta.ejb-api + ${version.ejb-api} provided @@ -188,30 +224,17 @@ weld-se-core \${version.weld} test - - - org.jboss - jandex - - - - - - org.jboss - jandex - 2.0.4.Final - test - junit - junit - 4.11 + org.junit.jupiter + junit-jupiter + ${version.junit-jupiter} test com.h2database h2 - 1.4.200 + ${h2.version} test @@ -224,18 +247,18 @@ com.blazebit - blaze-persistence-integration-hibernate-${version.integration-hibernate} + blaze-persistence-integration-hibernate-6.2 - org.hibernate - hibernate-entitymanager + org.hibernate.orm + hibernate-core \${version.hibernate} test - org.hibernate + org.hibernate.orm hibernate-jpamodelgen \${version.hibernate} provided @@ -244,55 +267,26 @@ - org.bsc.maven - maven-processor-plugin - - - process - - process - - generate-sources - - - \${project.build.directory}/metamodel - - org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor - com.blazebit.persistence.view.processor.EntityViewAnnotationProcessor - - - - - - - - org.hibernate - hibernate-jpamodelgen - \${version.hibernate} - - - com.blazebit - blaze-persistence-entity-view-processor - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source-metamodel - generate-sources - - add-source - - - - \${project.build.directory}/metamodel - - - - + maven-compiler-plugin + + + + + org.hibernate.orm + hibernate-jpamodelgen + \${version.hibernate} + + + com.blazebit + blaze-persistence-entity-view-processor + \${version.blaze-persistence} + + + + org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor + com.blazebit.persistence.view.processor.EntityViewAnnotationProcessor + + @@ -304,12 +298,6 @@ com.blazebit blaze-persistence-integration-eclipselink - - org.eclipse.persistence - javax.persistence - 2.1.1 - test - org.eclipse.persistence eclipselink @@ -328,54 +316,23 @@ - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - \${additional.source.directory} - \${project.build.directory}/generated-sources/metamodel - - - - - - - org.bsc.maven - maven-processor-plugin - - - process - - process - - generate-sources - - - \${project.build.directory}/generated-sources/metamodel - - org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor - - - \${basedir}/src/main/resources/META-INF/persistence.xml - - - - - - - - org.eclipse.persistence - org.eclipse.persistence.jpa.modelgen.processor - \${version.eclipselink} - - + maven-compiler-plugin + + + + + org.eclipse.persistence + org.eclipse.persistence.jpa.modelgen.processor + \${version.eclipselink} + + + + -Aeclipselink.persistencexml=\${basedir}/src/main/resources/META-INF/persistence.xml + + + org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor + + diff --git a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/Application.java b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/Application.java index 3ed0d9f2fb..3db90a1539 100644 --- a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/Application.java +++ b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/Application.java @@ -5,9 +5,9 @@ package ${package}; -import javax.ws.rs.ApplicationPath; +import jakarta.ws.rs.ApplicationPath; @ApplicationPath("/") -public class Application extends javax.ws.rs.core.Application { +public class Application extends jakarta.ws.rs.core.Application { } \ No newline at end of file diff --git a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/config/CriteriaBuilderFactoryProducer.java b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/config/CriteriaBuilderFactoryProducer.java index 6e0117d850..d864a9da88 100644 --- a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/config/CriteriaBuilderFactoryProducer.java +++ b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/config/CriteriaBuilderFactoryProducer.java @@ -9,14 +9,14 @@ import com.blazebit.persistence.CriteriaBuilderFactory; import com.blazebit.persistence.spi.CriteriaBuilderConfiguration; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.annotation.PostConstruct; -import javax.inject.Inject; -import javax.persistence.EntityManagerFactory; - -@javax.ejb.Singleton -@javax.ejb.Startup +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.annotation.PostConstruct; +import jakarta.inject.Inject; +import jakarta.persistence.EntityManagerFactory; + +@jakarta.ejb.Singleton +@jakarta.ejb.Startup public class CriteriaBuilderFactoryProducer { // inject your entity manager factory diff --git a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/config/EntityManagerProducer.java b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/config/EntityManagerProducer.java index 6afb05f4d9..3ffcd36275 100644 --- a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/config/EntityManagerProducer.java +++ b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/config/EntityManagerProducer.java @@ -5,14 +5,14 @@ package ${package}.config; -import javax.enterprise.inject.Produces; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.PersistenceContext; -import javax.persistence.PersistenceUnit; +import jakarta.enterprise.inject.Produces; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.PersistenceContext; +import jakarta.persistence.PersistenceUnit; -@javax.ejb.Singleton -@javax.ejb.Startup +@jakarta.ejb.Singleton +@jakarta.ejb.Startup public class EntityManagerProducer { // inject your entity manager factory diff --git a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/config/EntityViewManagerProducer.java b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/config/EntityViewManagerProducer.java index 628f192bd2..5473cfc014 100644 --- a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/config/EntityViewManagerProducer.java +++ b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/config/EntityViewManagerProducer.java @@ -9,13 +9,13 @@ import com.blazebit.persistence.view.EntityViewManager; import com.blazebit.persistence.view.spi.EntityViewConfiguration; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.annotation.PostConstruct; -@javax.ejb.Singleton -@javax.ejb.Startup +@jakarta.ejb.Singleton +@jakarta.ejb.Startup public class EntityViewManagerProducer { // inject the configuration provided by the cdi integration diff --git a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/controller/SampleController.java b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/controller/SampleController.java index eaabde7d84..40622cf00b 100644 --- a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/controller/SampleController.java +++ b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/controller/SampleController.java @@ -6,10 +6,10 @@ package ${package}.controller; import ${package}.repository.CatSimpleViewRepository; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Produces; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.Path; @Path("/") public class SampleController { diff --git a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/model/Cat.java b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/model/Cat.java index abdb90ab73..427a8c3df9 100644 --- a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/model/Cat.java +++ b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/model/Cat.java @@ -7,12 +7,12 @@ import java.util.HashSet; import java.util.Set; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; @Entity public class Cat { diff --git a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/model/Person.java b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/model/Person.java index 6e55200ef6..add2b18d41 100644 --- a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/model/Person.java +++ b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/java/model/Person.java @@ -7,10 +7,10 @@ import java.util.HashSet; import java.util.Set; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.OneToMany; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; @Entity public class Person { diff --git a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/beans.xml b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/beans.xml index dc74ca17f4..dc988397a1 100644 --- a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/beans.xml +++ b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/beans.xml @@ -3,6 +3,9 @@ SPDX-License-Identifier: Apache-2.0 Copyright Blazebit --> - + \ No newline at end of file diff --git a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml index 9ae1c0f769..4c9bb3dcd3 100644 --- a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml +++ b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml @@ -9,11 +9,11 @@ false - - - - - + + + + + diff --git a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java index 59342c1367..6383baa8f5 100644 --- a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java +++ b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java @@ -14,20 +14,20 @@ import org.apache.deltaspike.cdise.api.CdiContainerLoader; import org.apache.deltaspike.core.api.provider.BeanProvider; import java.util.function.Consumer; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.EntityTransaction; -import javax.persistence.Persistence; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.EntityTransaction; +import jakarta.persistence.Persistence; import ${package}.model.Cat; import ${package}.model.Person; import ${package}.view.CatSimpleView; import ${package}.view.CatWithOwnerView; import ${package}.view.PersonSimpleView; -import javax.inject.Inject; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Before; -import org.junit.BeforeClass; +import jakarta.inject.Inject; +import org.junit.jupiter.api.AfterAll; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.BeforeEach; public abstract class AbstractSampleTest { @@ -40,13 +40,13 @@ public abstract class AbstractSampleTest { @Inject protected EntityViewManager evm; - @BeforeClass + @BeforeAll public static void bootContainer() { CdiContainer container = CdiContainerLoader.getCdiContainer(); container.boot(); } - @AfterClass + @AfterAll public static void shutdownContainer() { CdiContainer container = CdiContainerLoader.getCdiContainer(); container.shutdown(); @@ -58,13 +58,13 @@ public void startContexts() { BeanProvider.injectFields(this); } - @After + @AfterEach public void stopContexts() { CdiContainer container = CdiContainerLoader.getCdiContainer(); container.getContextControl().stopContexts(); } - @Before + @BeforeEach public void init() { startContexts(); transactional(em -> { diff --git a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/test/java/sample/EntityManagerFactoryHolder.java b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/test/java/sample/EntityManagerFactoryHolder.java index a779475ef1..f5acf6407e 100644 --- a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/test/java/sample/EntityManagerFactoryHolder.java +++ b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/test/java/sample/EntityManagerFactoryHolder.java @@ -5,15 +5,15 @@ package ${package}.sample; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.Disposes; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.Persistence; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.Disposes; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.Persistence; /** * Workaround for WELD-2245 which prevents the use of @ApplicationScoped for EntityManagerFactory directly diff --git a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java index 40270ca4c7..6428cc9294 100644 --- a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java +++ b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java @@ -14,9 +14,9 @@ import ${package}.view.CatWithOwnerView; import ${package}.view.PersonSimpleView; import ${package}.repository.CatSimpleViewRepository; -import javax.inject.Inject; -import org.junit.Assert; -import org.junit.Test; +import jakarta.inject.Inject; +import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.*; public class SampleTest extends AbstractSampleTest { @@ -29,7 +29,7 @@ public void sampleTest() { List list = catRepository.getWithOwnerView(); System.out.println(list); - Assert.assertEquals(6, list.size()); + assertEquals(6, list.size()); }); } } diff --git a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/test/java/sample/TestExtension.java b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/test/java/sample/TestExtension.java index 3b7da685c8..62d90eae86 100644 --- a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/test/java/sample/TestExtension.java +++ b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/test/java/sample/TestExtension.java @@ -7,9 +7,9 @@ import ${package}.config.EntityManagerProducer; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.spi.Extension; -import javax.enterprise.inject.spi.ProcessAnnotatedType; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.spi.Extension; +import jakarta.enterprise.inject.spi.ProcessAnnotatedType; /** * In the test, we have to produce the EntityManagerFactory and EntityManager manually diff --git a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/test/resources/META-INF/beans.xml b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/test/resources/META-INF/beans.xml index dc74ca17f4..dc988397a1 100644 --- a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/test/resources/META-INF/beans.xml +++ b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/test/resources/META-INF/beans.xml @@ -3,6 +3,9 @@ SPDX-License-Identifier: Apache-2.0 Copyright Blazebit --> - + \ No newline at end of file diff --git a/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/test/resources/META-INF/services/javax.enterprise.inject.spi.Extension b/archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/test/resources/META-INF/services/jakarta.enterprise.inject.spi.Extension similarity index 100% rename from archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/test/resources/META-INF/services/javax.enterprise.inject.spi.Extension rename to archetype/deltaspike-data-sample/src/main/resources/archetype-resources/src/test/resources/META-INF/services/jakarta.enterprise.inject.spi.Extension diff --git a/archetype/entity-view-sample-jakarta/pom.xml b/archetype/entity-view-sample-jakarta/pom.xml deleted file mode 100644 index d743114434..0000000000 --- a/archetype/entity-view-sample-jakarta/pom.xml +++ /dev/null @@ -1,56 +0,0 @@ - - - - - 4.0.0 - - - com.blazebit - blaze-persistence-archetype - 1.6.15-SNAPSHOT - ../pom.xml - - - blaze-persistence-archetype-entity-view-sample-jakarta - jar - - Blazebit Persistence Archetype Entity-View Sample Jakarta - - - com.blazebit.persistence.archetype.view.sample - - - - - - - org.apache.maven.plugins - maven-resources-plugin - - \ - - - - - - - - src/main/resources - true - - archetype-resources/pom.xml - - - - src/main/resources - false - - archetype-resources/pom.xml - - - - - diff --git a/archetype/entity-view-sample-jakarta/src/main/resources/META-INF/maven/archetype.xml b/archetype/entity-view-sample-jakarta/src/main/resources/META-INF/maven/archetype.xml deleted file mode 100644 index 863e09503a..0000000000 --- a/archetype/entity-view-sample-jakarta/src/main/resources/META-INF/maven/archetype.xml +++ /dev/null @@ -1,24 +0,0 @@ - - - - - blaze-persistence-entity-view-sample - - src/main/java/model/Cat.java - src/main/java/model/Person.java - src/main/java/view/CatSimpleView.java - src/main/java/view/CatWithOwnerView.java - src/main/java/view/PersonSimpleView.java - - - src/main/resources/META-INF/persistence.xml - - - src/test/java/sample/AbstractSampleTest.java - src/test/java/sample/SampleTest.java - - \ No newline at end of file diff --git a/archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/pom.xml b/archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/pom.xml deleted file mode 100644 index 118c934b1e..0000000000 --- a/archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/pom.xml +++ /dev/null @@ -1,142 +0,0 @@ - - - - - 4.0.0 - - \${groupId} - \${artifactId} - \${version} - jar - - Blazebit Persistence Entity View Sample - - - UTF-8 - 11 - 11 - - ${project.version} - - - - - - com.blazebit - blaze-persistence-bom - \${version.blaze-persistence} - pom - import - - - - - - - org.hibernate - hibernate-core - 6.2.0.CR4 - - - - - com.blazebit - blaze-persistence-core-api-jakarta - - - com.blazebit - blaze-persistence-core-impl-jakarta - - - com.blazebit - blaze-persistence-integration-hibernate-6.2 - - - - - com.blazebit - blaze-persistence-entity-view-api-jakarta - - - com.blazebit - blaze-persistence-entity-view-impl-jakarta - - - com.blazebit - blaze-persistence-entity-view-processor-jakarta - - - - - jakarta.xml.bind - jakarta.xml.bind-api - 3.0.1 - provided - - - com.sun.xml.bind - jaxb-impl - 3.0.2 - provided - - - jakarta.transaction - jakarta.transaction-api - 2.0.0 - provided - - - jakarta.activation - jakarta.activation-api - 2.0.1 - provided - - - - - junit - junit - 4.11 - test - - - com.h2database - h2 - 1.4.200 - test - - - - - jdk11+ - - [11,) - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.0 - - --enable-preview - - - - org.apache.maven.plugins - maven-surefire-plugin - 3.0.0-M3 - - false - --enable-preview - - - - - - - - diff --git a/archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/src/main/java/model/Cat.java b/archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/src/main/java/model/Cat.java deleted file mode 100644 index 427a8c3df9..0000000000 --- a/archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/src/main/java/model/Cat.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * SPDX-License-Identifier: Apache-2.0 - * Copyright Blazebit - */ - -package ${package}.model; - -import java.util.HashSet; -import java.util.Set; -import jakarta.persistence.Entity; -import jakarta.persistence.FetchType; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.Id; -import jakarta.persistence.ManyToMany; -import jakarta.persistence.ManyToOne; - -@Entity -public class Cat { - - @Id - @GeneratedValue - private Long id; - private String name; - private Integer age; - @ManyToOne(fetch = FetchType.LAZY, optional = true) - private Person owner; - @ManyToOne(fetch = FetchType.LAZY, optional = true) - private Cat mother; - @ManyToOne(fetch = FetchType.LAZY, optional = true) - private Cat father; - @ManyToMany - private Set kittens = new HashSet<>(); - - public Cat() { - } - - public Cat(String name, Integer age, Person owner) { - this.name = name; - this.age = age; - this.owner = owner; - } - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Integer getAge() { - return age; - } - - public void setAge(Integer age) { - this.age = age; - } - - public Person getOwner() { - return owner; - } - - public void setOwner(Person owner) { - this.owner = owner; - } - - public Cat getMother() { - return mother; - } - - public void setMother(Cat mother) { - this.mother = mother; - } - - public Cat getFather() { - return father; - } - - public void setFather(Cat father) { - this.father = father; - } - - public Set getKittens() { - return kittens; - } - - public void setKittens(Set kittens) { - this.kittens = kittens; - } -} diff --git a/archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/src/main/java/model/Person.java b/archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/src/main/java/model/Person.java deleted file mode 100644 index add2b18d41..0000000000 --- a/archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/src/main/java/model/Person.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * SPDX-License-Identifier: Apache-2.0 - * Copyright Blazebit - */ - -package ${package}.model; - -import java.util.HashSet; -import java.util.Set; -import jakarta.persistence.Entity; -import jakarta.persistence.GeneratedValue; -import jakarta.persistence.Id; -import jakarta.persistence.OneToMany; - -@Entity -public class Person { - - @Id - @GeneratedValue - private Long id; - private String name; - @OneToMany(mappedBy = "owner") - private Set kittens = new HashSet<>(); - - public Person() { - } - - public Person(String name) { - this.name = name; - } - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Set getKittens() { - return kittens; - } - - public void setKittens(Set kittens) { - this.kittens = kittens; - } -} diff --git a/archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java b/archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java deleted file mode 100644 index 58f425a577..0000000000 --- a/archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java +++ /dev/null @@ -1,116 +0,0 @@ -/* - * SPDX-License-Identifier: Apache-2.0 - * Copyright Blazebit - */ - -package ${package}.sample; - -import com.blazebit.persistence.Criteria; -import com.blazebit.persistence.CriteriaBuilderFactory; -import com.blazebit.persistence.spi.CriteriaBuilderConfiguration; -import com.blazebit.persistence.view.EntityViews; -import com.blazebit.persistence.view.EntityViewManager; -import com.blazebit.persistence.view.spi.EntityViewConfiguration; -import java.util.function.Consumer; -import jakarta.persistence.EntityManager; -import jakarta.persistence.EntityManagerFactory; -import jakarta.persistence.EntityTransaction; -import jakarta.persistence.Persistence; -import ${package}.model.Cat; -import ${package}.model.Person; -import ${package}.view.CatSimpleView; -import ${package}.view.CatWithOwnerView; -import ${package}.view.PersonSimpleView; -import org.junit.After; -import org.junit.Before; - -public abstract class AbstractSampleTest { - - protected EntityManagerFactory emf; - protected CriteriaBuilderFactory cbf; - protected EntityViewManager evm; - - @Before - public void init() { - emf = Persistence.createEntityManagerFactory("default"); - CriteriaBuilderConfiguration config = Criteria.getDefault(); - cbf = config.createCriteriaBuilderFactory(emf); - - EntityViewConfiguration entityViewConfiguration = EntityViews.createDefaultConfiguration(); - - for (Class entityViewClazz : getEntityViewClasses()) { - entityViewConfiguration.addEntityView(entityViewClazz); - } - - evm = entityViewConfiguration.createEntityViewManager(cbf); - - transactional(em -> { - Person p1 = new Person("P1"); - Person p2 = new Person("P2"); - Person p3 = new Person("P3"); - em.persist(p1); - em.persist(p2); - em.persist(p3); - - Cat c1 = new Cat("C1", 1, p2); - Cat c2 = new Cat("C2", 2, p2); - Cat c3 = new Cat("C3", 4, p2); - - Cat c4 = new Cat("C4", 6, p3); - - Cat c5 = new Cat("C5", 8, null); - Cat c6 = new Cat("C6", 7, null); - - em.persist(c1); - em.persist(c2); - em.persist(c3); - em.persist(c4); - em.persist(c5); - em.persist(c6); - - c1.setMother(c3); - c3.getKittens().add(c1); - - c1.setFather(c5); - c5.getKittens().add(c1); - - c2.setMother(c3); - c3.getKittens().add(c2); - - c2.setFather(c6); - c6.getKittens().add(c2); - - c4.setFather(c6); - c6.getKittens().add(c4); - }); - } - - protected abstract Class[] getEntityViewClasses(); - - protected void transactional(Consumer consumer) { - EntityManager em = emf.createEntityManager(); - EntityTransaction tx = em.getTransaction(); - boolean success = false; - - try { - tx.begin(); - consumer.accept(em); - success = true; - } finally { - try { - if (success) { - tx.commit(); - } else { - tx.rollback(); - } - } finally { - em.close(); - } - } - } - - @After - public void destruct() { - emf.close(); - } -} diff --git a/archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java b/archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java deleted file mode 100644 index 994fa01d73..0000000000 --- a/archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java +++ /dev/null @@ -1,44 +0,0 @@ -/* - * SPDX-License-Identifier: Apache-2.0 - * Copyright Blazebit - */ - -package ${package}.sample; - -import com.blazebit.persistence.CriteriaBuilder; -import com.blazebit.persistence.view.EntityViewSetting; -import java.util.List; -import ${package}.model.Cat; -import ${package}.model.Person; -import ${package}.view.CatSimpleView; -import ${package}.view.CatWithOwnerView; -import ${package}.view.PersonSimpleView; -import org.junit.Assert; -import org.junit.Test; - -public class SampleTest extends AbstractSampleTest { - - @Override - protected Class[] getEntityViewClasses() { - return new Class[] { - CatSimpleView.class, - CatWithOwnerView.class, - PersonSimpleView.class - }; - } - - @Test - public void sampleTest() { - transactional(em -> { - CriteriaBuilder catCriteriaBuilder = cbf.create(em, Cat.class); - catCriteriaBuilder.from(Cat.class, "cat"); - - EntityViewSetting> setting = EntityViewSetting.create(CatWithOwnerView.class); - CriteriaBuilder cb = evm.applySetting(setting, catCriteriaBuilder); - List list = cb.getResultList(); - - System.out.println(list); - Assert.assertEquals(6, list.size()); - }); - } -} diff --git a/archetype/entity-view-sample/pom.xml b/archetype/entity-view-sample/pom.xml index 50381c79cc..38f904c96b 100644 --- a/archetype/entity-view-sample/pom.xml +++ b/archetype/entity-view-sample/pom.xml @@ -17,7 +17,7 @@ blaze-persistence-archetype-entity-view-sample jar - Blazebit Persistence Archetype Entity-View Sample + Blazebit Persistence Archetype Entity-View Sample Jakarta com.blazebit.persistence.archetype.view.sample diff --git a/archetype/entity-view-sample/src/main/resources/archetype-resources/pom.xml b/archetype/entity-view-sample/src/main/resources/archetype-resources/pom.xml index 5c80032bb1..d44eead975 100644 --- a/archetype/entity-view-sample/src/main/resources/archetype-resources/pom.xml +++ b/archetype/entity-view-sample/src/main/resources/archetype-resources/pom.xml @@ -16,8 +16,8 @@ UTF-8 - 1.8 - 1.8 + 11 + 11 ${project.version} @@ -36,9 +36,9 @@ - org.hibernate - hibernate-entitymanager - 5.2.8.Final + org.hibernate.orm + hibernate-core + ${version.hibernate-6.6} @@ -52,7 +52,7 @@ com.blazebit - blaze-persistence-integration-hibernate-5.2 + blaze-persistence-integration-hibernate-6.2 @@ -69,80 +69,83 @@ blaze-persistence-entity-view-processor - + + jakarta.persistence + jakarta.persistence-api + ${version.jpa-api} + provided + + + jakarta.transaction + jakarta.transaction-api + ${version.jta-api} + provided + + + jakarta.validation + jakarta.validation-api + ${version.validation-api} + provided + jakarta.xml.bind jakarta.xml.bind-api - 2.3.3 + ${version.jaxb-api} provided com.sun.xml.bind jaxb-impl - 2.3.3 + ${version.jaxb} provided - jakarta.transaction - jakarta.transaction-api - 1.3.3 + jakarta.annotation + jakarta.annotation-api + ${version.annotation-api} provided jakarta.activation jakarta.activation-api - 1.2.2 + ${version.activation-api} provided - - jakarta.annotation - jakarta.annotation-api - 1.3.5 - provided - - + - junit - junit - 4.11 + org.junit.jupiter + junit-jupiter + ${version.junit-jupiter} test com.h2database h2 - 1.4.200 + ${h2.version} test - - - jdk11+ - - [11,) - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.0 - - --enable-preview - - - - org.apache.maven.plugins - maven-surefire-plugin - 3.0.0-M3 - - false - --enable-preview - - - - - - + + + + org.apache.maven.plugins + maven-compiler-plugin + ${version.compiler.plugin} + + --enable-preview + + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + false + --enable-preview + + + + diff --git a/archetype/entity-view-sample/src/main/resources/archetype-resources/src/main/java/model/Cat.java b/archetype/entity-view-sample/src/main/resources/archetype-resources/src/main/java/model/Cat.java index abdb90ab73..427a8c3df9 100644 --- a/archetype/entity-view-sample/src/main/resources/archetype-resources/src/main/java/model/Cat.java +++ b/archetype/entity-view-sample/src/main/resources/archetype-resources/src/main/java/model/Cat.java @@ -7,12 +7,12 @@ import java.util.HashSet; import java.util.Set; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; @Entity public class Cat { diff --git a/archetype/entity-view-sample/src/main/resources/archetype-resources/src/main/java/model/Person.java b/archetype/entity-view-sample/src/main/resources/archetype-resources/src/main/java/model/Person.java index 6e55200ef6..add2b18d41 100644 --- a/archetype/entity-view-sample/src/main/resources/archetype-resources/src/main/java/model/Person.java +++ b/archetype/entity-view-sample/src/main/resources/archetype-resources/src/main/java/model/Person.java @@ -7,10 +7,10 @@ import java.util.HashSet; import java.util.Set; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.OneToMany; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; @Entity public class Person { diff --git a/archetype/entity-view-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml b/archetype/entity-view-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml index 3a07cacc0b..687a9b9fb0 100644 --- a/archetype/entity-view-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml +++ b/archetype/entity-view-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml @@ -3,17 +3,17 @@ SPDX-License-Identifier: Apache-2.0 Copyright Blazebit --> - + false - - - - - + + + + + diff --git a/archetype/entity-view-sample/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java b/archetype/entity-view-sample/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java index f512923e97..4fbb6acaa0 100644 --- a/archetype/entity-view-sample/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java +++ b/archetype/entity-view-sample/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java @@ -12,17 +12,17 @@ import com.blazebit.persistence.view.EntityViewManager; import com.blazebit.persistence.view.spi.EntityViewConfiguration; import java.util.function.Consumer; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.EntityTransaction; -import javax.persistence.Persistence; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.EntityTransaction; +import jakarta.persistence.Persistence; import ${package}.model.Cat; import ${package}.model.Person; import ${package}.view.CatSimpleView; import ${package}.view.CatWithOwnerView; import ${package}.view.PersonSimpleView; -import org.junit.After; -import org.junit.Before; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; public abstract class AbstractSampleTest { @@ -30,7 +30,7 @@ public abstract class AbstractSampleTest { protected CriteriaBuilderFactory cbf; protected EntityViewManager evm; - @Before + @BeforeEach public void init() { emf = Persistence.createEntityManagerFactory("default"); CriteriaBuilderConfiguration config = Criteria.getDefault(); @@ -109,7 +109,7 @@ protected void transactional(Consumer consumer) { } } - @After + @AfterEach public void destruct() { emf.close(); } diff --git a/archetype/entity-view-sample/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java b/archetype/entity-view-sample/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java index 994fa01d73..338620a96e 100644 --- a/archetype/entity-view-sample/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java +++ b/archetype/entity-view-sample/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java @@ -13,8 +13,8 @@ import ${package}.view.CatSimpleView; import ${package}.view.CatWithOwnerView; import ${package}.view.PersonSimpleView; -import org.junit.Assert; -import org.junit.Test; +import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.*; public class SampleTest extends AbstractSampleTest { @@ -38,7 +38,7 @@ public void sampleTest() { List list = cb.getResultList(); System.out.println(list); - Assert.assertEquals(6, list.size()); + assertEquals(6, list.size()); }); } } diff --git a/archetype/java-ee-sample/pom.xml b/archetype/jakarta-ee-sample/pom.xml similarity index 95% rename from archetype/java-ee-sample/pom.xml rename to archetype/jakarta-ee-sample/pom.xml index 06858912a5..d1d2b01a76 100644 --- a/archetype/java-ee-sample/pom.xml +++ b/archetype/jakarta-ee-sample/pom.xml @@ -12,7 +12,7 @@ 4.0.0 - blaze-persistence-archetype-java-ee-sample + blaze-persistence-archetype-jakarta-ee-sample Blazebit Persistence Archetype Java EE Sample diff --git a/archetype/java-ee-sample/src/main/resources/META-INF/maven/archetype.xml b/archetype/jakarta-ee-sample/src/main/resources/META-INF/maven/archetype.xml similarity index 94% rename from archetype/java-ee-sample/src/main/resources/META-INF/maven/archetype.xml rename to archetype/jakarta-ee-sample/src/main/resources/META-INF/maven/archetype.xml index 1585c4b5f4..41b1ac3afa 100644 --- a/archetype/java-ee-sample/src/main/resources/META-INF/maven/archetype.xml +++ b/archetype/jakarta-ee-sample/src/main/resources/META-INF/maven/archetype.xml @@ -24,7 +24,7 @@ src/main/resources/META-INF/persistence.xml src/main/resources/META-INF/beans.xml src/test/resources/META-INF/beans.xml - src/test/resources/META-INF/services/javax.enterprise.inject.spi.Extension + src/test/resources/META-INF/services/jakarta.enterprise.inject.spi.Extension src/test/java/sample/AbstractSampleTest.java diff --git a/archetype/java-ee-sample/src/main/resources/archetype-resources/pom.xml b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/pom.xml similarity index 69% rename from archetype/java-ee-sample/src/main/resources/archetype-resources/pom.xml rename to archetype/jakarta-ee-sample/src/main/resources/archetype-resources/pom.xml index 1abd67bc5b..9f335086b4 100644 --- a/archetype/java-ee-sample/src/main/resources/archetype-resources/pom.xml +++ b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/pom.xml @@ -15,12 +15,12 @@ UTF-8 - 1.8 - 1.8 + 11 + 11 ${project.version} - 1.9.3 - 2.4.5.Final + ${version.deltaspike-2.0} + ${version.weld} @@ -51,34 +51,24 @@ org.apache.maven.plugins maven-compiler-plugin - 3.8.0 + ${version.compiler.plugin} - - + --enable-preview org.apache.maven.plugins maven-surefire-plugin - 3.0.0-M3 + ${version.surefire.plugin} false - - + --enable-preview - - org.jboss.spec - jboss-javaee-7.0 - 1.1.0.Final - pom - provided - - com.blazebit @@ -109,35 +99,83 @@ blaze-persistence-integration-entity-view-cdi - + + + jakarta.persistence + jakarta.persistence-api + ${version.jakarta-jpa-3.1-api} + provided + + + jakarta.transaction + jakarta.transaction-api + ${version.jta-api} + provided + + + jakarta.interceptor + jakarta.interceptor-api + ${version.jakarta-interceptor} + provided + + + jakarta.inject + jakarta.inject-api + ${version.jakarta-atinject-api} + provided + + + jakarta.enterprise + jakarta.enterprise.cdi-api + ${version.jakarta-cdi-api} + provided + + + jakarta.el + jakarta.el-api + ${version.jakarta-el-api} + provided + + + jakarta.ws.rs + jakarta.ws.rs-api + ${version.jaxrs-api} + provided + + + jakarta.validation + jakarta.validation-api + ${version.jakarta-validation} + provided + jakarta.xml.bind jakarta.xml.bind-api - 2.3.3 + ${version.jakarta-jaxb-api} provided com.sun.xml.bind jaxb-impl - 2.3.3 + ${version.jakarta-jaxb} provided - jakarta.transaction - jakarta.transaction-api - 1.3.3 + jakarta.annotation + jakarta.annotation-api + ${version.jakarta-annotation} provided jakarta.activation jakarta.activation-api - 1.2.2 + ${version.jakarta-activation} provided - jakarta.annotation - jakarta.annotation-api - 1.3.5 + jakarta.ejb + jakarta.ejb-api + ${version.jakarta-ejb} provided @@ -155,7 +193,7 @@ org.apache.deltaspike.core deltaspike-core-impl - test + runtime org.apache.deltaspike.cdictrl @@ -177,30 +215,17 @@ weld-se-core \${version.weld} test - - - org.jboss - jandex - - - - - - org.jboss - jandex - 2.0.4.Final - test - junit - junit - 4.11 + org.junit.jupiter + junit-jupiter + ${version.junit-jupiter} test com.h2database h2 - 1.4.200 + ${h2.version} test @@ -213,12 +238,12 @@ com.blazebit - blaze-persistence-integration-hibernate-5 + blaze-persistence-integration-hibernate-6.2 - org.hibernate - hibernate-entitymanager - 5.0.12.Final + org.hibernate.orm + hibernate-core + ${version.hibernate-6.6} test @@ -230,16 +255,10 @@ com.blazebit blaze-persistence-integration-eclipselink - - org.eclipse.persistence - javax.persistence - 2.1.1 - test - org.eclipse.persistence eclipselink - 2.6.4 + ${version.eclipselink} test diff --git a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/Application.java b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/Application.java similarity index 52% rename from archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/Application.java rename to archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/Application.java index 3ed0d9f2fb..3db90a1539 100644 --- a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/Application.java +++ b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/Application.java @@ -5,9 +5,9 @@ package ${package}; -import javax.ws.rs.ApplicationPath; +import jakarta.ws.rs.ApplicationPath; @ApplicationPath("/") -public class Application extends javax.ws.rs.core.Application { +public class Application extends jakarta.ws.rs.core.Application { } \ No newline at end of file diff --git a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/config/CriteriaBuilderFactoryProducer.java b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/config/CriteriaBuilderFactoryProducer.java similarity index 77% rename from archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/config/CriteriaBuilderFactoryProducer.java rename to archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/config/CriteriaBuilderFactoryProducer.java index 3044b13d5f..9d5b927d4a 100644 --- a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/config/CriteriaBuilderFactoryProducer.java +++ b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/config/CriteriaBuilderFactoryProducer.java @@ -9,14 +9,14 @@ import com.blazebit.persistence.CriteriaBuilderFactory; import com.blazebit.persistence.spi.CriteriaBuilderConfiguration; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.annotation.PostConstruct; -import javax.persistence.EntityManagerFactory; - -@javax.ejb.Singleton -@javax.ejb.Startup +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.annotation.PostConstruct; +import jakarta.persistence.EntityManagerFactory; + +@jakarta.ejb.Singleton +@jakarta.ejb.Startup public class CriteriaBuilderFactoryProducer { // inject your entity manager factory diff --git a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/config/EntityManagerProducer.java b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/config/EntityManagerProducer.java similarity index 57% rename from archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/config/EntityManagerProducer.java rename to archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/config/EntityManagerProducer.java index 6afb05f4d9..3ffcd36275 100644 --- a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/config/EntityManagerProducer.java +++ b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/config/EntityManagerProducer.java @@ -5,14 +5,14 @@ package ${package}.config; -import javax.enterprise.inject.Produces; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.PersistenceContext; -import javax.persistence.PersistenceUnit; +import jakarta.enterprise.inject.Produces; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.PersistenceContext; +import jakarta.persistence.PersistenceUnit; -@javax.ejb.Singleton -@javax.ejb.Startup +@jakarta.ejb.Singleton +@jakarta.ejb.Startup public class EntityManagerProducer { // inject your entity manager factory diff --git a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/config/EntityViewManagerProducer.java b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/config/EntityViewManagerProducer.java similarity index 81% rename from archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/config/EntityViewManagerProducer.java rename to archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/config/EntityViewManagerProducer.java index 628f192bd2..5473cfc014 100644 --- a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/config/EntityViewManagerProducer.java +++ b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/config/EntityViewManagerProducer.java @@ -9,13 +9,13 @@ import com.blazebit.persistence.view.EntityViewManager; import com.blazebit.persistence.view.spi.EntityViewConfiguration; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.inject.Produces; -import javax.inject.Inject; -import javax.annotation.PostConstruct; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.inject.Inject; +import jakarta.annotation.PostConstruct; -@javax.ejb.Singleton -@javax.ejb.Startup +@jakarta.ejb.Singleton +@jakarta.ejb.Startup public class EntityViewManagerProducer { // inject the configuration provided by the cdi integration diff --git a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/controller/SampleController.java b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/controller/SampleController.java similarity index 76% rename from archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/controller/SampleController.java rename to archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/controller/SampleController.java index eaabde7d84..40622cf00b 100644 --- a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/controller/SampleController.java +++ b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/controller/SampleController.java @@ -6,10 +6,10 @@ package ${package}.controller; import ${package}.repository.CatSimpleViewRepository; -import javax.inject.Inject; -import javax.ws.rs.GET; -import javax.ws.rs.Produces; -import javax.ws.rs.Path; +import jakarta.inject.Inject; +import jakarta.ws.rs.GET; +import jakarta.ws.rs.Produces; +import jakarta.ws.rs.Path; @Path("/") public class SampleController { diff --git a/archetype/core-sample-jakarta/src/main/resources/archetype-resources/src/main/java/model/Cat.java b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/model/Cat.java similarity index 100% rename from archetype/core-sample-jakarta/src/main/resources/archetype-resources/src/main/java/model/Cat.java rename to archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/model/Cat.java diff --git a/archetype/core-sample-jakarta/src/main/resources/archetype-resources/src/main/java/model/Person.java b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/model/Person.java similarity index 100% rename from archetype/core-sample-jakarta/src/main/resources/archetype-resources/src/main/java/model/Person.java rename to archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/model/Person.java diff --git a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/repository/CatSimpleViewRepository.java b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/repository/CatSimpleViewRepository.java similarity index 77% rename from archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/repository/CatSimpleViewRepository.java rename to archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/repository/CatSimpleViewRepository.java index 697543c7b7..16c59200ff 100644 --- a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/repository/CatSimpleViewRepository.java +++ b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/repository/CatSimpleViewRepository.java @@ -10,14 +10,14 @@ import java.util.List; -import javax.ejb.Stateless; -import javax.ejb.TransactionAttribute; -import javax.ejb.TransactionAttributeType; +import jakarta.ejb.Stateless; +import jakarta.ejb.TransactionAttribute; +import jakarta.ejb.TransactionAttributeType; -import javax.inject.Inject; +import jakarta.inject.Inject; -import javax.persistence.PersistenceContext; -import javax.persistence.EntityManager; +import jakarta.persistence.PersistenceContext; +import jakarta.persistence.EntityManager; import ${package}.model.*; import ${package}.view.*; diff --git a/archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/src/main/java/view/CatSimpleView.java b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/view/CatSimpleView.java similarity index 100% rename from archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/src/main/java/view/CatSimpleView.java rename to archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/view/CatSimpleView.java diff --git a/archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/src/main/java/view/CatWithOwnerView.java b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/view/CatWithOwnerView.java similarity index 100% rename from archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/src/main/java/view/CatWithOwnerView.java rename to archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/view/CatWithOwnerView.java diff --git a/archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/src/main/java/view/PersonSimpleView.java b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/view/PersonSimpleView.java similarity index 100% rename from archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/src/main/java/view/PersonSimpleView.java rename to archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/java/view/PersonSimpleView.java diff --git a/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/beans.xml b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/beans.xml new file mode 100644 index 0000000000..dc988397a1 --- /dev/null +++ b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/beans.xml @@ -0,0 +1,11 @@ + + + + \ No newline at end of file diff --git a/archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml similarity index 67% rename from archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml rename to archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml index 687a9b9fb0..4c9bb3dcd3 100644 --- a/archetype/entity-view-sample-jakarta/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml +++ b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml @@ -3,11 +3,11 @@ SPDX-License-Identifier: Apache-2.0 Copyright Blazebit --> - - + + false - + diff --git a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java similarity index 88% rename from archetype/java-ee-sample/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java rename to archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java index 59342c1367..6383baa8f5 100644 --- a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java +++ b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java @@ -14,20 +14,20 @@ import org.apache.deltaspike.cdise.api.CdiContainerLoader; import org.apache.deltaspike.core.api.provider.BeanProvider; import java.util.function.Consumer; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.EntityTransaction; -import javax.persistence.Persistence; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.EntityTransaction; +import jakarta.persistence.Persistence; import ${package}.model.Cat; import ${package}.model.Person; import ${package}.view.CatSimpleView; import ${package}.view.CatWithOwnerView; import ${package}.view.PersonSimpleView; -import javax.inject.Inject; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Before; -import org.junit.BeforeClass; +import jakarta.inject.Inject; +import org.junit.jupiter.api.AfterAll; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeAll; +import org.junit.jupiter.api.BeforeEach; public abstract class AbstractSampleTest { @@ -40,13 +40,13 @@ public abstract class AbstractSampleTest { @Inject protected EntityViewManager evm; - @BeforeClass + @BeforeAll public static void bootContainer() { CdiContainer container = CdiContainerLoader.getCdiContainer(); container.boot(); } - @AfterClass + @AfterAll public static void shutdownContainer() { CdiContainer container = CdiContainerLoader.getCdiContainer(); container.shutdown(); @@ -58,13 +58,13 @@ public void startContexts() { BeanProvider.injectFields(this); } - @After + @AfterEach public void stopContexts() { CdiContainer container = CdiContainerLoader.getCdiContainer(); container.getContextControl().stopContexts(); } - @Before + @BeforeEach public void init() { startContexts(); transactional(em -> { diff --git a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/test/java/sample/EntityManagerFactoryHolder.java b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/test/java/sample/EntityManagerFactoryHolder.java similarity index 70% rename from archetype/java-ee-sample/src/main/resources/archetype-resources/src/test/java/sample/EntityManagerFactoryHolder.java rename to archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/test/java/sample/EntityManagerFactoryHolder.java index a779475ef1..f5acf6407e 100644 --- a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/test/java/sample/EntityManagerFactoryHolder.java +++ b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/test/java/sample/EntityManagerFactoryHolder.java @@ -5,15 +5,15 @@ package ${package}.sample; -import javax.annotation.PostConstruct; -import javax.annotation.PreDestroy; -import javax.enterprise.context.ApplicationScoped; -import javax.enterprise.context.RequestScoped; -import javax.enterprise.inject.Produces; -import javax.enterprise.inject.Disposes; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.Persistence; +import jakarta.annotation.PostConstruct; +import jakarta.annotation.PreDestroy; +import jakarta.enterprise.context.ApplicationScoped; +import jakarta.enterprise.context.RequestScoped; +import jakarta.enterprise.inject.Produces; +import jakarta.enterprise.inject.Disposes; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.Persistence; /** * Workaround for WELD-2245 which prevents the use of @ApplicationScoped for EntityManagerFactory directly diff --git a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java similarity index 89% rename from archetype/java-ee-sample/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java rename to archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java index a8145bf92f..7dfe92087c 100644 --- a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java +++ b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java @@ -13,8 +13,8 @@ import ${package}.view.CatSimpleView; import ${package}.view.CatWithOwnerView; import ${package}.view.PersonSimpleView; -import org.junit.Assert; -import org.junit.Test; +import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.*; public class SampleTest extends AbstractSampleTest { @@ -29,7 +29,7 @@ public void sampleTest() { List list = cb.getResultList(); System.out.println(list); - Assert.assertEquals(6, list.size()); + assertEquals(6, list.size()); }); } } diff --git a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/test/java/sample/TestExtension.java b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/test/java/sample/TestExtension.java similarity index 76% rename from archetype/java-ee-sample/src/main/resources/archetype-resources/src/test/java/sample/TestExtension.java rename to archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/test/java/sample/TestExtension.java index 3b7da685c8..62d90eae86 100644 --- a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/test/java/sample/TestExtension.java +++ b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/test/java/sample/TestExtension.java @@ -7,9 +7,9 @@ import ${package}.config.EntityManagerProducer; -import javax.enterprise.event.Observes; -import javax.enterprise.inject.spi.Extension; -import javax.enterprise.inject.spi.ProcessAnnotatedType; +import jakarta.enterprise.event.Observes; +import jakarta.enterprise.inject.spi.Extension; +import jakarta.enterprise.inject.spi.ProcessAnnotatedType; /** * In the test, we have to produce the EntityManagerFactory and EntityManager manually diff --git a/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/test/resources/META-INF/beans.xml b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/test/resources/META-INF/beans.xml new file mode 100644 index 0000000000..dc988397a1 --- /dev/null +++ b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/test/resources/META-INF/beans.xml @@ -0,0 +1,11 @@ + + + + \ No newline at end of file diff --git a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/test/resources/META-INF/services/javax.enterprise.inject.spi.Extension b/archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/test/resources/META-INF/services/jakarta.enterprise.inject.spi.Extension similarity index 100% rename from archetype/java-ee-sample/src/main/resources/archetype-resources/src/test/resources/META-INF/services/javax.enterprise.inject.spi.Extension rename to archetype/jakarta-ee-sample/src/main/resources/archetype-resources/src/test/resources/META-INF/services/jakarta.enterprise.inject.spi.Extension diff --git a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/model/Cat.java b/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/model/Cat.java deleted file mode 100644 index abdb90ab73..0000000000 --- a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/model/Cat.java +++ /dev/null @@ -1,98 +0,0 @@ -/* - * SPDX-License-Identifier: Apache-2.0 - * Copyright Blazebit - */ - -package ${package}.model; - -import java.util.HashSet; -import java.util.Set; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; - -@Entity -public class Cat { - - @Id - @GeneratedValue - private Long id; - private String name; - private Integer age; - @ManyToOne(fetch = FetchType.LAZY, optional = true) - private Person owner; - @ManyToOne(fetch = FetchType.LAZY, optional = true) - private Cat mother; - @ManyToOne(fetch = FetchType.LAZY, optional = true) - private Cat father; - @ManyToMany - private Set kittens = new HashSet<>(); - - public Cat() { - } - - public Cat(String name, Integer age, Person owner) { - this.name = name; - this.age = age; - this.owner = owner; - } - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Integer getAge() { - return age; - } - - public void setAge(Integer age) { - this.age = age; - } - - public Person getOwner() { - return owner; - } - - public void setOwner(Person owner) { - this.owner = owner; - } - - public Cat getMother() { - return mother; - } - - public void setMother(Cat mother) { - this.mother = mother; - } - - public Cat getFather() { - return father; - } - - public void setFather(Cat father) { - this.father = father; - } - - public Set getKittens() { - return kittens; - } - - public void setKittens(Set kittens) { - this.kittens = kittens; - } -} diff --git a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/model/Person.java b/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/model/Person.java deleted file mode 100644 index 6e55200ef6..0000000000 --- a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/model/Person.java +++ /dev/null @@ -1,55 +0,0 @@ -/* - * SPDX-License-Identifier: Apache-2.0 - * Copyright Blazebit - */ - -package ${package}.model; - -import java.util.HashSet; -import java.util.Set; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.OneToMany; - -@Entity -public class Person { - - @Id - @GeneratedValue - private Long id; - private String name; - @OneToMany(mappedBy = "owner") - private Set kittens = new HashSet<>(); - - public Person() { - } - - public Person(String name) { - this.name = name; - } - - public Long getId() { - return id; - } - - public void setId(Long id) { - this.id = id; - } - - public String getName() { - return name; - } - - public void setName(String name) { - this.name = name; - } - - public Set getKittens() { - return kittens; - } - - public void setKittens(Set kittens) { - this.kittens = kittens; - } -} diff --git a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/view/CatSimpleView.java b/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/view/CatSimpleView.java deleted file mode 100644 index 440e856e98..0000000000 --- a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/view/CatSimpleView.java +++ /dev/null @@ -1,18 +0,0 @@ -/* - * SPDX-License-Identifier: Apache-2.0 - * Copyright Blazebit - */ - -package ${package}.view; - -import com.blazebit.persistence.view.*; -import ${package}.model.*; - -@EntityView(Cat.class) -public interface CatSimpleView { - - @IdMapping - Long getId(); - - String getName(); -} diff --git a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/view/CatWithOwnerView.java b/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/view/CatWithOwnerView.java deleted file mode 100644 index e436338b7b..0000000000 --- a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/view/CatWithOwnerView.java +++ /dev/null @@ -1,16 +0,0 @@ -/* - * SPDX-License-Identifier: Apache-2.0 - * Copyright Blazebit - */ - -package ${package}.view; - -import com.blazebit.persistence.view.*; -import ${package}.model.*; - -@EntityView(Cat.class) -public interface CatWithOwnerView extends CatSimpleView { - - PersonSimpleView getOwner(); - -} diff --git a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/view/PersonSimpleView.java b/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/view/PersonSimpleView.java deleted file mode 100644 index 82b6d5cff4..0000000000 --- a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/java/view/PersonSimpleView.java +++ /dev/null @@ -1,19 +0,0 @@ -/* - * SPDX-License-Identifier: Apache-2.0 - * Copyright Blazebit - */ - -package ${package}.view; - -import com.blazebit.persistence.view.*; -import ${package}.model.*; - -@EntityView(Person.class) -public interface PersonSimpleView { - - @IdMapping - Long getId(); - - String getName(); - -} diff --git a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/beans.xml b/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/beans.xml deleted file mode 100644 index dc74ca17f4..0000000000 --- a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/beans.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - \ No newline at end of file diff --git a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml b/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml deleted file mode 100644 index 9ae1c0f769..0000000000 --- a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml +++ /dev/null @@ -1,19 +0,0 @@ - - - - - false - - - - - - - - - - diff --git a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/test/resources/META-INF/beans.xml b/archetype/java-ee-sample/src/main/resources/archetype-resources/src/test/resources/META-INF/beans.xml deleted file mode 100644 index dc74ca17f4..0000000000 --- a/archetype/java-ee-sample/src/main/resources/archetype-resources/src/test/resources/META-INF/beans.xml +++ /dev/null @@ -1,8 +0,0 @@ - - - - \ No newline at end of file diff --git a/archetype/pom.xml b/archetype/pom.xml index 3b63b7c0df..b4ad65a981 100644 --- a/archetype/pom.xml +++ b/archetype/pom.xml @@ -23,9 +23,6 @@ spring-data-sample spring-boot-sample deltaspike-data-sample - java-ee-sample - - core-sample-jakarta - entity-view-sample-jakarta + jakarta-ee-sample \ No newline at end of file diff --git a/archetype/spring-boot-sample/src/main/resources/archetype-resources/pom.xml b/archetype/spring-boot-sample/src/main/resources/archetype-resources/pom.xml index 5a48f32085..82431c0569 100644 --- a/archetype/spring-boot-sample/src/main/resources/archetype-resources/pom.xml +++ b/archetype/spring-boot-sample/src/main/resources/archetype-resources/pom.xml @@ -9,7 +9,7 @@ org.springframework.boot spring-boot-starter-parent - 2.4.0 + ${version.spring-data-latest-spring-boot} \${groupId} @@ -21,10 +21,11 @@ UTF-8 - 1.8 - 1.8 + 17 + 17 ${project.version} + ${version.hibernate-6.6} @@ -60,7 +61,7 @@ com.blazebit - blaze-persistence-integration-hibernate-5.4 + blaze-persistence-integration-hibernate-6.2 @@ -80,7 +81,7 @@ com.blazebit - blaze-persistence-integration-entity-view-spring + blaze-persistence-integration-entity-view-spring-6.0 @@ -98,46 +99,64 @@ com.blazebit - blaze-persistence-integration-spring-data-2.4 + blaze-persistence-integration-spring-data-3.3 - + + jakarta.persistence + jakarta.persistence-api + ${version.jpa-api} + provided + + + jakarta.transaction + jakarta.transaction-api + ${version.jta-api} + provided + + + jakarta.validation + jakarta.validation-api + ${version.validation-api} + provided + jakarta.xml.bind jakarta.xml.bind-api - 2.3.3 + ${version.jaxb-api} + provided com.sun.xml.bind jaxb-impl - 2.3.3 + ${version.jaxb} + provided - jakarta.transaction - jakarta.transaction-api - 1.3.3 + jakarta.annotation + jakarta.annotation-api + ${version.annotation-api} + provided jakarta.activation jakarta.activation-api - 1.2.2 - - - jakarta.annotation - jakarta.annotation-api - 1.3.5 + ${version.activation-api} + provided - junit - junit + org.junit.jupiter + junit-jupiter + ${version.junit-jupiter} test com.h2database h2 - 1.4.200 + ${h2.version} + test org.springframework @@ -151,35 +170,23 @@ org.springframework.boot spring-boot-maven-plugin + + org.apache.maven.plugins + maven-compiler-plugin + ${version.compiler.plugin} + + --enable-preview + + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + false + --enable-preview + + - - - jdk11+ - - [11,) - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.0 - - --enable-preview - - - - org.apache.maven.plugins - maven-surefire-plugin - 3.0.0-M3 - - false - --enable-preview - - - - - - \ No newline at end of file diff --git a/archetype/spring-boot-sample/src/main/resources/archetype-resources/src/main/java/config/BlazePersistenceConfiguration.java b/archetype/spring-boot-sample/src/main/resources/archetype-resources/src/main/java/config/BlazePersistenceConfiguration.java index 0ea6e6a34b..2dc1707ab4 100644 --- a/archetype/spring-boot-sample/src/main/resources/archetype-resources/src/main/java/config/BlazePersistenceConfiguration.java +++ b/archetype/spring-boot-sample/src/main/resources/archetype-resources/src/main/java/config/BlazePersistenceConfiguration.java @@ -18,8 +18,8 @@ import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Scope; -import javax.persistence.EntityManagerFactory; -import javax.persistence.PersistenceUnit; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.PersistenceUnit; @Configuration @EnableEntityViews(basePackages = { "${package}.view"}) diff --git a/archetype/spring-boot-sample/src/main/resources/archetype-resources/src/main/java/model/Cat.java b/archetype/spring-boot-sample/src/main/resources/archetype-resources/src/main/java/model/Cat.java index abdb90ab73..427a8c3df9 100644 --- a/archetype/spring-boot-sample/src/main/resources/archetype-resources/src/main/java/model/Cat.java +++ b/archetype/spring-boot-sample/src/main/resources/archetype-resources/src/main/java/model/Cat.java @@ -7,12 +7,12 @@ import java.util.HashSet; import java.util.Set; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; @Entity public class Cat { diff --git a/archetype/spring-boot-sample/src/main/resources/archetype-resources/src/main/java/model/Person.java b/archetype/spring-boot-sample/src/main/resources/archetype-resources/src/main/java/model/Person.java index 6e55200ef6..add2b18d41 100644 --- a/archetype/spring-boot-sample/src/main/resources/archetype-resources/src/main/java/model/Person.java +++ b/archetype/spring-boot-sample/src/main/resources/archetype-resources/src/main/java/model/Person.java @@ -7,10 +7,10 @@ import java.util.HashSet; import java.util.Set; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.OneToMany; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; @Entity public class Person { diff --git a/archetype/spring-boot-sample/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java b/archetype/spring-boot-sample/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java index 030b6dc781..b5bdd57707 100644 --- a/archetype/spring-boot-sample/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java +++ b/archetype/spring-boot-sample/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java @@ -5,14 +5,14 @@ package ${package}.sample; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import ${package}.model.Cat; import ${package}.model.Person; import ${package}.view.CatSimpleView; import ${package}.view.CatWithOwnerView; import ${package}.view.PersonSimpleView; -import org.junit.After; -import org.junit.Before; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.transaction.annotation.Transactional; @@ -22,7 +22,7 @@ public abstract class AbstractSampleTest { @Autowired protected EntityManager em; - @Before + @BeforeEach public void init() { Person p1 = new Person("P1"); Person p2 = new Person("P2"); diff --git a/archetype/spring-boot-sample/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java b/archetype/spring-boot-sample/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java index 8da11333c2..827e032a9c 100644 --- a/archetype/spring-boot-sample/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java +++ b/archetype/spring-boot-sample/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java @@ -12,17 +12,17 @@ import ${package}.model.Person; import ${package}.view.CatSimpleView; import ${package}.repository.CatSimpleViewRepository; -import org.junit.Assert; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; +import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.*; +import org.junit.jupiter.api.extension.ExtendWith; +import org.springframework.test.context.junit.jupiter.SpringExtension; import org.springframework.test.context.*; import org.springframework.context.annotation.*; import org.springframework.beans.factory.annotation.*; import com.blazebit.persistence.integration.view.spring.EnableEntityViews; import com.blazebit.persistence.spring.data.repository.config.EnableBlazeRepositories; -@RunWith(SpringJUnit4ClassRunner.class) +@ExtendWith(SpringExtension.class) @ContextConfiguration(classes = SampleTest.TestConfig.class) public class SampleTest extends AbstractSampleTest { @@ -34,7 +34,7 @@ public void sampleTest() { final Iterable listIterable = catSimpleViewRepository.findAll(); final List list = new ArrayList<>(); listIterable.forEach(view -> list.add(view)); - Assert.assertEquals(6, list.size()); + assertEquals(6, list.size()); } @Configuration diff --git a/archetype/spring-data-sample/src/main/resources/archetype-resources/pom.xml b/archetype/spring-data-sample/src/main/resources/archetype-resources/pom.xml index 2d16f708a2..3a43bc8cff 100644 --- a/archetype/spring-data-sample/src/main/resources/archetype-resources/pom.xml +++ b/archetype/spring-data-sample/src/main/resources/archetype-resources/pom.xml @@ -16,11 +16,13 @@ UTF-8 - 1.8 - 1.8 + 17 + 17 ${project.version} - ${version.spring-data-2.4-spring} + ${version.hibernate-6.6} + ${version.spring-data-latest-spring} + ${version.spring-data-latest} @@ -44,9 +46,9 @@ - org.hibernate - hibernate-entitymanager - 5.4.6.Final + org.hibernate.orm + hibernate-core + \${version.hibernate} @@ -60,7 +62,7 @@ com.blazebit - blaze-persistence-integration-hibernate-5.4 + blaze-persistence-integration-hibernate-6.2 @@ -80,7 +82,7 @@ com.blazebit - blaze-persistence-integration-entity-view-spring + blaze-persistence-integration-entity-view-spring-6.0 @@ -95,57 +97,68 @@ org.springframework.data spring-data-jpa - ${version.spring-data-2.4} + \${version.spring.data} provided com.blazebit - blaze-persistence-integration-spring-data-2.4 + blaze-persistence-integration-spring-data-3.3 - + + jakarta.persistence + jakarta.persistence-api + ${version.jpa-api} + provided + + + jakarta.transaction + jakarta.transaction-api + ${version.jta-api} + provided + + + jakarta.validation + jakarta.validation-api + ${version.validation-api} + provided + jakarta.xml.bind jakarta.xml.bind-api - 2.3.3 + ${version.jaxb-api} provided com.sun.xml.bind jaxb-impl - 2.3.3 + ${version.jaxb} provided - jakarta.transaction - jakarta.transaction-api - 1.3.3 + jakarta.annotation + jakarta.annotation-api + ${version.annotation-api} provided jakarta.activation jakarta.activation-api - 1.2.2 - provided - - - jakarta.annotation - jakarta.annotation-api - 1.3.5 + ${version.activation-api} provided - junit - junit - 4.12 + org.junit.jupiter + junit-jupiter + ${version.junit-jupiter} test com.h2database h2 - 1.4.200 + ${h2.version} test @@ -154,33 +167,25 @@ test - - - jdk11+ - - [11,) - - - - - org.apache.maven.plugins - maven-compiler-plugin - 3.8.0 - - --enable-preview - - - - org.apache.maven.plugins - maven-surefire-plugin - 3.0.0-M3 - - false - --enable-preview - - - - - - + + + + org.apache.maven.plugins + maven-compiler-plugin + ${version.compiler.plugin} + + --enable-preview + + + + org.apache.maven.plugins + maven-surefire-plugin + ${version.surefire.plugin} + + false + --enable-preview + + + + \ No newline at end of file diff --git a/archetype/spring-data-sample/src/main/resources/archetype-resources/src/main/java/config/BlazePersistenceConfiguration.java b/archetype/spring-data-sample/src/main/resources/archetype-resources/src/main/java/config/BlazePersistenceConfiguration.java index 0ea6e6a34b..2dc1707ab4 100644 --- a/archetype/spring-data-sample/src/main/resources/archetype-resources/src/main/java/config/BlazePersistenceConfiguration.java +++ b/archetype/spring-data-sample/src/main/resources/archetype-resources/src/main/java/config/BlazePersistenceConfiguration.java @@ -18,8 +18,8 @@ import org.springframework.context.annotation.Lazy; import org.springframework.context.annotation.Scope; -import javax.persistence.EntityManagerFactory; -import javax.persistence.PersistenceUnit; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.PersistenceUnit; @Configuration @EnableEntityViews(basePackages = { "${package}.view"}) diff --git a/archetype/spring-data-sample/src/main/resources/archetype-resources/src/main/java/model/Cat.java b/archetype/spring-data-sample/src/main/resources/archetype-resources/src/main/java/model/Cat.java index abdb90ab73..427a8c3df9 100644 --- a/archetype/spring-data-sample/src/main/resources/archetype-resources/src/main/java/model/Cat.java +++ b/archetype/spring-data-sample/src/main/resources/archetype-resources/src/main/java/model/Cat.java @@ -7,12 +7,12 @@ import java.util.HashSet; import java.util.Set; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; @Entity public class Cat { diff --git a/archetype/spring-data-sample/src/main/resources/archetype-resources/src/main/java/model/Person.java b/archetype/spring-data-sample/src/main/resources/archetype-resources/src/main/java/model/Person.java index 6e55200ef6..add2b18d41 100644 --- a/archetype/spring-data-sample/src/main/resources/archetype-resources/src/main/java/model/Person.java +++ b/archetype/spring-data-sample/src/main/resources/archetype-resources/src/main/java/model/Person.java @@ -7,10 +7,10 @@ import java.util.HashSet; import java.util.Set; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.OneToMany; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.OneToMany; @Entity public class Person { diff --git a/archetype/spring-data-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/application-config.xml b/archetype/spring-data-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/application-config.xml index b2461c6e12..fff7662ea2 100644 --- a/archetype/spring-data-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/application-config.xml +++ b/archetype/spring-data-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/application-config.xml @@ -12,12 +12,12 @@ http://www.springframework.org/schema/tx http://www.springframework.org/schema/t - + - + diff --git a/archetype/spring-data-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml b/archetype/spring-data-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml index 0ecc6846dc..ad21f65534 100644 --- a/archetype/spring-data-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml +++ b/archetype/spring-data-sample/src/main/resources/archetype-resources/src/main/resources/META-INF/persistence.xml @@ -11,11 +11,11 @@ false - - - - - + + + + + diff --git a/archetype/spring-data-sample/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java b/archetype/spring-data-sample/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java index 47b5e53ab9..91bccb263f 100644 --- a/archetype/spring-data-sample/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java +++ b/archetype/spring-data-sample/src/main/resources/archetype-resources/src/test/java/sample/AbstractSampleTest.java @@ -6,23 +6,23 @@ package ${package}.sample; import java.util.function.Consumer; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.EntityTransaction; -import javax.persistence.Persistence; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.EntityTransaction; +import jakarta.persistence.Persistence; import ${package}.model.Cat; import ${package}.model.Person; import ${package}.view.CatSimpleView; import ${package}.view.CatWithOwnerView; import ${package}.view.PersonSimpleView; -import org.junit.After; -import org.junit.Before; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; public abstract class AbstractSampleTest { protected EntityManagerFactory emf; - @Before + @BeforeEach public void init() { emf = Persistence.createEntityManagerFactory("default"); @@ -97,7 +97,7 @@ protected void transactional(Consumer consumer) { } } - @After + @AfterEach public void destruct() { emf.close(); } diff --git a/archetype/spring-data-sample/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java b/archetype/spring-data-sample/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java index b5d2b175a1..308c98f3b4 100644 --- a/archetype/spring-data-sample/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java +++ b/archetype/spring-data-sample/src/main/resources/archetype-resources/src/test/java/sample/SampleTest.java @@ -12,17 +12,17 @@ import ${package}.model.Person; import ${package}.view.CatSimpleView; import ${package}.repository.CatSimpleViewRepository; -import org.junit.Assert; -import org.junit.Test; -import org.junit.runner.RunWith; -import org.springframework.test.context.junit4.SpringJUnit4ClassRunner; +import org.junit.jupiter.api.Test; +import static org.junit.jupiter.api.Assertions.*; +import org.junit.jupiter.api.extension.ExtendWith; +import org.springframework.test.context.junit.jupiter.SpringExtension; import org.springframework.test.context.*; import org.springframework.context.annotation.*; import org.springframework.beans.factory.annotation.*; import com.blazebit.persistence.integration.view.spring.EnableEntityViews; import com.blazebit.persistence.spring.data.repository.config.EnableBlazeRepositories; -@RunWith(SpringJUnit4ClassRunner.class) +@ExtendWith(SpringExtension.class) @ContextConfiguration(classes = SampleTest.TestConfig.class) public class SampleTest extends AbstractSampleTest { @@ -35,7 +35,7 @@ public void sampleTest() { final Iterable listIterable = catSimpleViewRepository.findAll(); final List list = new ArrayList<>(); listIterable.forEach(view -> list.add(view)); - Assert.assertEquals(6, list.size()); + assertEquals(6, list.size()); }); } @@ -43,9 +43,7 @@ public void sampleTest() { @ComponentScan("${package}") @ImportResource("/META-INF/application-config.xml") @EnableEntityViews(basePackages = { "${package}.view"}) - @EnableBlazeRepositories( - basePackages = "${package}.repository", - entityManagerFactoryRef = "myEmf") + @EnableBlazeRepositories(basePackages = "${package}.repository") static class TestConfig { } } diff --git a/build-local.sh b/build-local.sh index c306278dbd..7ce75c3835 100755 --- a/build-local.sh +++ b/build-local.sh @@ -11,20 +11,18 @@ BUILD="$3" PROPERTIES= if [ "$JPA_PROVIDER" == "" ]; then - echo "JPA provider (hibernate-4.2, hibernate-4.3, hibernate-5.0, hibernate-5.1, hibernate-5.2, datanucleus-4, datanucleus-5, eclipselink, openjpa) [hibernate-5.2]: " + echo "JPA provider (hibernate-6.6, hibernate-6.4, hibernate-6.2, eclipselink) [hibernate-6.6]: " read input Blazebit Persistence Checkstyle Rules com.blazebit.persistence.checkstyle.rules - 1.8 diff --git a/checkstyle-rules/src/main/resources/blaze-persistence/checkstyle-suppressions.xml b/checkstyle-rules/src/main/resources/blaze-persistence/checkstyle-suppressions.xml index 027e0a0eea..1e89d0e63e 100644 --- a/checkstyle-rules/src/main/resources/blaze-persistence/checkstyle-suppressions.xml +++ b/checkstyle-rules/src/main/resources/blaze-persistence/checkstyle-suppressions.xml @@ -28,6 +28,8 @@ + + @@ -38,7 +40,7 @@ - + diff --git a/ci/build-github-latest.sh b/ci/build-github-latest.sh index f7eb31f458..518c4213bb 100755 --- a/ci/build-github-latest.sh +++ b/ci/build-github-latest.sh @@ -12,18 +12,14 @@ elif [ "$COMPONENT" == 'hibernate-6.4' ]; then export JPAPROVIDER="hibernate-6.4" export SPRING_DATA="spring-data-3.2.x" export PROPERTIES="-s $DIR/latest-settings.xml -Dversion.hibernate-6.4=[6.4,6.5.Alpha)" -elif [ "$COMPONENT" == 'hibernate-6.5' ]; then - export JPAPROVIDER="hibernate-6.5" - export SPRING_DATA="spring-data-3.3.x" - export PROPERTIES="-s $DIR/latest-settings.xml -Dversion.hibernate-6.5=[6.5,6.6.Alpha)" elif [ "$COMPONENT" == 'hibernate-6.6' ]; then export JPAPROVIDER="hibernate-6.6" export SPRING_DATA="spring-data-3.3.x" - export PROPERTIES="-s $DIR/latest-settings.xml -Dversion.hibernate-6.6=[6.6,6.6.Alpha)" + export PROPERTIES="-s $DIR/latest-settings.xml -Dversion.hibernate-6.6=[6.6,7.0.Alpha)" else - export JPAPROVIDER="hibernate-6.2" - export SPRING_DATA="spring-data-3.1.x" - export PROPERTIES="-Dversion.spring-data-3.1=[3,4.Alpha) -Dversion.spring-data-3.1-spring=[6.0,6.1.Alpha) -Dversion.spring-data-3.1-spring-boot=[3,4.Alpha)" + export JPAPROVIDER="hibernate-6.6" + export SPRING_DATA="spring-data-3.3.x" + export PROPERTIES="-Dversion.spring-data-3.3=[3,4.Alpha) -Dversion.spring-data-3.3-spring=[6.0,6.1.Alpha) -Dversion.spring-data-3.3-spring-boot=[3,4.Alpha)" fi exec bash $DIR/../build.sh \ No newline at end of file diff --git a/ci/build-github.sh b/ci/build-github.sh index 950920cb08..36c7c26151 100755 --- a/ci/build-github.sh +++ b/ci/build-github.sh @@ -5,8 +5,6 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" java -version if [ "$RDBMS" == 'mysql' ]; then - bash $DIR/../docker_db.sh mysql_5_7 -elif [ "$RDBMS" == 'mysql8' ]; then bash $DIR/../docker_db.sh mysql elif [ "$RDBMS" == 'postgresql' ]; then bash $DIR/../docker_db.sh postgresql diff --git a/ci/build-travis.sh b/ci/build-travis.sh deleted file mode 100755 index 3728bd4e08..0000000000 --- a/ci/build-travis.sh +++ /dev/null @@ -1,32 +0,0 @@ -#! /bin/bash - -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" - -java -version - -if [ "$NATIVE" = "true" ]; then - sudo add-apt-repository -y ppa:jonathonf/python-3.6 - sudo apt-get update - sudo apt-get install -y python3-pip - yes | sudo pip3 install git+https://github.com/naftulikay/travis-pls - source setup-graalvm.sh -fi - -if [ "$RDBMS" == 'mysql' ]; then - sudo service mysql stop - bash $DIR/../docker_db.sh mysql_5_7 -elif [ "$RDBMS" == 'mysql8' ]; then - sudo service mysql stop - bash $DIR/../docker_db.sh mysql -elif [ "$RDBMS" == 'postgresql' ]; then - sudo service postgres stop - bash $DIR/../docker_db.sh postgresql -elif [ "$RDBMS" == 'db2' ]; then - bash $DIR/../docker_db.sh db2 -elif [ "$RDBMS" == 'oracle' ]; then - bash $DIR/../docker_db.sh oracle -elif [ "$RDBMS" == 'mssql' ]; then - bash $DIR/../docker_db.sh mssql -fi - -exec bash $DIR/../build.sh \ No newline at end of file diff --git a/ci/deploy-snapshot-travis.sh b/ci/deploy-snapshot-travis.sh deleted file mode 100755 index 76a6417ebc..0000000000 --- a/ci/deploy-snapshot-travis.sh +++ /dev/null @@ -1,15 +0,0 @@ -#!/bin/bash -set -e -set -x - -DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" - -if [ "$TRAVIS_REPO_SLUG" == "Blazebit/blaze-persistence" ] && - [ "$TRAVIS_BRANCH" == "main" ] && - [ "$TRAVIS_PULL_REQUEST" == "false" ] && - [ "$SNAPSHOT_PUBLISH" == "true" ]; then - - exec bash $DIR/deploy-snapshot.sh -else - echo "Skipping snapshot deployment..." -fi diff --git a/ci/deploy-snapshot.sh b/ci/deploy-snapshot.sh index b74b622e2d..ec2b3a012a 100755 --- a/ci/deploy-snapshot.sh +++ b/ci/deploy-snapshot.sh @@ -6,4 +6,4 @@ DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null 2>&1 && pwd )" echo "Starting snapshot deployment..." export MAVEN_OPTS="$MAVEN_OPTS -Dorg.slf4j.simpleLogger.log.org.apache.maven.cli.transfer.Slf4jMavenTransferListener=warn" -exec $DIR/../mvnw -B -P "blazebit-release,spring-data-2.7.x,deltaspike-1.9,hibernate-5.6" -s $DIR/deploy-settings.xml -DperformRelease -DskipTests -DskipITs -Dgpg.skip=true -Dquiet=true -Djdk8.home=$JDK8_HOME clean deploy +exec $DIR/../mvnw -B -P "blazebit-release,spring-data-3.3.x,deltaspike-2.0,hibernate-6.6" -s $DIR/deploy-settings.xml -DperformRelease -DskipTests -DskipITs -Dgpg.skip=true -Dquiet=true clean deploy diff --git a/core/api-jakarta/pom.xml b/core/api-jakarta/pom.xml deleted file mode 100644 index b001f7b5d2..0000000000 --- a/core/api-jakarta/pom.xml +++ /dev/null @@ -1,248 +0,0 @@ - - - - - 4.0.0 - - - com.blazebit - blaze-persistence-core - 1.6.15-SNAPSHOT - ../pom.xml - - - blaze-persistence-core-api-jakarta - jar - - - com.blazebit.persistence.core - - - - - ${project.groupId} - blaze-persistence-core-api - provided - - - jakarta.persistence - jakarta.persistence-api - ${version.jakarta-jpa-api} - provided - - - - - - - maven-antrun-plugin - - - transform-jar - package - - run - - - - - - - - - - - - - - - - - - - - - - transform-sources-jar - package - - run - - - - - - - - - - - - - - - - - - - - - - - - transform-javadoc - package - - run - - - - - - - - - - - - - - - - - - - - - - - - - unpack-sources - package - - - - - - - run - - - - - unpack-classes - package - - - - - - - run - - - - - - org.eclipse.transformer - org.eclipse.transformer.cli - 0.5.0 - - - ant-contrib - ant-contrib - 1.0b3 - - - ant - ant - - - - - biz.aQute.bnd - biz.aQute.bnd.transform - ${version.bnd} - compile - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - attach-artifacts - package - - attach-artifact - - - - - ${project.build.directory}/${project.build.finalName}-sources.jar - sources - jar - - - - - - intellij-fake-attach-source - package - - add-source - - - - ${project.build.directory}/java/ - - - - - - - - - - blazebit-release - - - - org.codehaus.mojo - build-helper-maven-plugin - - - attach-artifacts - package - - attach-artifact - - - - - ${project.build.directory}/${project.build.finalName}-sources.jar - sources - jar - - - ${project.build.directory}/${project.build.finalName}-javadoc.jar - javadoc - jar - - - - - - - - - - - - diff --git a/core/api-jar/pom.xml b/core/api-jar/pom.xml deleted file mode 100644 index 5c52cf371b..0000000000 --- a/core/api-jar/pom.xml +++ /dev/null @@ -1,117 +0,0 @@ - - - - - 4.0.0 - - - com.blazebit - blaze-persistence-core - 1.6.15-SNAPSHOT - ../pom.xml - - - blaze-persistence-core-api-jar - jar - - - com.blazebit.persistence.core - - - - - ${project.groupId} - blaze-persistence-core-api - - - - - - - org.apache.maven.plugins - maven-shade-plugin - - - package - - shade - - - true - - - ${project.groupId}:blaze-persistence-core-api - - META-INF/versions/** - module-info.class - - - - - - - - - - - - - blazebit-release - - - - maven-dependency-plugin - - - shade-javadoc - - copy - - - - - ${project.groupId} - blaze-persistence-core-api - ${project.version} - jar - javadoc - true - ${project.build.directory} - ${project.artifactId}-${project.version}-javadoc.jar - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - attach-artifacts - package - - attach-artifact - - - - - ${project.build.directory}/${project.artifactId}-${project.version}-javadoc.jar - javadoc - jar - - - - - - - - - - - - diff --git a/core/api/pom.xml b/core/api/pom.xml index 6d67786de3..31c5f7b314 100644 --- a/core/api/pom.xml +++ b/core/api/pom.xml @@ -24,97 +24,11 @@ - - org.apache.openejb - javaee-api + jakarta.persistence + jakarta.persistence-api provided - - - - org.moditect - moditect-maven-plugin - - - add-module-infos - package - - add-module-info - - - - - module ${module.name} { - requires transitive java.sql; - requires transitive java.persistence; - exports com.blazebit.persistence; - exports com.blazebit.persistence.spi; - exports com.blazebit.persistence.internal; - uses com.blazebit.persistence.spi.CriteriaBuilderConfigurationProvider; - } - - - - - - - - - - - - java9 - - [1.9,) - - - src/main/java9 - - - - - maven-antrun-plugin - - - compile-java9 - compile - - - - - - - - run - - - - - - maven-jar-plugin - true - - - - true - - - - - - default-jar - package - - jar - - - - - - - - diff --git a/core/api/src/main/java/com/blazebit/persistence/BaseSubqueryBuilder.java b/core/api/src/main/java/com/blazebit/persistence/BaseSubqueryBuilder.java index 3c903f9cb5..54cb34bd25 100644 --- a/core/api/src/main/java/com/blazebit/persistence/BaseSubqueryBuilder.java +++ b/core/api/src/main/java/com/blazebit/persistence/BaseSubqueryBuilder.java @@ -5,7 +5,7 @@ package com.blazebit.persistence; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; /** * A builder for subquery criteria queries. diff --git a/core/api/src/main/java/com/blazebit/persistence/CommonQueryBuilder.java b/core/api/src/main/java/com/blazebit/persistence/CommonQueryBuilder.java index 2cc7a5e0be..5c4c39df81 100644 --- a/core/api/src/main/java/com/blazebit/persistence/CommonQueryBuilder.java +++ b/core/api/src/main/java/com/blazebit/persistence/CommonQueryBuilder.java @@ -9,7 +9,7 @@ import com.blazebit.persistence.spi.JpqlMacro; import com.blazebit.persistence.spi.ServiceProvider; -import javax.persistence.metamodel.Metamodel; +import jakarta.persistence.metamodel.Metamodel; import java.util.Map; /** diff --git a/core/api/src/main/java/com/blazebit/persistence/ConfigurationProperties.java b/core/api/src/main/java/com/blazebit/persistence/ConfigurationProperties.java index 94f75014a6..8a5eee3edc 100644 --- a/core/api/src/main/java/com/blazebit/persistence/ConfigurationProperties.java +++ b/core/api/src/main/java/com/blazebit/persistence/ConfigurationProperties.java @@ -191,7 +191,7 @@ public final class ConfigurationProperties { public static final String CRITERIA_NEGATION_WRAPPER = "com.blazebit.persistence.criteria_negation_wrapper"; /** - * If set to true, values passed to the JPA {@link javax.persistence.criteria.CriteriaBuilder} API are rendered as parameters, + * If set to true, values passed to the JPA {@link jakarta.persistence.criteria.CriteriaBuilder} API are rendered as parameters, * otherwise values are rendered as literals. * Valid values for this property are true and false. * Default is true. diff --git a/core/api/src/main/java/com/blazebit/persistence/CriteriaBuilder.java b/core/api/src/main/java/com/blazebit/persistence/CriteriaBuilder.java index 2b78b36848..133475f5c0 100644 --- a/core/api/src/main/java/com/blazebit/persistence/CriteriaBuilder.java +++ b/core/api/src/main/java/com/blazebit/persistence/CriteriaBuilder.java @@ -5,7 +5,7 @@ package com.blazebit.persistence; -import javax.persistence.TypedQuery; +import jakarta.persistence.TypedQuery; /** * A builder for criteria queries. This is the entry point for building queries. diff --git a/core/api/src/main/java/com/blazebit/persistence/CriteriaBuilderFactory.java b/core/api/src/main/java/com/blazebit/persistence/CriteriaBuilderFactory.java index 56292e1ce8..dc7f3d7cca 100644 --- a/core/api/src/main/java/com/blazebit/persistence/CriteriaBuilderFactory.java +++ b/core/api/src/main/java/com/blazebit/persistence/CriteriaBuilderFactory.java @@ -9,7 +9,7 @@ import com.blazebit.persistence.spi.JpqlFunction; import com.blazebit.persistence.spi.ServiceProvider; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import java.util.Map; /** @@ -41,7 +41,7 @@ public interface CriteriaBuilderFactory extends ServiceProvider, ConfigurationSo public StartOngoingSetOperationCriteriaBuilder> startSet(EntityManager entityManager, Class resultClass); /** - * Like {@link CriteriaBuilderFactory#create(javax.persistence.EntityManager, java.lang.Class, java.lang.String)} but with the alias + * Like {@link CriteriaBuilderFactory#create(jakarta.persistence.EntityManager, java.lang.Class, java.lang.String)} but with the alias * equivalent to the camel cased result of what {@link Class#getSimpleName()} of the result class returns. * * @param entityManager The entity manager to use for the criteria builder @@ -65,7 +65,7 @@ public interface CriteriaBuilderFactory extends ServiceProvider, ConfigurationSo public CriteriaBuilder create(EntityManager entityManager, Class resultClass, String alias); /** - * Like {@link CriteriaBuilderFactory#delete(javax.persistence.EntityManager, java.lang.Class, java.lang.String)} but with the alias + * Like {@link CriteriaBuilderFactory#delete(jakarta.persistence.EntityManager, java.lang.Class, java.lang.String)} but with the alias * equivalent to the camel cased result of what {@link Class#getSimpleName()} of the delete class returns. * * @param entityManager The entity manager to use for the delete criteria builder @@ -89,7 +89,7 @@ public interface CriteriaBuilderFactory extends ServiceProvider, ConfigurationSo public DeleteCriteriaBuilder delete(EntityManager entityManager, Class deleteClass, String alias); /** - * Like {@link CriteriaBuilderFactory#deleteCollection(javax.persistence.EntityManager, java.lang.Class, java.lang.String, java.lang.String)} but with the alias + * Like {@link CriteriaBuilderFactory#deleteCollection(jakarta.persistence.EntityManager, java.lang.Class, java.lang.String, java.lang.String)} but with the alias * equivalent to the camel cased result of what {@link Class#getSimpleName()} of the delete owner class returns. * * @param entityManager The entity manager to use for the delete criteria builder @@ -116,7 +116,7 @@ public interface CriteriaBuilderFactory extends ServiceProvider, ConfigurationSo public DeleteCriteriaBuilder deleteCollection(EntityManager entityManager, Class deleteOwnerClass, String alias, String collectionName); /** - * Like {@link CriteriaBuilderFactory#update(javax.persistence.EntityManager, java.lang.Class, java.lang.String)} but with the alias + * Like {@link CriteriaBuilderFactory#update(jakarta.persistence.EntityManager, java.lang.Class, java.lang.String)} but with the alias * equivalent to the camel cased result of what {@link Class#getSimpleName()} of the update class returns. * * @param entityManager The entity manager to use for the update criteria builder @@ -140,7 +140,7 @@ public interface CriteriaBuilderFactory extends ServiceProvider, ConfigurationSo public UpdateCriteriaBuilder update(EntityManager entityManager, Class updateClass, String alias); /** - * Like {@link CriteriaBuilderFactory#updateCollection(javax.persistence.EntityManager, java.lang.Class, java.lang.String, java.lang.String)} but with the alias + * Like {@link CriteriaBuilderFactory#updateCollection(jakarta.persistence.EntityManager, java.lang.Class, java.lang.String, java.lang.String)} but with the alias * equivalent to the camel cased result of what {@link Class#getSimpleName()} of the delete owner class returns. * * @param entityManager The entity manager to use for the update criteria builder diff --git a/core/api/src/main/java/com/blazebit/persistence/DefaultPackageOpener.java b/core/api/src/main/java/com/blazebit/persistence/DefaultPackageOpener.java index 69101cd343..bfdd3c644a 100644 --- a/core/api/src/main/java/com/blazebit/persistence/DefaultPackageOpener.java +++ b/core/api/src/main/java/com/blazebit/persistence/DefaultPackageOpener.java @@ -8,7 +8,7 @@ import com.blazebit.persistence.spi.PackageOpener; /** - * A no-op package opener for pre-Java 9. + * A package opener that works with Java 9 modules. * * @author Christian Beikov * @since 1.2.0 @@ -22,5 +22,9 @@ private DefaultPackageOpener() { @Override public void openPackageIfNeeded(Class targetClass, String targetPackage, Class implementationClass) { + Module targetModule = targetClass.getModule(); + if (!targetModule.isOpen(targetPackage, implementationClass.getModule())) { + targetModule.addOpens(targetPackage, implementationClass.getModule()); + } } } diff --git a/core/api/src/main/java/com/blazebit/persistence/Executable.java b/core/api/src/main/java/com/blazebit/persistence/Executable.java index 48d5a6f116..e397ac1302 100644 --- a/core/api/src/main/java/com/blazebit/persistence/Executable.java +++ b/core/api/src/main/java/com/blazebit/persistence/Executable.java @@ -5,7 +5,7 @@ package com.blazebit.persistence; -import javax.persistence.Query; +import jakarta.persistence.Query; /** * A base interface for executable query builders. diff --git a/core/api/src/main/java/com/blazebit/persistence/From.java b/core/api/src/main/java/com/blazebit/persistence/From.java index 1f2238f596..04542cf0a4 100644 --- a/core/api/src/main/java/com/blazebit/persistence/From.java +++ b/core/api/src/main/java/com/blazebit/persistence/From.java @@ -5,7 +5,7 @@ package com.blazebit.persistence; -import javax.persistence.metamodel.Type; +import jakarta.persistence.metamodel.Type; /** * CAREFUL, this is an experimental API and will change! diff --git a/core/api/src/main/java/com/blazebit/persistence/FromBaseBuilder.java b/core/api/src/main/java/com/blazebit/persistence/FromBaseBuilder.java index 581423e96f..9491b9f5c9 100644 --- a/core/api/src/main/java/com/blazebit/persistence/FromBaseBuilder.java +++ b/core/api/src/main/java/com/blazebit/persistence/FromBaseBuilder.java @@ -5,7 +5,7 @@ package com.blazebit.persistence; -import javax.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.EntityType; import java.util.Collection; /** @@ -98,7 +98,7 @@ public interface FromBaseBuilder> { * This introduces a parameter named like the given alias. * * To set the values invoke {@link CommonQueryBuilder#setParameter(String, Object)} - * or {@link javax.persistence.Query#setParameter(String, Object)} with the alias and a collection. + * or {@link jakarta.persistence.Query#setParameter(String, Object)} with the alias and a collection. * * @param valueClass The class of the basic or managed type for which to create a VALUES clause * @param alias The alias for the entity @@ -113,7 +113,7 @@ public interface FromBaseBuilder> { * This introduces a parameter named like the given alias. * * To set the values invoke {@link CommonQueryBuilder#setParameter(String, Object)} - * or {@link javax.persistence.Query#setParameter(String, Object)} with the alias and a collection. + * or {@link jakarta.persistence.Query#setParameter(String, Object)} with the alias and a collection. * * @param entityBaseClass The entity class on which the attribute is located * @param attributeName The attribute name within the entity class which to use for determining the values type @@ -131,7 +131,7 @@ public interface FromBaseBuilder> { * In contrast to {@link FromBaseBuilder#fromValues(Class, String, int)} this will only bind the id attribute. * * To set the values invoke {@link CommonQueryBuilder#setParameter(String, Object)} - * or {@link javax.persistence.Query#setParameter(String, Object)} with the alias and a collection. + * or {@link jakarta.persistence.Query#setParameter(String, Object)} with the alias and a collection. * * @param valueClass The class of the identifiable type for which to create a VALUES clause * @param alias The alias for the entity @@ -148,7 +148,7 @@ public interface FromBaseBuilder> { * In contrast to {@link FromBaseBuilder#fromValues(Class, String, int)} this will only bind the identifier attribute. * * To set the values invoke {@link CommonQueryBuilder#setParameter(String, Object)} - * or {@link javax.persistence.Query#setParameter(String, Object)} with the alias and a collection. + * or {@link jakarta.persistence.Query#setParameter(String, Object)} with the alias and a collection. * * @param valueClass The class of the identifiable type for which to create a VALUES clause * @param identifierAttribute The attribute of the entity type to consider as identifier attribute diff --git a/core/api/src/main/java/com/blazebit/persistence/FromBuilder.java b/core/api/src/main/java/com/blazebit/persistence/FromBuilder.java index c9765895a6..d0c171a5bd 100644 --- a/core/api/src/main/java/com/blazebit/persistence/FromBuilder.java +++ b/core/api/src/main/java/com/blazebit/persistence/FromBuilder.java @@ -5,7 +5,7 @@ package com.blazebit.persistence; -import javax.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.EntityType; import java.util.Collection; import java.util.Set; @@ -189,7 +189,7 @@ public interface FromBuilder> extends FromBaseBuilder joinOn(String base, Class entityClass, String alias, JoinType type); /** - * Like {@link FromBuilder#joinOn(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOn(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * the query root assumed as base. * * @param entityType The entity type to join @@ -237,7 +237,7 @@ public interface FromBuilder> extends FromBaseBuilder> joinOnSubquery(String base, Class entityClass, String alias, JoinType type); /** - * Like {@link FromBuilder#joinOnSubquery(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOnSubquery(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * the query root assumed as base. * * @param entityType The entity type to join @@ -317,7 +317,7 @@ public interface FromBuilder> extends FromBaseBuilder, ? extends Z>> Z joinOnEntitySubquery(String base, Class entityClass, String alias, String subqueryAlias, JoinType type); /** - * Like {@link FromBuilder#joinOnEntitySubquery(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOnEntitySubquery(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * the query root assumed as base. * * @param entityType The entity type to join @@ -344,7 +344,7 @@ public interface FromBuilder> extends FromBaseBuilder, ? extends Z>> Z joinOnEntitySubquery(String base, EntityType entityType, String alias, JoinType type); /** - * Like {@link FromBuilder#joinOnEntitySubquery(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOnEntitySubquery(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, java.lang.String, com.blazebit.persistence.JoinType) } but with * the query root assumed as base. * * @param entityType The entity type to join @@ -397,7 +397,7 @@ public interface FromBuilder> extends FromBaseBuilder> joinLateralOnSubquery(String base, Class entityClass, String alias, JoinType type); /** - * Like {@link FromBuilder#joinLateralOnSubquery(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinLateralOnSubquery(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * the query root assumed as base. * * @param entityType The entity type to join @@ -450,7 +450,7 @@ public interface FromBuilder> extends FromBaseBuilder, ? extends Z>> Z joinLateralOnEntitySubquery(String base, Class entityClass, String alias, String subqueryAlias, JoinType type); /** - * Like {@link FromBuilder#joinLateralOnEntitySubquery(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinLateralOnEntitySubquery(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, java.lang.String, com.blazebit.persistence.JoinType) } but with * the query root assumed as base. * * @param entityType The entity type to join @@ -528,7 +528,7 @@ public interface FromBuilder> extends FromBaseBuilder joinLateralSubquery(String base, Class entityClass, String alias, JoinType type); /** - * Like {@link FromBuilder#joinLateralSubquery(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinLateralSubquery(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * the query root assumed as base. * * @param entityType The entity type to join @@ -581,7 +581,7 @@ public interface FromBuilder> extends FromBaseBuilder> Z joinLateralEntitySubquery(String base, Class entityClass, String alias, String subqueryAlias, JoinType type); /** - * Like {@link FromBuilder#joinLateralEntitySubquery(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinLateralEntitySubquery(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, java.lang.String, com.blazebit.persistence.JoinType) } but with * the query root assumed as base. * * @param entityType The entity type to join @@ -698,7 +698,7 @@ public interface FromBuilder> extends FromBaseBuilder innerJoinOn(String base, Class entityClass, String alias); /** - * Like {@link FromBuilder#joinOn(javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOn(jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#INNER}. * * @param entityType The entity type to join @@ -709,7 +709,7 @@ public interface FromBuilder> extends FromBaseBuilder innerJoinOn(EntityType entityType, String alias); /** - * Like {@link FromBuilder#joinOn(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOn(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#INNER}. * * @param base The base node on which to join @@ -744,7 +744,7 @@ public interface FromBuilder> extends FromBaseBuilder> innerJoinOnSubquery(String base, Class entityClass, String alias); /** - * Like {@link FromBuilder#joinOnSubquery(javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOnSubquery(jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#INNER}. * * @param entityType The entity type to join @@ -755,7 +755,7 @@ public interface FromBuilder> extends FromBaseBuilder> innerJoinOnSubquery(EntityType entityType, String alias); /** - * Like {@link FromBuilder#joinOnSubquery(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOnSubquery(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#INNER}. * * @param base The base node on which to join @@ -792,7 +792,7 @@ public interface FromBuilder> extends FromBaseBuilder, ? extends Z>> Z innerJoinOnEntitySubquery(String base, Class entityClass, String alias); /** - * Like {@link FromBuilder#joinOnEntitySubquery(javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOnEntitySubquery(jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#INNER}. * * @param entityType The entity type to join @@ -804,7 +804,7 @@ public interface FromBuilder> extends FromBaseBuilder, ? extends Z>> Z innerJoinOnEntitySubquery(EntityType entityType, String alias); /** - * Like {@link FromBuilder#joinOnEntitySubquery(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOnEntitySubquery(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#INNER}. * * @param base The base node on which to join @@ -844,7 +844,7 @@ public interface FromBuilder> extends FromBaseBuilder, ? extends Z>> Z innerJoinOnEntitySubquery(String base, Class entityClass, String alias, String subqueryAlias); /** - * Like {@link FromBuilder#joinOnEntitySubquery(javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOnEntitySubquery(jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#INNER}. * * @param entityType The entity type to join @@ -857,7 +857,7 @@ public interface FromBuilder> extends FromBaseBuilder, ? extends Z>> Z innerJoinOnEntitySubquery(EntityType entityType, String alias, String subqueryAlias); /** - * Like {@link FromBuilder#joinOnEntitySubquery(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOnEntitySubquery(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#INNER}. * * @param base The base node on which to join @@ -894,7 +894,7 @@ public interface FromBuilder> extends FromBaseBuilder> innerJoinLateralOnSubquery(String base, Class entityClass, String alias); /** - * Like {@link FromBuilder#joinLateralOnSubquery(javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinLateralOnSubquery(jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#INNER}. * * @param entityType The entity type to join @@ -905,7 +905,7 @@ public interface FromBuilder> extends FromBaseBuilder> innerJoinLateralOnSubquery(EntityType entityType, String alias); /** - * Like {@link FromBuilder#joinLateralOnSubquery(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinLateralOnSubquery(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#INNER}. * * @param base The base node on which to join @@ -944,7 +944,7 @@ public interface FromBuilder> extends FromBaseBuilder, ? extends Z>> Z innerJoinLateralOnEntitySubquery(String base, Class entityClass, String alias, String subqueryAlias); /** - * Like {@link FromBuilder#joinLateralOnEntitySubquery(javax.persistence.metamodel.EntityType, java.lang.String, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinLateralOnEntitySubquery(jakarta.persistence.metamodel.EntityType, java.lang.String, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#INNER}. * * @param entityType The entity type to join @@ -957,7 +957,7 @@ public interface FromBuilder> extends FromBaseBuilder, ? extends Z>> Z innerJoinLateralOnEntitySubquery(EntityType entityType, String alias, String subqueryAlias); /** - * Like {@link FromBuilder#joinLateralOnEntitySubquery(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinLateralOnEntitySubquery(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#INNER}. * * @param base The base node on which to join @@ -1019,7 +1019,7 @@ public interface FromBuilder> extends FromBaseBuilder innerJoinLateralSubquery(String base, Class entityClass, String alias); /** - * Like {@link FromBuilder#joinLateralSubquery(javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinLateralSubquery(jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#INNER}. * * @param entityType The entity type to join @@ -1030,7 +1030,7 @@ public interface FromBuilder> extends FromBaseBuilder innerJoinLateralSubquery(EntityType entityType, String alias); /** - * Like {@link FromBuilder#joinLateralSubquery(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinLateralSubquery(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#INNER}. * * @param base The base node on which to join @@ -1069,7 +1069,7 @@ public interface FromBuilder> extends FromBaseBuilder> Z innerJoinLateralEntitySubquery(String base, Class entityClass, String alias, String subqueryAlias); /** - * Like {@link FromBuilder#joinLateralEntitySubquery(javax.persistence.metamodel.EntityType, java.lang.String, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinLateralEntitySubquery(jakarta.persistence.metamodel.EntityType, java.lang.String, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#INNER}. * * @param entityType The entity type to join @@ -1082,7 +1082,7 @@ public interface FromBuilder> extends FromBaseBuilder> Z innerJoinLateralEntitySubquery(EntityType entityType, String alias, String subqueryAlias); /** - * Like {@link FromBuilder#joinLateralEntitySubquery(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinLateralEntitySubquery(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#INNER}. * * @param base The base node on which to join @@ -1184,7 +1184,7 @@ public interface FromBuilder> extends FromBaseBuilder leftJoinOn(String base, Class entityClass, String alias); /** - * Like {@link FromBuilder#joinOn(javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOn(jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#LEFT}. * * @param entityType The entity type to join @@ -1195,7 +1195,7 @@ public interface FromBuilder> extends FromBaseBuilder leftJoinOn(EntityType entityType, String alias); /** - * Like {@link FromBuilder#joinOn(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOn(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#LEFT}. * * @param base The base node on which to join @@ -1230,7 +1230,7 @@ public interface FromBuilder> extends FromBaseBuilder> leftJoinOnSubquery(String base, Class entityClass, String alias); /** - * Like {@link FromBuilder#joinOnSubquery(javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOnSubquery(jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#LEFT}. * * @param entityType The entity type to join @@ -1241,7 +1241,7 @@ public interface FromBuilder> extends FromBaseBuilder> leftJoinOnSubquery(EntityType entityType, String alias); /** - * Like {@link FromBuilder#joinOnSubquery(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOnSubquery(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#LEFT}. * * @param base The base node on which to join @@ -1278,7 +1278,7 @@ public interface FromBuilder> extends FromBaseBuilder, ? extends Z>> Z leftJoinOnEntitySubquery(String base, Class entityClass, String alias); /** - * Like {@link FromBuilder#joinOnEntitySubquery(javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOnEntitySubquery(jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#LEFT}. * * @param entityType The entity type to join @@ -1290,7 +1290,7 @@ public interface FromBuilder> extends FromBaseBuilder, ? extends Z>> Z leftJoinOnEntitySubquery(EntityType entityType, String alias); /** - * Like {@link FromBuilder#joinOnEntitySubquery(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOnEntitySubquery(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#LEFT}. * * @param base The base node on which to join @@ -1330,7 +1330,7 @@ public interface FromBuilder> extends FromBaseBuilder, ? extends Z>> Z leftJoinOnEntitySubquery(String base, Class entityClass, String alias, String subqueryAlias); /** - * Like {@link FromBuilder#joinOnEntitySubquery(javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOnEntitySubquery(jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#LEFT}. * * @param entityType The entity type to join @@ -1343,7 +1343,7 @@ public interface FromBuilder> extends FromBaseBuilder, ? extends Z>> Z leftJoinOnEntitySubquery(EntityType entityType, String alias, String subqueryAlias); /** - * Like {@link FromBuilder#joinOnEntitySubquery(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOnEntitySubquery(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#LEFT}. * * @param base The base node on which to join @@ -1380,7 +1380,7 @@ public interface FromBuilder> extends FromBaseBuilder> leftJoinLateralOnSubquery(String base, Class entityClass, String alias); /** - * Like {@link FromBuilder#joinLateralOnSubquery(javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinLateralOnSubquery(jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#LEFT}. * * @param entityType The entity type to join @@ -1391,7 +1391,7 @@ public interface FromBuilder> extends FromBaseBuilder> leftJoinLateralOnSubquery(EntityType entityType, String alias); /** - * Like {@link FromBuilder#joinLateralOnSubquery(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinLateralOnSubquery(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#LEFT}. * * @param base The base node on which to join @@ -1430,7 +1430,7 @@ public interface FromBuilder> extends FromBaseBuilder, ? extends Z>> Z leftJoinLateralOnEntitySubquery(String base, Class entityClass, String alias, String subqueryAlias); /** - * Like {@link FromBuilder#joinLateralOnEntitySubquery(javax.persistence.metamodel.EntityType, java.lang.String, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinLateralOnEntitySubquery(jakarta.persistence.metamodel.EntityType, java.lang.String, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#LEFT}. * * @param entityType The entity type to join @@ -1443,7 +1443,7 @@ public interface FromBuilder> extends FromBaseBuilder, ? extends Z>> Z leftJoinLateralOnEntitySubquery(EntityType entityType, String alias, String subqueryAlias); /** - * Like {@link FromBuilder#joinLateralOnEntitySubquery(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinLateralOnEntitySubquery(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#LEFT}. * * @param base The base node on which to join @@ -1505,7 +1505,7 @@ public interface FromBuilder> extends FromBaseBuilder leftJoinLateralSubquery(String base, Class entityClass, String alias); /** - * Like {@link FromBuilder#joinLateralSubquery(javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinLateralSubquery(jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#LEFT}. * * @param entityType The entity type to join @@ -1516,7 +1516,7 @@ public interface FromBuilder> extends FromBaseBuilder leftJoinLateralSubquery(EntityType entityType, String alias); /** - * Like {@link FromBuilder#joinLateralSubquery(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinLateralSubquery(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#LEFT}. * * @param base The base node on which to join @@ -1555,7 +1555,7 @@ public interface FromBuilder> extends FromBaseBuilder> Z leftJoinLateralEntitySubquery(String base, Class entityClass, String alias, String subqueryAlias); /** - * Like {@link FromBuilder#joinLateralEntitySubquery(javax.persistence.metamodel.EntityType, java.lang.String, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinLateralEntitySubquery(jakarta.persistence.metamodel.EntityType, java.lang.String, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#LEFT}. * * @param entityType The entity type to join @@ -1568,7 +1568,7 @@ public interface FromBuilder> extends FromBaseBuilder> Z leftJoinLateralEntitySubquery(EntityType entityType, String alias, String subqueryAlias); /** - * Like {@link FromBuilder#joinLateralEntitySubquery(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinLateralEntitySubquery(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#LEFT}. * * @param base The base node on which to join @@ -1670,7 +1670,7 @@ public interface FromBuilder> extends FromBaseBuilder rightJoinOn(String base, Class entityClass, String alias); /** - * Like {@link FromBuilder#joinOn(javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOn(jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#RIGHT}. * * @param entityType The entity type to join @@ -1681,7 +1681,7 @@ public interface FromBuilder> extends FromBaseBuilder rightJoinOn(EntityType entityType, String alias); /** - * Like {@link FromBuilder#joinOn(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOn(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#RIGHT}. * * @param base The base node on which to join @@ -1716,7 +1716,7 @@ public interface FromBuilder> extends FromBaseBuilder> rightJoinOnSubquery(String base, Class entityClass, String alias); /** - * Like {@link FromBuilder#joinOnSubquery(javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOnSubquery(jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#RIGHT}. * * @param entityType The entity type to join @@ -1727,7 +1727,7 @@ public interface FromBuilder> extends FromBaseBuilder> rightJoinOnSubquery(EntityType entityType, String alias); /** - * Like {@link FromBuilder#joinOnSubquery(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOnSubquery(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#RIGHT}. * * @param base The base node on which to join @@ -1764,7 +1764,7 @@ public interface FromBuilder> extends FromBaseBuilder, ? extends Z>> Z rightJoinOnEntitySubquery(String base, Class entityClass, String alias); /** - * Like {@link FromBuilder#joinOnEntitySubquery(javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOnEntitySubquery(jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#RIGHT}. * * @param entityType The entity type to join @@ -1776,7 +1776,7 @@ public interface FromBuilder> extends FromBaseBuilder, ? extends Z>> Z rightJoinOnEntitySubquery(EntityType entityType, String alias); /** - * Like {@link FromBuilder#joinOnEntitySubquery(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOnEntitySubquery(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#RIGHT}. * * @param base The base node on which to join @@ -1816,7 +1816,7 @@ public interface FromBuilder> extends FromBaseBuilder, ? extends Z>> Z rightJoinOnEntitySubquery(String base, Class entityClass, String alias, String subqueryAlias); /** - * Like {@link FromBuilder#joinOnEntitySubquery(javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOnEntitySubquery(jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#RIGHT}. * * @param entityType The entity type to join @@ -1829,7 +1829,7 @@ public interface FromBuilder> extends FromBaseBuilder, ? extends Z>> Z rightJoinOnEntitySubquery(EntityType entityType, String alias, String subqueryAlias); /** - * Like {@link FromBuilder#joinOnEntitySubquery(java.lang.String, javax.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with + * Like {@link FromBuilder#joinOnEntitySubquery(java.lang.String, jakarta.persistence.metamodel.EntityType, java.lang.String, com.blazebit.persistence.JoinType) } but with * {@link JoinType#RIGHT}. * * @param base The base node on which to join diff --git a/core/api/src/main/java/com/blazebit/persistence/FullQueryBuilder.java b/core/api/src/main/java/com/blazebit/persistence/FullQueryBuilder.java index fb45b9bc1a..47f322e3c1 100644 --- a/core/api/src/main/java/com/blazebit/persistence/FullQueryBuilder.java +++ b/core/api/src/main/java/com/blazebit/persistence/FullQueryBuilder.java @@ -5,7 +5,7 @@ package com.blazebit.persistence; -import javax.persistence.TypedQuery; +import jakarta.persistence.TypedQuery; import java.lang.reflect.Constructor; /** diff --git a/core/api/src/main/java/com/blazebit/persistence/ModificationCriteriaBuilder.java b/core/api/src/main/java/com/blazebit/persistence/ModificationCriteriaBuilder.java index acf1644144..b93218bc9b 100644 --- a/core/api/src/main/java/com/blazebit/persistence/ModificationCriteriaBuilder.java +++ b/core/api/src/main/java/com/blazebit/persistence/ModificationCriteriaBuilder.java @@ -5,8 +5,8 @@ package com.blazebit.persistence; -import javax.persistence.Tuple; -import javax.persistence.TypedQuery; +import jakarta.persistence.Tuple; +import jakarta.persistence.TypedQuery; /** * A builder for modification queries. diff --git a/core/api/src/main/java/com/blazebit/persistence/PaginatedCriteriaBuilder.java b/core/api/src/main/java/com/blazebit/persistence/PaginatedCriteriaBuilder.java index 0ec887ea24..cbdf092cb5 100644 --- a/core/api/src/main/java/com/blazebit/persistence/PaginatedCriteriaBuilder.java +++ b/core/api/src/main/java/com/blazebit/persistence/PaginatedCriteriaBuilder.java @@ -5,7 +5,7 @@ package com.blazebit.persistence; -import javax.persistence.TypedQuery; +import jakarta.persistence.TypedQuery; /** * A builder for paginated criteria queries. diff --git a/core/api/src/main/java/com/blazebit/persistence/PaginatedTypedQuery.java b/core/api/src/main/java/com/blazebit/persistence/PaginatedTypedQuery.java index f3f4cb2e0d..eda96bafbf 100644 --- a/core/api/src/main/java/com/blazebit/persistence/PaginatedTypedQuery.java +++ b/core/api/src/main/java/com/blazebit/persistence/PaginatedTypedQuery.java @@ -5,7 +5,7 @@ package com.blazebit.persistence; -import javax.persistence.TypedQuery; +import jakarta.persistence.TypedQuery; import java.util.List; /** diff --git a/core/api/src/main/java/com/blazebit/persistence/ParameterHolder.java b/core/api/src/main/java/com/blazebit/persistence/ParameterHolder.java index edeb109da9..0475751dc1 100644 --- a/core/api/src/main/java/com/blazebit/persistence/ParameterHolder.java +++ b/core/api/src/main/java/com/blazebit/persistence/ParameterHolder.java @@ -5,9 +5,9 @@ package com.blazebit.persistence; -import javax.persistence.Parameter; -import javax.persistence.TemporalType; -import javax.persistence.criteria.ParameterExpression; +import jakarta.persistence.Parameter; +import jakarta.persistence.TemporalType; +import jakarta.persistence.criteria.ParameterExpression; import java.util.Calendar; import java.util.Date; import java.util.Set; diff --git a/core/api/src/main/java/com/blazebit/persistence/Path.java b/core/api/src/main/java/com/blazebit/persistence/Path.java index eccda37a17..5cf61d7e02 100644 --- a/core/api/src/main/java/com/blazebit/persistence/Path.java +++ b/core/api/src/main/java/com/blazebit/persistence/Path.java @@ -5,7 +5,7 @@ package com.blazebit.persistence; -import javax.persistence.metamodel.Type; +import jakarta.persistence.metamodel.Type; /** * CAREFUL, this is an experimental API and will change! diff --git a/core/api/src/main/java/com/blazebit/persistence/QueryBuilder.java b/core/api/src/main/java/com/blazebit/persistence/QueryBuilder.java index 69c2edf820..5d061646be 100644 --- a/core/api/src/main/java/com/blazebit/persistence/QueryBuilder.java +++ b/core/api/src/main/java/com/blazebit/persistence/QueryBuilder.java @@ -6,7 +6,7 @@ package com.blazebit.persistence; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; /** * A base interface for builders that support normal query functionality. diff --git a/core/api/src/main/java/com/blazebit/persistence/Queryable.java b/core/api/src/main/java/com/blazebit/persistence/Queryable.java index e7d44c384b..cab51e8c45 100644 --- a/core/api/src/main/java/com/blazebit/persistence/Queryable.java +++ b/core/api/src/main/java/com/blazebit/persistence/Queryable.java @@ -5,7 +5,7 @@ package com.blazebit.persistence; -import javax.persistence.TypedQuery; +import jakarta.persistence.TypedQuery; import java.util.List; import java.util.stream.Stream; diff --git a/core/api/src/main/java/com/blazebit/persistence/ReturningModificationCriteriaBuilderFactory.java b/core/api/src/main/java/com/blazebit/persistence/ReturningModificationCriteriaBuilderFactory.java index 26f4467e66..45819ee973 100644 --- a/core/api/src/main/java/com/blazebit/persistence/ReturningModificationCriteriaBuilderFactory.java +++ b/core/api/src/main/java/com/blazebit/persistence/ReturningModificationCriteriaBuilderFactory.java @@ -84,7 +84,7 @@ public interface ReturningModificationCriteriaBuilderFactory { public ReturningUpdateCriteriaBuilder update(Class updateClass, String alias); /** - * Like {@link CriteriaBuilderFactory#updateCollection(javax.persistence.EntityManager, java.lang.Class, java.lang.String, java.lang.String)} but with the alias + * Like {@link CriteriaBuilderFactory#updateCollection(jakarta.persistence.EntityManager, java.lang.Class, java.lang.String, java.lang.String)} but with the alias * equivalent to the camel cased result of what {@link Class#getSimpleName()} of the delete owner class returns. * * @param updateOwnerClass The entity class owning the collection for the update criteria diff --git a/core/api/src/main/java/com/blazebit/persistence/SubqueryInitiator.java b/core/api/src/main/java/com/blazebit/persistence/SubqueryInitiator.java index 25ea06f3eb..e16e40273b 100644 --- a/core/api/src/main/java/com/blazebit/persistence/SubqueryInitiator.java +++ b/core/api/src/main/java/com/blazebit/persistence/SubqueryInitiator.java @@ -5,7 +5,7 @@ package com.blazebit.persistence; -import javax.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.EntityType; import java.util.Collection; /** @@ -145,7 +145,7 @@ public interface SubqueryInitiator extends FromBaseBuilder * This introduces a parameter named like the given alias. * * To set the values invoke {@link SubqueryBuilder#setParameter(String, Object)} - * or {@link javax.persistence.Query#setParameter(String, Object)} with the alias and a collection. + * or {@link jakarta.persistence.Query#setParameter(String, Object)} with the alias and a collection. * * @param valueClass The class of the basic or managed type for which to create a VALUES clause * @param alias The alias for the entity @@ -161,7 +161,7 @@ public interface SubqueryInitiator extends FromBaseBuilder * This introduces a parameter named like the given alias. * * To set the values invoke {@link CommonQueryBuilder#setParameter(String, Object)} - * or {@link javax.persistence.Query#setParameter(String, Object)} with the alias and a collection. + * or {@link jakarta.persistence.Query#setParameter(String, Object)} with the alias and a collection. * * @param entityBaseClass The entity class on which the attribute is located * @param attributeName The attribute name within the entity class which to use for determining the values type @@ -180,7 +180,7 @@ public interface SubqueryInitiator extends FromBaseBuilder * In contrast to {@link SubqueryInitiator#fromValues(Class, String, int)} this will only bind the id attribute. * * To set the values invoke {@link SubqueryBuilder#setParameter(String, Object)} - * or {@link javax.persistence.Query#setParameter(String, Object)} with the alias and a collection. + * or {@link jakarta.persistence.Query#setParameter(String, Object)} with the alias and a collection. * * @param valueClass The class of the identifiable type for which to create a VALUES clause * @param alias The alias for the entity diff --git a/core/api/src/main/java/com/blazebit/persistence/spi/AttributePath.java b/core/api/src/main/java/com/blazebit/persistence/spi/AttributePath.java index 116946f276..2dfabc700c 100644 --- a/core/api/src/main/java/com/blazebit/persistence/spi/AttributePath.java +++ b/core/api/src/main/java/com/blazebit/persistence/spi/AttributePath.java @@ -5,7 +5,7 @@ package com.blazebit.persistence.spi; -import javax.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.Attribute; import java.util.List; /** diff --git a/core/api/src/main/java/com/blazebit/persistence/spi/CriteriaBuilderConfiguration.java b/core/api/src/main/java/com/blazebit/persistence/spi/CriteriaBuilderConfiguration.java index ab9540b4e3..6a3f99211b 100644 --- a/core/api/src/main/java/com/blazebit/persistence/spi/CriteriaBuilderConfiguration.java +++ b/core/api/src/main/java/com/blazebit/persistence/spi/CriteriaBuilderConfiguration.java @@ -7,7 +7,7 @@ import com.blazebit.persistence.CriteriaBuilderFactory; -import javax.persistence.EntityManagerFactory; +import jakarta.persistence.EntityManagerFactory; import java.util.List; import java.util.Map; import java.util.Properties; diff --git a/core/api/src/main/java/com/blazebit/persistence/spi/CriteriaBuilderConfigurationContributor.java b/core/api/src/main/java/com/blazebit/persistence/spi/CriteriaBuilderConfigurationContributor.java index 94c743eb48..aeccff7a85 100644 --- a/core/api/src/main/java/com/blazebit/persistence/spi/CriteriaBuilderConfigurationContributor.java +++ b/core/api/src/main/java/com/blazebit/persistence/spi/CriteriaBuilderConfigurationContributor.java @@ -8,7 +8,7 @@ /** * A bootstrap process hook for contributing settings to the {@link CriteriaBuilderConfiguration}. * {@code CriteriaBuilderConfigurationContributor} instances may be annotated with {@link Priority} - * (or {@code javax.annotation.Priority}) to influence the order in which they are registered. + * (or {@code jakarta.annotation.Priority}) to influence the order in which they are registered. * The range 0-500 is reserved for internal uses. 500 - 1000 is reserved for libraries and 1000+ * is for user provided contributors. * diff --git a/core/api/src/main/java/com/blazebit/persistence/spi/CteQueryWrapper.java b/core/api/src/main/java/com/blazebit/persistence/spi/CteQueryWrapper.java index 8843b504c3..74d76c8c6b 100644 --- a/core/api/src/main/java/com/blazebit/persistence/spi/CteQueryWrapper.java +++ b/core/api/src/main/java/com/blazebit/persistence/spi/CteQueryWrapper.java @@ -5,7 +5,7 @@ package com.blazebit.persistence.spi; -import javax.persistence.Query; +import jakarta.persistence.Query; import java.util.List; /** diff --git a/core/api/src/main/java/com/blazebit/persistence/spi/EntityManagerFactoryIntegrator.java b/core/api/src/main/java/com/blazebit/persistence/spi/EntityManagerFactoryIntegrator.java index bf9674528f..60da45e476 100644 --- a/core/api/src/main/java/com/blazebit/persistence/spi/EntityManagerFactoryIntegrator.java +++ b/core/api/src/main/java/com/blazebit/persistence/spi/EntityManagerFactoryIntegrator.java @@ -5,7 +5,7 @@ package com.blazebit.persistence.spi; -import javax.persistence.EntityManagerFactory; +import jakarta.persistence.EntityManagerFactory; import java.util.Map; /** diff --git a/core/api/src/main/java/com/blazebit/persistence/spi/ExtendedAttribute.java b/core/api/src/main/java/com/blazebit/persistence/spi/ExtendedAttribute.java index 2945aef212..76324e5a5b 100644 --- a/core/api/src/main/java/com/blazebit/persistence/spi/ExtendedAttribute.java +++ b/core/api/src/main/java/com/blazebit/persistence/spi/ExtendedAttribute.java @@ -7,14 +7,14 @@ import com.blazebit.persistence.JoinType; -import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.EntityType; import java.util.List; import java.util.Map; import java.util.Set; /** - * This is a wrapper around the JPA {@link javax.persistence.metamodel.Attribute} that allows additionally efficient access to properties of the metamodel. + * This is a wrapper around the JPA {@link jakarta.persistence.metamodel.Attribute} that allows additionally efficient access to properties of the metamodel. * * @param The Java type represented by the managed type owning the attribute * @param The Java element type of the attribute diff --git a/core/api/src/main/java/com/blazebit/persistence/spi/ExtendedManagedType.java b/core/api/src/main/java/com/blazebit/persistence/spi/ExtendedManagedType.java index 0c709d8646..e81a9f9e9c 100644 --- a/core/api/src/main/java/com/blazebit/persistence/spi/ExtendedManagedType.java +++ b/core/api/src/main/java/com/blazebit/persistence/spi/ExtendedManagedType.java @@ -5,14 +5,14 @@ package com.blazebit.persistence.spi; -import javax.persistence.metamodel.EntityType; -import javax.persistence.metamodel.ManagedType; -import javax.persistence.metamodel.SingularAttribute; +import jakarta.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.ManagedType; +import jakarta.persistence.metamodel.SingularAttribute; import java.util.Map; import java.util.Set; /** - * This is a wrapper around the JPA {@link javax.persistence.metamodel.ManagedType} that allows additionally efficient access to properties of the metamodel. + * This is a wrapper around the JPA {@link jakarta.persistence.metamodel.ManagedType} that allows additionally efficient access to properties of the metamodel. * * @param The Java type represented by this managed type * @author Christian Beikov diff --git a/core/api/src/main/java/com/blazebit/persistence/spi/ExtendedQuerySupport.java b/core/api/src/main/java/com/blazebit/persistence/spi/ExtendedQuerySupport.java index 9699dfc5ae..e7cbd9efb4 100644 --- a/core/api/src/main/java/com/blazebit/persistence/spi/ExtendedQuerySupport.java +++ b/core/api/src/main/java/com/blazebit/persistence/spi/ExtendedQuerySupport.java @@ -7,8 +7,8 @@ import com.blazebit.persistence.ReturningResult; -import javax.persistence.EntityManager; -import javax.persistence.Query; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Query; import java.util.List; /** diff --git a/core/api/src/main/java/com/blazebit/persistence/spi/JpaMetamodelAccessor.java b/core/api/src/main/java/com/blazebit/persistence/spi/JpaMetamodelAccessor.java index 6d9e3418a0..6f196f067e 100644 --- a/core/api/src/main/java/com/blazebit/persistence/spi/JpaMetamodelAccessor.java +++ b/core/api/src/main/java/com/blazebit/persistence/spi/JpaMetamodelAccessor.java @@ -5,10 +5,10 @@ package com.blazebit.persistence.spi; -import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.EntityType; -import javax.persistence.metamodel.ManagedType; -import javax.persistence.metamodel.Metamodel; +import jakarta.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.ManagedType; +import jakarta.persistence.metamodel.Metamodel; /** * @author Jan-Willem Gmelig Meyling diff --git a/core/api/src/main/java/com/blazebit/persistence/spi/JpaProvider.java b/core/api/src/main/java/com/blazebit/persistence/spi/JpaProvider.java index fc57738b04..fc56ad9b24 100644 --- a/core/api/src/main/java/com/blazebit/persistence/spi/JpaProvider.java +++ b/core/api/src/main/java/com/blazebit/persistence/spi/JpaProvider.java @@ -7,10 +7,10 @@ import com.blazebit.persistence.JoinType; -import javax.persistence.EntityManager; -import javax.persistence.Query; -import javax.persistence.metamodel.EntityType; -import javax.persistence.metamodel.ManagedType; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Query; +import jakarta.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.ManagedType; import java.util.List; import java.util.Map; diff --git a/core/api/src/main/java/com/blazebit/persistence/spi/JpaProviderFactory.java b/core/api/src/main/java/com/blazebit/persistence/spi/JpaProviderFactory.java index dc1830ace9..f50ce20408 100644 --- a/core/api/src/main/java/com/blazebit/persistence/spi/JpaProviderFactory.java +++ b/core/api/src/main/java/com/blazebit/persistence/spi/JpaProviderFactory.java @@ -5,7 +5,7 @@ package com.blazebit.persistence.spi; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; /** * A service provider factory to create {@link JpaProvider} instances. diff --git a/core/api/src/main/java/com/blazebit/persistence/spi/JpqlFunction.java b/core/api/src/main/java/com/blazebit/persistence/spi/JpqlFunction.java index ca850fbd37..cc448bed72 100644 --- a/core/api/src/main/java/com/blazebit/persistence/spi/JpqlFunction.java +++ b/core/api/src/main/java/com/blazebit/persistence/spi/JpqlFunction.java @@ -12,7 +12,7 @@ * * @author Christian Beikov * @since 1.0.0 - * @see EntityManagerFactoryIntegrator#registerFunctions(javax.persistence.EntityManagerFactory, java.util.Map) + * @see EntityManagerFactoryIntegrator#registerFunctions(jakarta.persistence.EntityManagerFactory, java.util.Map) */ public interface JpqlFunction { diff --git a/core/api/src/main/java/module-info.java b/core/api/src/main/java/module-info.java new file mode 100644 index 0000000000..619c50a2c9 --- /dev/null +++ b/core/api/src/main/java/module-info.java @@ -0,0 +1,12 @@ +/* + * SPDX-License-Identifier: Apache-2.0 + * Copyright Blazebit + */ +module com.blazebit.persistence.core { + requires transitive java.sql; + requires transitive jakarta.persistence; + exports com.blazebit.persistence; + exports com.blazebit.persistence.spi; + exports com.blazebit.persistence.internal; + uses com.blazebit.persistence.spi.CriteriaBuilderConfigurationProvider; +} \ No newline at end of file diff --git a/core/api/src/main/java9/com/blazebit/persistence/DefaultPackageOpener.java b/core/api/src/main/java9/com/blazebit/persistence/DefaultPackageOpener.java deleted file mode 100644 index bfdd3c644a..0000000000 --- a/core/api/src/main/java9/com/blazebit/persistence/DefaultPackageOpener.java +++ /dev/null @@ -1,30 +0,0 @@ -/* - * SPDX-License-Identifier: Apache-2.0 - * Copyright Blazebit - */ - -package com.blazebit.persistence; - -import com.blazebit.persistence.spi.PackageOpener; - -/** - * A package opener that works with Java 9 modules. - * - * @author Christian Beikov - * @since 1.2.0 - */ -class DefaultPackageOpener implements PackageOpener { - - static final PackageOpener INSTANCE = new DefaultPackageOpener(); - - private DefaultPackageOpener() { - } - - @Override - public void openPackageIfNeeded(Class targetClass, String targetPackage, Class implementationClass) { - Module targetModule = targetClass.getModule(); - if (!targetModule.isOpen(targetPackage, implementationClass.getModule())) { - targetModule.addOpens(targetPackage, implementationClass.getModule()); - } - } -} diff --git a/core/api/src/main/resources/META-INF/MANIFEST.MF b/core/api/src/main/resources/META-INF/MANIFEST.MF deleted file mode 100644 index e714012cef..0000000000 --- a/core/api/src/main/resources/META-INF/MANIFEST.MF +++ /dev/null @@ -1 +0,0 @@ -Multi-Release: true diff --git a/core/impl-jakarta/pom.xml b/core/impl-jakarta/pom.xml deleted file mode 100644 index cd6149d678..0000000000 --- a/core/impl-jakarta/pom.xml +++ /dev/null @@ -1,235 +0,0 @@ - - - - - 4.0.0 - - - com.blazebit - blaze-persistence-core - 1.6.15-SNAPSHOT - ../pom.xml - - - blaze-persistence-core-impl-jakarta - jar - - - com.blazebit.persistence.core.impl - - - - - ${project.groupId} - blaze-persistence-core-impl - provided - - - jakarta.persistence - jakarta.persistence-api - ${version.jakarta-jpa-api} - provided - - - ${project.groupId} - blaze-persistence-core-api-jakarta - - - ${project.groupId} - blaze-persistence-core-parser-jakarta - - - ${project.groupId} - blaze-common-utils - - - - - - - maven-antrun-plugin - - - transform-jar - package - - run - - - - - - - - - - - - - - - - - - - - - - transform-sources-jar - package - - run - - - - - - - - - - - - - - - - - - - - - - - - transform-javadoc - package - - run - - - - - - - - - - - - - - - - - - - - - - - - - unpack-classes - package - - - - - - - run - - - - - - org.eclipse.transformer - org.eclipse.transformer.cli - 0.5.0 - - - ant-contrib - ant-contrib - 1.0b3 - - - ant - ant - - - - - biz.aQute.bnd - biz.aQute.bnd.transform - ${version.bnd} - compile - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - attach-artifacts - package - - attach-artifact - - - - - ${project.build.directory}/${project.build.finalName}-sources.jar - sources - jar - - - - - - - - - - - blazebit-release - - - - org.codehaus.mojo - build-helper-maven-plugin - - - attach-artifacts - package - - attach-artifact - - - - - ${project.build.directory}/${project.build.finalName}-sources.jar - sources - jar - - - ${project.build.directory}/${project.build.finalName}-javadoc.jar - javadoc - jar - - - - - - - - - - - - diff --git a/core/impl-jar/pom.xml b/core/impl-jar/pom.xml deleted file mode 100644 index 7cc7d237ee..0000000000 --- a/core/impl-jar/pom.xml +++ /dev/null @@ -1,129 +0,0 @@ - - - - - 4.0.0 - - - com.blazebit - blaze-persistence-core - 1.6.15-SNAPSHOT - ../pom.xml - - - blaze-persistence-core-impl-jar - jar - - - com.blazebit.persistence.core.impl - - - - - ${project.groupId} - blaze-persistence-core-api-jar - - - ${project.groupId} - blaze-persistence-core-parser-jar - - - ${project.groupId} - blaze-common-utils - - - ${project.groupId} - blaze-persistence-core-impl - - - - - - - org.apache.maven.plugins - maven-shade-plugin - - - package - - shade - - - true - - - ${project.groupId}:blaze-persistence-core-impl - - META-INF/versions/** - module-info.class - - - - - - - - - - - - - blazebit-release - - - - maven-dependency-plugin - - - shade-javadoc - - copy - - - - - ${project.groupId} - blaze-persistence-core-impl - ${project.version} - jar - javadoc - true - ${project.build.directory} - ${project.artifactId}-${project.version}-javadoc.jar - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - attach-artifacts - package - - attach-artifact - - - - - ${project.build.directory}/${project.artifactId}-${project.version}-javadoc.jar - javadoc - jar - - - - - - - - - - - - diff --git a/core/impl/pom.xml b/core/impl/pom.xml index a4c422eb14..c585249dcf 100644 --- a/core/impl/pom.xml +++ b/core/impl/pom.xml @@ -39,7 +39,6 @@ blaze-common-utils - jakarta.persistence jakarta.persistence-api @@ -59,215 +58,6 @@ src/main/resources - - - org.moditect - moditect-maven-plugin - - - add-module-infos - package - - add-module-info - - - - - module ${module.name} { - requires java.sql; - requires java.persistence; - requires com.blazebit.common.utils; - requires com.blazebit.persistence.core; - requires com.blazebit.persistence.core.parser; - exports com.blazebit.persistence.impl; - exports com.blazebit.persistence.impl.builder.expression; - exports com.blazebit.persistence.impl.builder.object; - exports com.blazebit.persistence.impl.builder.predicate; - exports com.blazebit.persistence.impl.dialect; - exports com.blazebit.persistence.impl.function; - exports com.blazebit.persistence.impl.function.alias; - exports com.blazebit.persistence.impl.function.base64; - exports com.blazebit.persistence.impl.function.cast; - exports com.blazebit.persistence.impl.function.chr; - exports com.blazebit.persistence.impl.function.colldml; - exports com.blazebit.persistence.impl.function.coltrunc; - exports com.blazebit.persistence.impl.function.concat; - exports com.blazebit.persistence.impl.function.count; - exports com.blazebit.persistence.impl.function.countwrapper; - exports com.blazebit.persistence.impl.function.dateadd; - exports com.blazebit.persistence.impl.function.dateadd.day; - exports com.blazebit.persistence.impl.function.dateadd.hour; - exports com.blazebit.persistence.impl.function.dateadd.microseconds; - exports com.blazebit.persistence.impl.function.dateadd.milliseconds; - exports com.blazebit.persistence.impl.function.dateadd.minute; - exports com.blazebit.persistence.impl.function.dateadd.month; - exports com.blazebit.persistence.impl.function.dateadd.quarter; - exports com.blazebit.persistence.impl.function.dateadd.second; - exports com.blazebit.persistence.impl.function.dateadd.week; - exports com.blazebit.persistence.impl.function.dateadd.year; - exports com.blazebit.persistence.impl.function.datediff; - exports com.blazebit.persistence.impl.function.datediff.day; - exports com.blazebit.persistence.impl.function.datediff.hour; - exports com.blazebit.persistence.impl.function.datediff.microsecond; - exports com.blazebit.persistence.impl.function.datediff.millisecond; - exports com.blazebit.persistence.impl.function.datediff.minute; - exports com.blazebit.persistence.impl.function.datediff.month; - exports com.blazebit.persistence.impl.function.datediff.quarter; - exports com.blazebit.persistence.impl.function.datediff.second; - exports com.blazebit.persistence.impl.function.datediff.week; - exports com.blazebit.persistence.impl.function.datediff.year; - exports com.blazebit.persistence.impl.function.datetime.day; - exports com.blazebit.persistence.impl.function.datetime.dayofweek; - exports com.blazebit.persistence.impl.function.datetime.dayofyear; - exports com.blazebit.persistence.impl.function.datetime.epoch; - exports com.blazebit.persistence.impl.function.datetime.epochday; - exports com.blazebit.persistence.impl.function.datetime.epochmicro; - exports com.blazebit.persistence.impl.function.datetime.epochmilli; - exports com.blazebit.persistence.impl.function.datetime.hour; - exports com.blazebit.persistence.impl.function.datetime.isodayofweek; - exports com.blazebit.persistence.impl.function.datetime.isoweek; - exports com.blazebit.persistence.impl.function.datetime.microsecond; - exports com.blazebit.persistence.impl.function.datetime.millisecond; - exports com.blazebit.persistence.impl.function.datetime.minute; - exports com.blazebit.persistence.impl.function.datetime.month; - exports com.blazebit.persistence.impl.function.datetime.quarter; - exports com.blazebit.persistence.impl.function.datetime.second; - exports com.blazebit.persistence.impl.function.datetime.week; - exports com.blazebit.persistence.impl.function.datetime.year; - exports com.blazebit.persistence.impl.function.datetime.yearofweek; - exports com.blazebit.persistence.impl.function.datetime.yearweek; - exports com.blazebit.persistence.impl.function.entity; - exports com.blazebit.persistence.impl.function.every; - exports com.blazebit.persistence.impl.function.exist; - exports com.blazebit.persistence.impl.function.greatest; - exports com.blazebit.persistence.impl.function.groupconcat; - exports com.blazebit.persistence.impl.function.grouping; - exports com.blazebit.persistence.impl.function.groupingsets; - exports com.blazebit.persistence.impl.function.jsonget; - exports com.blazebit.persistence.impl.function.jsonset; - exports com.blazebit.persistence.impl.function.least; - exports com.blazebit.persistence.impl.function.limit; - exports com.blazebit.persistence.impl.function.literal; - exports com.blazebit.persistence.impl.function.nullfn; - exports com.blazebit.persistence.impl.function.nullsubquery; - exports com.blazebit.persistence.impl.function.oragg; - exports com.blazebit.persistence.impl.function.pageposition; - exports com.blazebit.persistence.impl.function.param; - exports com.blazebit.persistence.impl.function.querywrapper; - exports com.blazebit.persistence.impl.function.repeat; - exports com.blazebit.persistence.impl.function.replace; - exports com.blazebit.persistence.impl.function.rowvalue; - exports com.blazebit.persistence.impl.function.set; - exports com.blazebit.persistence.impl.function.stringjsonagg; - exports com.blazebit.persistence.impl.function.stringxmlagg; - exports com.blazebit.persistence.impl.function.subquery; - exports com.blazebit.persistence.impl.function.tomultiset; - exports com.blazebit.persistence.impl.function.tostringjson; - exports com.blazebit.persistence.impl.function.tostringxml; - exports com.blazebit.persistence.impl.function.treat; - exports com.blazebit.persistence.impl.function.trunc; - exports com.blazebit.persistence.impl.function.trunc.day; - exports com.blazebit.persistence.impl.function.trunc.hour; - exports com.blazebit.persistence.impl.function.trunc.microseconds; - exports com.blazebit.persistence.impl.function.trunc.milliseconds; - exports com.blazebit.persistence.impl.function.trunc.minute; - exports com.blazebit.persistence.impl.function.trunc.month; - exports com.blazebit.persistence.impl.function.trunc.quarter; - exports com.blazebit.persistence.impl.function.trunc.second; - exports com.blazebit.persistence.impl.function.trunc.week; - exports com.blazebit.persistence.impl.function.trunc.year; - exports com.blazebit.persistence.impl.function.window; - exports com.blazebit.persistence.impl.function.window.avg; - exports com.blazebit.persistence.impl.function.window.count; - exports com.blazebit.persistence.impl.function.window.cumedist; - exports com.blazebit.persistence.impl.function.window.denserank; - exports com.blazebit.persistence.impl.function.window.every; - exports com.blazebit.persistence.impl.function.window.first; - exports com.blazebit.persistence.impl.function.window.groupconcat; - exports com.blazebit.persistence.impl.function.window.lag; - exports com.blazebit.persistence.impl.function.window.last; - exports com.blazebit.persistence.impl.function.window.lead; - exports com.blazebit.persistence.impl.function.window.max; - exports com.blazebit.persistence.impl.function.window.min; - exports com.blazebit.persistence.impl.function.window.nth; - exports com.blazebit.persistence.impl.function.window.ntile; - exports com.blazebit.persistence.impl.function.window.oragg; - exports com.blazebit.persistence.impl.function.window.percentrank; - exports com.blazebit.persistence.impl.function.window.rank; - exports com.blazebit.persistence.impl.function.window.row; - exports com.blazebit.persistence.impl.function.window.sum; - exports com.blazebit.persistence.impl.keyset; - exports com.blazebit.persistence.impl.plan; - exports com.blazebit.persistence.impl.query; - exports com.blazebit.persistence.impl.transform; - exports com.blazebit.persistence.impl.util; - opens com.blazebit.persistence.impl.function.entity to org.hibernate.orm.core, eclipselink; - uses com.blazebit.persistence.spi.EntityManagerFactoryIntegrator; - uses com.blazebit.persistence.spi.ExtendedQuerySupport; - uses com.blazebit.persistence.spi.CriteriaBuilderConfigurationContributor; - provides com.blazebit.persistence.spi.CriteriaBuilderConfigurationProvider with com.blazebit.persistence.impl.CriteriaBuilderConfigurationProviderImpl; - } - - - - - - - - - - java9 - - [1.9,) - - - src/main/java9 - - - - - maven-antrun-plugin - - - compile-java9 - compile - - - - - - - - run - - - - - - maven-jar-plugin - true - - - - true - - - - - - default-jar - package - - jar - - - - - - - - - diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractCTECriteriaBuilder.java b/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractCTECriteriaBuilder.java index df1d9fb073..82e946ba74 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractCTECriteriaBuilder.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractCTECriteriaBuilder.java @@ -18,8 +18,8 @@ import com.blazebit.persistence.spi.ExtendedManagedType; import com.blazebit.persistence.spi.SetOperationType; -import javax.persistence.Query; -import javax.persistence.metamodel.EntityType; +import jakarta.persistence.Query; +import jakarta.persistence.metamodel.EntityType; import java.util.Arrays; import java.util.Collections; import java.util.LinkedHashMap; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractCommonQueryBuilder.java b/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractCommonQueryBuilder.java index 6e50eab9c2..011338a78d 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractCommonQueryBuilder.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractCommonQueryBuilder.java @@ -102,21 +102,21 @@ import com.blazebit.persistence.spi.SetOperationType; import com.blazebit.persistence.spi.ValuesStrategy; -import javax.persistence.EntityManager; -import javax.persistence.Parameter; -import javax.persistence.Query; -import javax.persistence.TemporalType; -import javax.persistence.Tuple; -import javax.persistence.TypedQuery; -import javax.persistence.criteria.ParameterExpression; -import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.EntityType; -import javax.persistence.metamodel.IdentifiableType; -import javax.persistence.metamodel.ManagedType; -import javax.persistence.metamodel.MapAttribute; -import javax.persistence.metamodel.PluralAttribute; -import javax.persistence.metamodel.SingularAttribute; -import javax.persistence.metamodel.Type; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Parameter; +import jakarta.persistence.Query; +import jakarta.persistence.TemporalType; +import jakarta.persistence.Tuple; +import jakarta.persistence.TypedQuery; +import jakarta.persistence.criteria.ParameterExpression; +import jakarta.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.IdentifiableType; +import jakarta.persistence.metamodel.ManagedType; +import jakarta.persistence.metamodel.MapAttribute; +import jakarta.persistence.metamodel.PluralAttribute; +import jakarta.persistence.metamodel.SingularAttribute; +import jakarta.persistence.metamodel.Type; import java.io.Serializable; import java.util.ArrayList; import java.util.Arrays; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractDeleteCollectionCriteriaBuilder.java b/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractDeleteCollectionCriteriaBuilder.java index 4fbfbc5c44..6be5166da2 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractDeleteCollectionCriteriaBuilder.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractDeleteCollectionCriteriaBuilder.java @@ -27,13 +27,13 @@ import com.blazebit.persistence.spi.ExtendedQuerySupport; import com.blazebit.persistence.spi.JoinTable; -import javax.persistence.Query; -import javax.persistence.TypedQuery; -import javax.persistence.metamodel.EntityType; -import javax.persistence.metamodel.ManagedType; -import javax.persistence.metamodel.PluralAttribute; -import javax.persistence.metamodel.SingularAttribute; -import javax.persistence.metamodel.Type; +import jakarta.persistence.Query; +import jakarta.persistence.TypedQuery; +import jakarta.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.ManagedType; +import jakarta.persistence.metamodel.PluralAttribute; +import jakarta.persistence.metamodel.SingularAttribute; +import jakarta.persistence.metamodel.Type; import java.util.ArrayList; import java.util.Collections; import java.util.HashMap; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractFullQueryBuilder.java b/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractFullQueryBuilder.java index 12d030e1c4..f3e75ecb7e 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractFullQueryBuilder.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractFullQueryBuilder.java @@ -45,12 +45,12 @@ import com.blazebit.persistence.spi.AttributeAccessor; import com.blazebit.persistence.spi.JpaMetamodelAccessor; -import javax.persistence.Parameter; -import javax.persistence.Query; -import javax.persistence.TypedQuery; -import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.EmbeddableType; -import javax.persistence.metamodel.SingularAttribute; +import jakarta.persistence.Parameter; +import jakarta.persistence.Query; +import jakarta.persistence.TypedQuery; +import jakarta.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.EmbeddableType; +import jakarta.persistence.metamodel.SingularAttribute; import java.lang.reflect.Constructor; import java.util.ArrayList; import java.util.Arrays; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractInsertCollectionCriteriaBuilder.java b/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractInsertCollectionCriteriaBuilder.java index 79103fd9f1..31b4646472 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractInsertCollectionCriteriaBuilder.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractInsertCollectionCriteriaBuilder.java @@ -25,14 +25,14 @@ import com.blazebit.persistence.spi.JoinTable; import com.blazebit.persistence.spi.JpaMetamodelAccessor; -import javax.persistence.Query; -import javax.persistence.TypedQuery; -import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.EntityType; -import javax.persistence.metamodel.ListAttribute; -import javax.persistence.metamodel.MapAttribute; -import javax.persistence.metamodel.SingularAttribute; -import javax.persistence.metamodel.Type; +import jakarta.persistence.Query; +import jakarta.persistence.TypedQuery; +import jakarta.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.ListAttribute; +import jakarta.persistence.metamodel.MapAttribute; +import jakarta.persistence.metamodel.SingularAttribute; +import jakarta.persistence.metamodel.Type; import java.util.Collection; import java.util.Collections; import java.util.HashMap; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractModificationCriteriaBuilder.java b/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractModificationCriteriaBuilder.java index 7886726f29..27166ab1e3 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractModificationCriteriaBuilder.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractModificationCriteriaBuilder.java @@ -33,12 +33,12 @@ import com.blazebit.persistence.spi.JoinTable; import com.blazebit.persistence.spi.JpaMetamodelAccessor; -import javax.persistence.Query; -import javax.persistence.Tuple; -import javax.persistence.TypedQuery; -import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.EntityType; -import javax.persistence.metamodel.SingularAttribute; +import jakarta.persistence.Query; +import jakarta.persistence.Tuple; +import jakarta.persistence.TypedQuery; +import jakarta.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.SingularAttribute; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractQueryBuilder.java b/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractQueryBuilder.java index 6e3fcae8ce..d056c6cd7d 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractQueryBuilder.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractQueryBuilder.java @@ -8,7 +8,7 @@ import java.util.List; import java.util.stream.Stream; -import javax.persistence.TypedQuery; +import jakarta.persistence.TypedQuery; import com.blazebit.persistence.FullQueryBuilder; import com.blazebit.persistence.Queryable; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractUpdateCollectionCriteriaBuilder.java b/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractUpdateCollectionCriteriaBuilder.java index ce9a542190..41543c1e41 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractUpdateCollectionCriteriaBuilder.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/AbstractUpdateCollectionCriteriaBuilder.java @@ -27,16 +27,16 @@ import com.blazebit.persistence.spi.JoinTable; import com.blazebit.persistence.spi.UpdateJoinStyle; -import javax.persistence.Query; -import javax.persistence.TypedQuery; -import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.EntityType; -import javax.persistence.metamodel.ListAttribute; -import javax.persistence.metamodel.ManagedType; -import javax.persistence.metamodel.MapAttribute; -import javax.persistence.metamodel.PluralAttribute; -import javax.persistence.metamodel.SingularAttribute; -import javax.persistence.metamodel.Type; +import jakarta.persistence.Query; +import jakarta.persistence.TypedQuery; +import jakarta.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.ListAttribute; +import jakarta.persistence.metamodel.ManagedType; +import jakarta.persistence.metamodel.MapAttribute; +import jakarta.persistence.metamodel.PluralAttribute; +import jakarta.persistence.metamodel.SingularAttribute; +import jakarta.persistence.metamodel.Type; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/AssociationFromIdParameterTransformer.java b/core/impl/src/main/java/com/blazebit/persistence/impl/AssociationFromIdParameterTransformer.java index 09337846a9..9017f850d9 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/AssociationFromIdParameterTransformer.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/AssociationFromIdParameterTransformer.java @@ -7,8 +7,8 @@ import com.blazebit.reflection.ReflectionUtils; -import javax.persistence.Query; -import javax.persistence.metamodel.Attribute; +import jakarta.persistence.Query; +import jakarta.persistence.metamodel.Attribute; import java.lang.reflect.Constructor; import java.lang.reflect.Field; import java.lang.reflect.Member; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/AssociationToIdParameterTransformer.java b/core/impl/src/main/java/com/blazebit/persistence/impl/AssociationToIdParameterTransformer.java index 9f7c6f2633..41a2a7e952 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/AssociationToIdParameterTransformer.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/AssociationToIdParameterTransformer.java @@ -7,7 +7,7 @@ import com.blazebit.persistence.spi.JpaProvider; -import javax.persistence.Query; +import jakarta.persistence.Query; /** * @author Christian Beikov diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/AttributeHolder.java b/core/impl/src/main/java/com/blazebit/persistence/impl/AttributeHolder.java index 24385fd33f..4fddb5968b 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/AttributeHolder.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/AttributeHolder.java @@ -5,8 +5,8 @@ package com.blazebit.persistence.impl; -import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.Type; +import jakarta.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.Type; /** * diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/BaseDeleteCriteriaBuilderImpl.java b/core/impl/src/main/java/com/blazebit/persistence/impl/BaseDeleteCriteriaBuilderImpl.java index afc93b4efe..bf3828ba53 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/BaseDeleteCriteriaBuilderImpl.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/BaseDeleteCriteriaBuilderImpl.java @@ -24,8 +24,8 @@ import com.blazebit.persistence.spi.ExtendedManagedType; import com.blazebit.persistence.spi.ExtendedQuerySupport; -import javax.persistence.Query; -import javax.persistence.TypedQuery; +import jakarta.persistence.Query; +import jakarta.persistence.TypedQuery; import java.util.ArrayList; import java.util.Collections; import java.util.List; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/BaseFinalSetOperationBuilderImpl.java b/core/impl/src/main/java/com/blazebit/persistence/impl/BaseFinalSetOperationBuilderImpl.java index 346b1dd330..192e0ac919 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/BaseFinalSetOperationBuilderImpl.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/BaseFinalSetOperationBuilderImpl.java @@ -30,8 +30,8 @@ import com.blazebit.persistence.spi.OrderByElement; import com.blazebit.persistence.spi.SetOperationType; -import javax.persistence.Query; -import javax.persistence.TypedQuery; +import jakarta.persistence.Query; +import jakarta.persistence.TypedQuery; import java.util.ArrayList; import java.util.Collections; import java.util.HashSet; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/BaseFinalSetOperationSubqueryBuilderImpl.java b/core/impl/src/main/java/com/blazebit/persistence/impl/BaseFinalSetOperationSubqueryBuilderImpl.java index c54f85ec90..982025fd42 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/BaseFinalSetOperationSubqueryBuilderImpl.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/BaseFinalSetOperationSubqueryBuilderImpl.java @@ -10,7 +10,7 @@ import java.util.Map; import java.util.Set; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; import com.blazebit.persistence.BaseFinalSetOperationBuilder; import com.blazebit.persistence.BaseOngoingFinalSetOperationBuilder; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/BaseInsertCriteriaBuilderImpl.java b/core/impl/src/main/java/com/blazebit/persistence/impl/BaseInsertCriteriaBuilderImpl.java index 826d635b53..259202f40e 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/BaseInsertCriteriaBuilderImpl.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/BaseInsertCriteriaBuilderImpl.java @@ -12,7 +12,7 @@ import java.util.Set; import java.util.TreeMap; -import javax.persistence.Query; +import jakarta.persistence.Query; import com.blazebit.persistence.BaseInsertCriteriaBuilder; import com.blazebit.persistence.ReturningBuilder; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/BaseSubqueryBuilderImpl.java b/core/impl/src/main/java/com/blazebit/persistence/impl/BaseSubqueryBuilderImpl.java index 8797b9a1bb..60ef008dbf 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/BaseSubqueryBuilderImpl.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/BaseSubqueryBuilderImpl.java @@ -13,7 +13,7 @@ import com.blazebit.persistence.spi.JpqlFunctionProcessor; import com.blazebit.persistence.spi.SetOperationType; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; import java.util.ArrayList; import java.util.List; import java.util.Map; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/BaseUpdateCriteriaBuilderImpl.java b/core/impl/src/main/java/com/blazebit/persistence/impl/BaseUpdateCriteriaBuilderImpl.java index 974e6d83a0..8dfac5620a 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/BaseUpdateCriteriaBuilderImpl.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/BaseUpdateCriteriaBuilderImpl.java @@ -35,11 +35,11 @@ import com.blazebit.persistence.spi.JpaMetamodelAccessor; import com.blazebit.persistence.spi.UpdateJoinStyle; -import javax.persistence.Query; -import javax.persistence.TypedQuery; -import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.EntityType; -import javax.persistence.metamodel.SingularAttribute; +import jakarta.persistence.Query; +import jakarta.persistence.TypedQuery; +import jakarta.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.SingularAttribute; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/CTEInfo.java b/core/impl/src/main/java/com/blazebit/persistence/impl/CTEInfo.java index 1f7658355f..59eeb35141 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/CTEInfo.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/CTEInfo.java @@ -7,7 +7,7 @@ import com.blazebit.persistence.parser.expression.ExpressionCopyContext; -import javax.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.EntityType; import java.util.List; import java.util.Map; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/CTEManager.java b/core/impl/src/main/java/com/blazebit/persistence/impl/CTEManager.java index 4acf6dccb8..353ae5328a 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/CTEManager.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/CTEManager.java @@ -13,7 +13,7 @@ import com.blazebit.persistence.parser.expression.ExpressionCopyContext; import com.blazebit.persistence.parser.util.JpaMetamodelUtils; -import javax.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.EntityType; import java.util.Collection; import java.util.Collections; import java.util.IdentityHashMap; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/CachingJpaProvider.java b/core/impl/src/main/java/com/blazebit/persistence/impl/CachingJpaProvider.java index 2c1e9c0e54..40dcd1b8df 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/CachingJpaProvider.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/CachingJpaProvider.java @@ -12,10 +12,10 @@ import com.blazebit.persistence.spi.JpaMetamodelAccessor; import com.blazebit.persistence.spi.JpaProvider; -import javax.persistence.EntityManager; -import javax.persistence.Query; -import javax.persistence.metamodel.EntityType; -import javax.persistence.metamodel.ManagedType; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Query; +import jakarta.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.ManagedType; import java.util.List; import java.util.Map; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/CallerChecker.java b/core/impl/src/main/java/com/blazebit/persistence/impl/CallerChecker.java index 1cfc708218..d1214d0199 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/CallerChecker.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/CallerChecker.java @@ -5,6 +5,8 @@ package com.blazebit.persistence.impl; +import java.util.Set; + /** * A contract that checks if the caller of our caller is trusted. On Java 9 this will actually check modules. * @@ -17,6 +19,8 @@ private CallerChecker() { } public static boolean isCallerTrusted() { - return true; + return StackWalker.getInstance(Set.of(), 2).walk(stackFrames -> { + return stackFrames.limit(2).allMatch(s -> s.getClassName().startsWith("com.blazebit.persistence.")); + }); } } diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/CommonQueryBuilderAdapter.java b/core/impl/src/main/java/com/blazebit/persistence/impl/CommonQueryBuilderAdapter.java index 05e212cbc5..7bbd6ab17e 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/CommonQueryBuilderAdapter.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/CommonQueryBuilderAdapter.java @@ -10,9 +10,9 @@ import java.util.Map; import java.util.Set; -import javax.persistence.Parameter; -import javax.persistence.TemporalType; -import javax.persistence.criteria.ParameterExpression; +import jakarta.persistence.Parameter; +import jakarta.persistence.TemporalType; +import jakarta.persistence.criteria.ParameterExpression; import com.blazebit.persistence.CommonQueryBuilder; import com.blazebit.persistence.CriteriaBuilderFactory; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/ConstantifiedJoinNodeAttributeCollector.java b/core/impl/src/main/java/com/blazebit/persistence/impl/ConstantifiedJoinNodeAttributeCollector.java index 65ae08eb6a..f489df9264 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/ConstantifiedJoinNodeAttributeCollector.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/ConstantifiedJoinNodeAttributeCollector.java @@ -44,11 +44,11 @@ import com.blazebit.persistence.spi.ExtendedAttribute; import com.blazebit.persistence.spi.ExtendedManagedType; -import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.EmbeddableType; -import javax.persistence.metamodel.ManagedType; -import javax.persistence.metamodel.PluralAttribute; -import javax.persistence.metamodel.SingularAttribute; +import jakarta.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.EmbeddableType; +import jakarta.persistence.metamodel.ManagedType; +import jakarta.persistence.metamodel.PluralAttribute; +import jakarta.persistence.metamodel.SingularAttribute; import java.util.AbstractMap; import java.util.Collections; import java.util.HashMap; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/CriteriaBuilderConfigurationImpl.java b/core/impl/src/main/java/com/blazebit/persistence/impl/CriteriaBuilderConfigurationImpl.java index 9b47c2d05d..5ceacd0414 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/CriteriaBuilderConfigurationImpl.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/CriteriaBuilderConfigurationImpl.java @@ -548,7 +548,7 @@ import java.util.ServiceLoader; import java.util.Set; import java.util.TimeZone; -import javax.persistence.EntityManagerFactory; +import jakarta.persistence.EntityManagerFactory; /** * diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/CriteriaBuilderFactoryImpl.java b/core/impl/src/main/java/com/blazebit/persistence/impl/CriteriaBuilderFactoryImpl.java index ff88455d85..0988c7fd47 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/CriteriaBuilderFactoryImpl.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/CriteriaBuilderFactoryImpl.java @@ -30,9 +30,9 @@ import com.blazebit.persistence.spi.JpqlFunctionKind; import com.blazebit.persistence.spi.PackageOpener; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.metamodel.Metamodel; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.metamodel.Metamodel; import java.util.Collections; import java.util.HashMap; import java.util.List; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/CriteriaBuilderImpl.java b/core/impl/src/main/java/com/blazebit/persistence/impl/CriteriaBuilderImpl.java index 081f89ffbb..94d7ae208e 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/CriteriaBuilderImpl.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/CriteriaBuilderImpl.java @@ -13,7 +13,7 @@ import com.blazebit.persistence.StartOngoingSetOperationCriteriaBuilder; import com.blazebit.persistence.spi.SetOperationType; -import javax.persistence.TypedQuery; +import jakarta.persistence.TypedQuery; /** * diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/EmbeddableSplittingVisitor.java b/core/impl/src/main/java/com/blazebit/persistence/impl/EmbeddableSplittingVisitor.java index c0be23bcbb..de901edf4a 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/EmbeddableSplittingVisitor.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/EmbeddableSplittingVisitor.java @@ -37,14 +37,14 @@ import com.blazebit.persistence.spi.ExtendedManagedType; import com.blazebit.persistence.spi.JpaProvider; -import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.EmbeddableType; -import javax.persistence.metamodel.EntityType; -import javax.persistence.metamodel.ManagedType; -import javax.persistence.metamodel.MapAttribute; -import javax.persistence.metamodel.PluralAttribute; -import javax.persistence.metamodel.SingularAttribute; -import javax.persistence.metamodel.Type; +import jakarta.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.EmbeddableType; +import jakarta.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.ManagedType; +import jakarta.persistence.metamodel.MapAttribute; +import jakarta.persistence.metamodel.PluralAttribute; +import jakarta.persistence.metamodel.SingularAttribute; +import jakarta.persistence.metamodel.Type; import java.util.ArrayList; import java.util.Collection; import java.util.List; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/EntityMetamodelImpl.java b/core/impl/src/main/java/com/blazebit/persistence/impl/EntityMetamodelImpl.java index 295c559b7b..45ff186893 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/EntityMetamodelImpl.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/EntityMetamodelImpl.java @@ -18,19 +18,19 @@ import com.blazebit.persistence.spi.JpaProviderFactory; import com.blazebit.reflection.ReflectionUtils; -import javax.persistence.EntityManager; -import javax.persistence.EntityManagerFactory; -import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.BasicType; -import javax.persistence.metamodel.EmbeddableType; -import javax.persistence.metamodel.EntityType; -import javax.persistence.metamodel.IdentifiableType; -import javax.persistence.metamodel.ManagedType; -import javax.persistence.metamodel.MapAttribute; -import javax.persistence.metamodel.Metamodel; -import javax.persistence.metamodel.PluralAttribute; -import javax.persistence.metamodel.SingularAttribute; -import javax.persistence.metamodel.Type; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityManagerFactory; +import jakarta.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.BasicType; +import jakarta.persistence.metamodel.EmbeddableType; +import jakarta.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.IdentifiableType; +import jakarta.persistence.metamodel.ManagedType; +import jakarta.persistence.metamodel.MapAttribute; +import jakarta.persistence.metamodel.Metamodel; +import jakarta.persistence.metamodel.PluralAttribute; +import jakarta.persistence.metamodel.SingularAttribute; +import jakarta.persistence.metamodel.Type; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.AbstractMap; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/EntitySelectResolveVisitor.java b/core/impl/src/main/java/com/blazebit/persistence/impl/EntitySelectResolveVisitor.java index 359af758a6..0b630d7144 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/EntitySelectResolveVisitor.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/EntitySelectResolveVisitor.java @@ -20,9 +20,9 @@ import com.blazebit.persistence.spi.ExtendedManagedType; import com.blazebit.persistence.spi.JpaProvider; -import javax.persistence.FetchType; -import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.EntityType; +import jakarta.persistence.FetchType; +import jakarta.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.EntityType; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/ExpressionUtils.java b/core/impl/src/main/java/com/blazebit/persistence/impl/ExpressionUtils.java index 8a069a1143..cc64b0e6b7 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/ExpressionUtils.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/ExpressionUtils.java @@ -37,17 +37,17 @@ import com.blazebit.persistence.spi.ExtendedAttribute; import com.blazebit.persistence.spi.ExtendedManagedType; -import javax.persistence.Basic; -import javax.persistence.ElementCollection; -import javax.persistence.FetchType; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.OneToOne; -import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.ManagedType; -import javax.persistence.metamodel.SingularAttribute; -import javax.persistence.metamodel.Type; +import jakarta.persistence.Basic; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.FetchType; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OneToOne; +import jakarta.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.ManagedType; +import jakarta.persistence.metamodel.SingularAttribute; +import jakarta.persistence.metamodel.Type; import java.lang.annotation.Annotation; import java.lang.reflect.Field; import java.lang.reflect.Member; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/ExtendedParameter.java b/core/impl/src/main/java/com/blazebit/persistence/impl/ExtendedParameter.java index 8c61b60a0d..a8bd632bb1 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/ExtendedParameter.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/ExtendedParameter.java @@ -5,7 +5,7 @@ package com.blazebit.persistence.impl; -import javax.persistence.Parameter; +import jakarta.persistence.Parameter; /** * @author Christian Beikov diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/FunctionalDependencyAnalyzerVisitor.java b/core/impl/src/main/java/com/blazebit/persistence/impl/FunctionalDependencyAnalyzerVisitor.java index 7258ed8ea4..e46992380b 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/FunctionalDependencyAnalyzerVisitor.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/FunctionalDependencyAnalyzerVisitor.java @@ -38,13 +38,13 @@ import com.blazebit.persistence.spi.ExtendedManagedType; import com.blazebit.persistence.spi.JpaProvider; -import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.EmbeddableType; -import javax.persistence.metamodel.EntityType; -import javax.persistence.metamodel.ManagedType; -import javax.persistence.metamodel.PluralAttribute; -import javax.persistence.metamodel.SingularAttribute; -import javax.persistence.metamodel.Type; +import jakarta.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.EmbeddableType; +import jakarta.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.ManagedType; +import jakarta.persistence.metamodel.PluralAttribute; +import jakarta.persistence.metamodel.SingularAttribute; +import jakarta.persistence.metamodel.Type; import java.util.AbstractMap; import java.util.ArrayList; import java.util.Collections; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/JoinManager.java b/core/impl/src/main/java/com/blazebit/persistence/impl/JoinManager.java index 7593ced05b..e1e3267c8a 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/JoinManager.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/JoinManager.java @@ -65,16 +65,16 @@ import com.blazebit.persistence.spi.JpaMetamodelAccessor; import com.blazebit.persistence.spi.JpaProvider; -import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.EmbeddableType; -import javax.persistence.metamodel.EntityType; -import javax.persistence.metamodel.IdentifiableType; -import javax.persistence.metamodel.ListAttribute; -import javax.persistence.metamodel.ManagedType; -import javax.persistence.metamodel.MapAttribute; -import javax.persistence.metamodel.PluralAttribute; -import javax.persistence.metamodel.SingularAttribute; -import javax.persistence.metamodel.Type; +import jakarta.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.EmbeddableType; +import jakarta.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.IdentifiableType; +import jakarta.persistence.metamodel.ListAttribute; +import jakarta.persistence.metamodel.ManagedType; +import jakarta.persistence.metamodel.MapAttribute; +import jakarta.persistence.metamodel.PluralAttribute; +import jakarta.persistence.metamodel.SingularAttribute; +import jakarta.persistence.metamodel.Type; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/JoinNode.java b/core/impl/src/main/java/com/blazebit/persistence/impl/JoinNode.java index d97085bb0a..098a153857 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/JoinNode.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/JoinNode.java @@ -27,11 +27,11 @@ import com.blazebit.persistence.parser.predicate.Predicate; import com.blazebit.persistence.parser.util.JpaMetamodelUtils; -import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.EntityType; -import javax.persistence.metamodel.IdentifiableType; -import javax.persistence.metamodel.ManagedType; -import javax.persistence.metamodel.Type; +import jakarta.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.IdentifiableType; +import jakarta.persistence.metamodel.ManagedType; +import jakarta.persistence.metamodel.Type; import java.util.ArrayList; import java.util.Arrays; import java.util.Collections; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/JoinTreeNode.java b/core/impl/src/main/java/com/blazebit/persistence/impl/JoinTreeNode.java index 80d448c5f6..37ae9f5b41 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/JoinTreeNode.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/JoinTreeNode.java @@ -10,7 +10,7 @@ import java.util.NavigableMap; import java.util.TreeMap; -import javax.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.Attribute; /** * diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/JoinVisitor.java b/core/impl/src/main/java/com/blazebit/persistence/impl/JoinVisitor.java index 8e8e2ef858..5ab5ce2a7a 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/JoinVisitor.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/JoinVisitor.java @@ -32,9 +32,9 @@ import com.blazebit.persistence.parser.util.ExpressionUtils; import com.blazebit.persistence.spi.ExtendedManagedType; -import javax.persistence.metamodel.EntityType; -import javax.persistence.metamodel.ManagedType; -import javax.persistence.metamodel.Type; +import jakarta.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.ManagedType; +import jakarta.persistence.metamodel.Type; import java.util.ArrayList; import java.util.Collection; import java.util.HashSet; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/JpaUtils.java b/core/impl/src/main/java/com/blazebit/persistence/impl/JpaUtils.java index 206e51fcc4..3e79377f0a 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/JpaUtils.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/JpaUtils.java @@ -29,13 +29,13 @@ import com.blazebit.persistence.spi.JpaMetamodelAccessor; import com.blazebit.persistence.spi.JpaProvider; -import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.EntityType; -import javax.persistence.metamodel.ListAttribute; -import javax.persistence.metamodel.ManagedType; -import javax.persistence.metamodel.MapAttribute; -import javax.persistence.metamodel.PluralAttribute; -import javax.persistence.metamodel.Type; +import jakarta.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.ListAttribute; +import jakarta.persistence.metamodel.ManagedType; +import jakarta.persistence.metamodel.MapAttribute; +import jakarta.persistence.metamodel.PluralAttribute; +import jakarta.persistence.metamodel.Type; import java.util.ArrayDeque; import java.util.ArrayList; import java.util.Arrays; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/LeafOngoingSetOperationSubqueryBuilderImpl.java b/core/impl/src/main/java/com/blazebit/persistence/impl/LeafOngoingSetOperationSubqueryBuilderImpl.java index 0ab8520536..b5f954d7e8 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/LeafOngoingSetOperationSubqueryBuilderImpl.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/LeafOngoingSetOperationSubqueryBuilderImpl.java @@ -13,7 +13,7 @@ import com.blazebit.persistence.parser.expression.ExpressionFactory; import com.blazebit.persistence.spi.SetOperationType; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; import java.util.Map; /** diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/MainQuery.java b/core/impl/src/main/java/com/blazebit/persistence/impl/MainQuery.java index 2ded406e35..0e9dc918ee 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/MainQuery.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/MainQuery.java @@ -12,7 +12,7 @@ import com.blazebit.persistence.spi.JpqlFunction; import com.blazebit.persistence.spi.JpqlMacro; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import java.util.Map; /** diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/ManagedEntityAssociationParameterTransformerFactory.java b/core/impl/src/main/java/com/blazebit/persistence/impl/ManagedEntityAssociationParameterTransformerFactory.java index 931987abd5..7a7ebec133 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/ManagedEntityAssociationParameterTransformerFactory.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/ManagedEntityAssociationParameterTransformerFactory.java @@ -5,8 +5,8 @@ package com.blazebit.persistence.impl; -import javax.persistence.EntityManager; -import javax.persistence.Query; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Query; /** * @author Christian Beikov diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/OngoingSetOperationSubqueryBuilderImpl.java b/core/impl/src/main/java/com/blazebit/persistence/impl/OngoingSetOperationSubqueryBuilderImpl.java index 9bb5b8fba9..f91cf9145a 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/OngoingSetOperationSubqueryBuilderImpl.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/OngoingSetOperationSubqueryBuilderImpl.java @@ -13,7 +13,7 @@ import com.blazebit.persistence.parser.expression.ExpressionFactory; import com.blazebit.persistence.spi.SetOperationType; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; import java.util.Map; /** diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/PaginatedCriteriaBuilderImpl.java b/core/impl/src/main/java/com/blazebit/persistence/impl/PaginatedCriteriaBuilderImpl.java index 7687260fc1..ae71820cd8 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/PaginatedCriteriaBuilderImpl.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/PaginatedCriteriaBuilderImpl.java @@ -55,8 +55,8 @@ import com.blazebit.persistence.parser.predicate.Predicate; import com.blazebit.persistence.spi.AttributeAccessor; -import javax.persistence.Parameter; -import javax.persistence.TypedQuery; +import jakarta.persistence.Parameter; +import jakarta.persistence.TypedQuery; import java.util.AbstractMap; import java.util.ArrayList; import java.util.Arrays; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/PaginatedTypedQueryImpl.java b/core/impl/src/main/java/com/blazebit/persistence/impl/PaginatedTypedQueryImpl.java index fef09c3104..1efe0a64b2 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/PaginatedTypedQueryImpl.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/PaginatedTypedQueryImpl.java @@ -17,16 +17,16 @@ import com.blazebit.persistence.impl.keyset.KeysetPaginationHelper; import com.blazebit.persistence.impl.util.SetView; -import javax.persistence.FlushModeType; -import javax.persistence.LockModeType; -import javax.persistence.NoResultException; -import javax.persistence.NonUniqueResultException; -import javax.persistence.Parameter; -import javax.persistence.PersistenceException; -import javax.persistence.Query; -import javax.persistence.TemporalType; -import javax.persistence.TypedQuery; -import javax.persistence.criteria.ParameterExpression; +import jakarta.persistence.FlushModeType; +import jakarta.persistence.LockModeType; +import jakarta.persistence.NoResultException; +import jakarta.persistence.NonUniqueResultException; +import jakarta.persistence.Parameter; +import jakarta.persistence.PersistenceException; +import jakarta.persistence.Query; +import jakarta.persistence.TemporalType; +import jakarta.persistence.TypedQuery; +import jakarta.persistence.criteria.ParameterExpression; import java.io.Serializable; import java.util.ArrayList; import java.util.Arrays; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/ParameterManager.java b/core/impl/src/main/java/com/blazebit/persistence/impl/ParameterManager.java index c7d60ee7bf..2b9cf058ce 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/ParameterManager.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/ParameterManager.java @@ -14,9 +14,9 @@ import com.blazebit.persistence.spi.AttributeAccessor; import com.blazebit.persistence.spi.JpaProvider; -import javax.persistence.Parameter; -import javax.persistence.Query; -import javax.persistence.TemporalType; +import jakarta.persistence.Parameter; +import jakarta.persistence.Query; +import jakarta.persistence.TemporalType; import java.util.ArrayList; import java.util.Calendar; import java.util.Collection; @@ -59,7 +59,7 @@ public class ParameterManager { private final Map valuesParameters = new TreeMap<>(); private final ParameterRegistrationVisitor parameterRegistrationVisitor; private final ParameterUnregistrationVisitor parameterUnregistrationVisitor; - private Map, String> criteriaNameMapping; + private Map, String> criteriaNameMapping; private int positionalOffset = -1; // Records the last positional parameter index that was used public ParameterManager(JpaProvider jpaProvider, EntityMetamodel entityMetamodel) { @@ -183,7 +183,7 @@ void collectParameterListNames(Query q, Set parameterListNames, String s String parameterName = p.getName(); // In case of positional parameters, we convert the position to a string and look it up instead if (parameterName == null) { - if (criteriaNameMapping != null && p instanceof javax.persistence.criteria.ParameterExpression) { + if (criteriaNameMapping != null && p instanceof jakarta.persistence.criteria.ParameterExpression) { parameterName = criteriaNameMapping.get(p); } else { parameterName = p.getPosition().toString(); @@ -208,7 +208,7 @@ void parameterizeQuery(Query q, String skippedParameterPrefix) { String parameterName = p.getName(); // In case of positional parameters, we convert the position to a string and look it up instead if (parameterName == null) { - if (criteriaNameMapping != null && p instanceof javax.persistence.criteria.ParameterExpression) { + if (criteriaNameMapping != null && p instanceof jakarta.persistence.criteria.ParameterExpression) { parameterName = criteriaNameMapping.get(p); } else { parameterName = p.getPosition().toString(); @@ -259,7 +259,7 @@ public Collection> getParameterImpls() { return parameters.values(); } - public Map, String> getCriteriaNameMapping() { + public Map, String> getCriteriaNameMapping() { return criteriaNameMapping; } @@ -503,7 +503,7 @@ public void setParameterType(String parameterName, Class type) { parameter.setParameterType((Class) type); } - public void registerCriteriaParameter(String parameterName, javax.persistence.criteria.ParameterExpression parameterExpression) { + public void registerCriteriaParameter(String parameterName, jakarta.persistence.criteria.ParameterExpression parameterExpression) { if (parameterName == null) { throw new NullPointerException("parameterName"); } @@ -540,7 +540,7 @@ public static final class ParameterImpl implements ExtendedParameter { private final Map>> clauseTypes; private boolean usedInImplicitGroupBy; private Class parameterType; - private javax.persistence.criteria.ParameterExpression criteriaParameter; + private jakarta.persistence.criteria.ParameterExpression criteriaParameter; private T value; private boolean valueSet; private ParameterValueTransformer transformer; @@ -619,11 +619,11 @@ public void setParameterType(Class parameterType) { this.parameterType = parameterType; } - public javax.persistence.criteria.ParameterExpression getCriteriaParameter() { + public jakarta.persistence.criteria.ParameterExpression getCriteriaParameter() { return criteriaParameter; } - public void setCriteriaParameter(javax.persistence.criteria.ParameterExpression criteriaParameter) { + public void setCriteriaParameter(jakarta.persistence.criteria.ParameterExpression criteriaParameter) { this.criteriaParameter = criteriaParameter; this.parameterType = criteriaParameter.getParameterType(); } diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/ParameterValueTransformer.java b/core/impl/src/main/java/com/blazebit/persistence/impl/ParameterValueTransformer.java index d550414ae6..3fdaac805c 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/ParameterValueTransformer.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/ParameterValueTransformer.java @@ -5,7 +5,7 @@ package com.blazebit.persistence.impl; -import javax.persistence.Query; +import jakarta.persistence.Query; /** * @author Christian Beikov diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/ResolvingQueryGenerator.java b/core/impl/src/main/java/com/blazebit/persistence/impl/ResolvingQueryGenerator.java index f9a0dcb153..42bf21cfd5 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/ResolvingQueryGenerator.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/ResolvingQueryGenerator.java @@ -51,13 +51,13 @@ import com.blazebit.persistence.spi.JpaProvider; import com.blazebit.persistence.spi.JpqlFunction; -import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.EmbeddableType; -import javax.persistence.metamodel.EntityType; -import javax.persistence.metamodel.IdentifiableType; -import javax.persistence.metamodel.ManagedType; -import javax.persistence.metamodel.MapAttribute; -import javax.persistence.metamodel.Type; +import jakarta.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.EmbeddableType; +import jakarta.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.IdentifiableType; +import jakarta.persistence.metamodel.ManagedType; +import jakarta.persistence.metamodel.MapAttribute; +import jakarta.persistence.metamodel.Type; import java.sql.Time; import java.sql.Timestamp; import java.util.Arrays; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/SelectManager.java b/core/impl/src/main/java/com/blazebit/persistence/impl/SelectManager.java index 484b1a1626..1e41273561 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/SelectManager.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/SelectManager.java @@ -50,11 +50,11 @@ import com.blazebit.persistence.spi.JpqlFunction; import com.blazebit.persistence.spi.JpqlFunctionProcessor; -import javax.persistence.Tuple; -import javax.persistence.metamodel.EmbeddableType; -import javax.persistence.metamodel.IdentifiableType; -import javax.persistence.metamodel.ManagedType; -import javax.persistence.metamodel.SingularAttribute; +import jakarta.persistence.Tuple; +import jakarta.persistence.metamodel.EmbeddableType; +import jakarta.persistence.metamodel.IdentifiableType; +import jakarta.persistence.metamodel.ManagedType; +import jakarta.persistence.metamodel.SingularAttribute; import java.lang.reflect.Constructor; import java.util.ArrayList; import java.util.Collection; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/SimplePathReference.java b/core/impl/src/main/java/com/blazebit/persistence/impl/SimplePathReference.java index 9e9403d907..3ed1eb0912 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/SimplePathReference.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/SimplePathReference.java @@ -11,7 +11,7 @@ import com.blazebit.persistence.parser.expression.BaseNode; import com.blazebit.persistence.parser.expression.PathReference; -import javax.persistence.metamodel.Type; +import jakarta.persistence.metamodel.Type; /** * @author Christian Beikov diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/SplittingParameterTransformer.java b/core/impl/src/main/java/com/blazebit/persistence/impl/SplittingParameterTransformer.java index 87a1fb1c46..d5de775085 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/SplittingParameterTransformer.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/SplittingParameterTransformer.java @@ -9,9 +9,9 @@ import com.blazebit.persistence.parser.util.JpaMetamodelUtils; import com.blazebit.reflection.ReflectionUtils; -import javax.persistence.Query; -import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.ManagedType; +import jakarta.persistence.Query; +import jakarta.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.ManagedType; import java.lang.reflect.Field; import java.lang.reflect.Member; import java.lang.reflect.Method; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/SplittingVisitor.java b/core/impl/src/main/java/com/blazebit/persistence/impl/SplittingVisitor.java index b85d201835..23fb74c7a0 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/SplittingVisitor.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/SplittingVisitor.java @@ -15,7 +15,7 @@ import com.blazebit.persistence.parser.expression.PropertyExpression; import com.blazebit.persistence.spi.JpaProvider; -import javax.persistence.metamodel.Type; +import jakarta.persistence.metamodel.Type; import java.util.ArrayList; import java.util.List; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/StartOngoingSetOperationSubqueryBuilderImpl.java b/core/impl/src/main/java/com/blazebit/persistence/impl/StartOngoingSetOperationSubqueryBuilderImpl.java index b1a74563ab..9362b97229 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/StartOngoingSetOperationSubqueryBuilderImpl.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/StartOngoingSetOperationSubqueryBuilderImpl.java @@ -13,7 +13,7 @@ import com.blazebit.persistence.parser.expression.ExpressionFactory; import com.blazebit.persistence.spi.SetOperationType; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; import java.util.Map; /** diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/SubqueryBuilderImpl.java b/core/impl/src/main/java/com/blazebit/persistence/impl/SubqueryBuilderImpl.java index 828c194827..41c59b17de 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/SubqueryBuilderImpl.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/SubqueryBuilderImpl.java @@ -15,7 +15,7 @@ import com.blazebit.persistence.parser.expression.ExpressionFactory; import com.blazebit.persistence.spi.SetOperationType; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; import java.util.ArrayList; import java.util.List; import java.util.Map; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/SubqueryInitiatorImpl.java b/core/impl/src/main/java/com/blazebit/persistence/impl/SubqueryInitiatorImpl.java index cd349ec812..3cd5d023f7 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/SubqueryInitiatorImpl.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/SubqueryInitiatorImpl.java @@ -15,7 +15,7 @@ import com.blazebit.persistence.parser.expression.ExpressionCopyContext; import com.blazebit.persistence.parser.expression.ExpressionFactory; -import javax.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.EntityType; import java.util.Arrays; import java.util.Collection; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/TransientEntityAssociationParameterTransformerFactory.java b/core/impl/src/main/java/com/blazebit/persistence/impl/TransientEntityAssociationParameterTransformerFactory.java index f179ccc057..e9e7e02cbc 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/TransientEntityAssociationParameterTransformerFactory.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/TransientEntityAssociationParameterTransformerFactory.java @@ -8,8 +8,8 @@ import com.blazebit.persistence.parser.EntityMetamodel; import com.blazebit.persistence.parser.util.JpaMetamodelUtils; -import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.IdentifiableType; +import jakarta.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.IdentifiableType; /** * @author Christian Beikov diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/TreatedJoinAliasInfo.java b/core/impl/src/main/java/com/blazebit/persistence/impl/TreatedJoinAliasInfo.java index 806d7ae35b..5e82e8861e 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/TreatedJoinAliasInfo.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/TreatedJoinAliasInfo.java @@ -5,7 +5,7 @@ package com.blazebit.persistence.impl; -import javax.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.EntityType; /** * This is the join alias info for "special" join nodes that aren't rendered as joins diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/ValuesParameterBinder.java b/core/impl/src/main/java/com/blazebit/persistence/impl/ValuesParameterBinder.java index 7adcdfe6e8..e992bf9af6 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/ValuesParameterBinder.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/ValuesParameterBinder.java @@ -7,7 +7,7 @@ import com.blazebit.persistence.spi.AttributeAccessor; -import javax.persistence.Query; +import jakarta.persistence.Query; import java.util.Collection; import java.util.Iterator; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/builder/object/DelegatingTupleObjectBuilder.java b/core/impl/src/main/java/com/blazebit/persistence/impl/builder/object/DelegatingTupleObjectBuilder.java index 4c4131ac34..5e6f33f81c 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/builder/object/DelegatingTupleObjectBuilder.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/builder/object/DelegatingTupleObjectBuilder.java @@ -8,7 +8,7 @@ import com.blazebit.persistence.ObjectBuilder; import com.blazebit.persistence.impl.SelectInfo; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; import java.util.List; import java.util.Map; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/builder/object/ReturningTupleObjectBuilder.java b/core/impl/src/main/java/com/blazebit/persistence/impl/builder/object/ReturningTupleObjectBuilder.java index a29c0fcf28..9112bae244 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/builder/object/ReturningTupleObjectBuilder.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/builder/object/ReturningTupleObjectBuilder.java @@ -9,8 +9,8 @@ import java.util.Arrays; import java.util.List; -import javax.persistence.Tuple; -import javax.persistence.TupleElement; +import jakarta.persistence.Tuple; +import jakarta.persistence.TupleElement; import com.blazebit.persistence.ReturningObjectBuilder; import com.blazebit.persistence.SimpleReturningBuilder; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/builder/object/TupleObjectBuilder.java b/core/impl/src/main/java/com/blazebit/persistence/impl/builder/object/TupleObjectBuilder.java index af80250163..1174125500 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/builder/object/TupleObjectBuilder.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/builder/object/TupleObjectBuilder.java @@ -10,8 +10,8 @@ import java.util.List; import java.util.Map; -import javax.persistence.Tuple; -import javax.persistence.TupleElement; +import jakarta.persistence.Tuple; +import jakarta.persistence.TupleElement; import com.blazebit.persistence.ObjectBuilder; import com.blazebit.persistence.SelectBuilder; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/builder/predicate/AbstractQuantifiablePredicateBuilder.java b/core/impl/src/main/java/com/blazebit/persistence/impl/builder/predicate/AbstractQuantifiablePredicateBuilder.java index c45cde33cd..9bad38a91d 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/builder/predicate/AbstractQuantifiablePredicateBuilder.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/builder/predicate/AbstractQuantifiablePredicateBuilder.java @@ -42,7 +42,7 @@ import com.blazebit.persistence.parser.predicate.QuantifiableBinaryExpressionPredicate; import com.blazebit.persistence.parser.util.TypeUtils; -import javax.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.EntityType; import java.util.Collection; /** diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/function/entity/ValuesEntity.java b/core/impl/src/main/java/com/blazebit/persistence/impl/function/entity/ValuesEntity.java index a604c45edf..090271e25c 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/function/entity/ValuesEntity.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/function/entity/ValuesEntity.java @@ -7,9 +7,9 @@ import com.blazebit.persistence.CTE; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; import java.io.Serializable; /** diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/plan/CustomModificationQueryPlan.java b/core/impl/src/main/java/com/blazebit/persistence/impl/plan/CustomModificationQueryPlan.java index c1cdb26eee..87b4fada74 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/plan/CustomModificationQueryPlan.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/plan/CustomModificationQueryPlan.java @@ -8,7 +8,7 @@ import com.blazebit.persistence.spi.ExtendedQuerySupport; import com.blazebit.persistence.spi.ServiceProvider; -import javax.persistence.Query; +import jakarta.persistence.Query; import java.util.List; /** diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/plan/CustomReturningModificationQueryPlan.java b/core/impl/src/main/java/com/blazebit/persistence/impl/plan/CustomReturningModificationQueryPlan.java index a118271ebe..c6907fd2ef 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/plan/CustomReturningModificationQueryPlan.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/plan/CustomReturningModificationQueryPlan.java @@ -12,7 +12,7 @@ import com.blazebit.persistence.spi.ExtendedQuerySupport; import com.blazebit.persistence.spi.ServiceProvider; -import javax.persistence.Query; +import jakarta.persistence.Query; import java.util.ArrayList; import java.util.Arrays; import java.util.List; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/plan/CustomSelectQueryPlan.java b/core/impl/src/main/java/com/blazebit/persistence/impl/plan/CustomSelectQueryPlan.java index 72cdc00ddd..2fb5518617 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/plan/CustomSelectQueryPlan.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/plan/CustomSelectQueryPlan.java @@ -8,7 +8,7 @@ import com.blazebit.persistence.spi.ExtendedQuerySupport; import com.blazebit.persistence.spi.ServiceProvider; -import javax.persistence.Query; +import jakarta.persistence.Query; import java.util.List; import java.util.stream.Stream; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/plan/DefaultModificationQueryPlan.java b/core/impl/src/main/java/com/blazebit/persistence/impl/plan/DefaultModificationQueryPlan.java index 33574cccc0..b65329c8c0 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/plan/DefaultModificationQueryPlan.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/plan/DefaultModificationQueryPlan.java @@ -7,7 +7,7 @@ import com.blazebit.persistence.spi.DbmsStatementType; -import javax.persistence.Query; +import jakarta.persistence.Query; /** * diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/plan/DefaultSelectQueryPlan.java b/core/impl/src/main/java/com/blazebit/persistence/impl/plan/DefaultSelectQueryPlan.java index 03237770f8..2f8588e76c 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/plan/DefaultSelectQueryPlan.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/plan/DefaultSelectQueryPlan.java @@ -5,7 +5,7 @@ package com.blazebit.persistence.impl.plan; -import javax.persistence.Query; +import jakarta.persistence.Query; import java.util.List; import java.util.stream.Stream; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/query/AbstractCustomQuery.java b/core/impl/src/main/java/com/blazebit/persistence/impl/query/AbstractCustomQuery.java index 797a78787e..1c15d470e0 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/query/AbstractCustomQuery.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/query/AbstractCustomQuery.java @@ -11,10 +11,10 @@ import com.blazebit.persistence.impl.util.SetView; import com.blazebit.persistence.spi.CteQueryWrapper; -import javax.persistence.Parameter; -import javax.persistence.Query; -import javax.persistence.TemporalType; -import javax.persistence.criteria.ParameterExpression; +import jakarta.persistence.Parameter; +import jakarta.persistence.Query; +import jakarta.persistence.TemporalType; +import jakarta.persistence.criteria.ParameterExpression; import java.util.Calendar; import java.util.Collection; import java.util.Collections; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/query/CTEQuerySpecification.java b/core/impl/src/main/java/com/blazebit/persistence/impl/query/CTEQuerySpecification.java index f2448ecc0b..3790c61800 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/query/CTEQuerySpecification.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/query/CTEQuerySpecification.java @@ -8,8 +8,8 @@ import com.blazebit.persistence.impl.AbstractCommonQueryBuilder; import com.blazebit.persistence.impl.plan.SelectQueryPlan; -import javax.persistence.Parameter; -import javax.persistence.Query; +import jakarta.persistence.Parameter; +import jakarta.persistence.Query; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/query/CollectionDeleteModificationQuerySpecification.java b/core/impl/src/main/java/com/blazebit/persistence/impl/query/CollectionDeleteModificationQuerySpecification.java index 02c82e028d..e0573d8e32 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/query/CollectionDeleteModificationQuerySpecification.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/query/CollectionDeleteModificationQuerySpecification.java @@ -10,8 +10,8 @@ import com.blazebit.persistence.impl.util.SqlUtils; import com.blazebit.persistence.spi.DbmsModificationState; -import javax.persistence.Parameter; -import javax.persistence.Query; +import jakarta.persistence.Parameter; +import jakarta.persistence.Query; import java.util.Collection; import java.util.List; import java.util.Map; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/query/CollectionInsertModificationQuerySpecification.java b/core/impl/src/main/java/com/blazebit/persistence/impl/query/CollectionInsertModificationQuerySpecification.java index e7203becce..4134f6d8c3 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/query/CollectionInsertModificationQuerySpecification.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/query/CollectionInsertModificationQuerySpecification.java @@ -10,8 +10,8 @@ import com.blazebit.persistence.impl.util.SqlUtils; import com.blazebit.persistence.spi.DbmsModificationState; -import javax.persistence.Parameter; -import javax.persistence.Query; +import jakarta.persistence.Parameter; +import jakarta.persistence.Query; import java.util.ArrayList; import java.util.Collection; import java.util.HashSet; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/query/CollectionUpdateModificationQuerySpecification.java b/core/impl/src/main/java/com/blazebit/persistence/impl/query/CollectionUpdateModificationQuerySpecification.java index 70f099c3bb..d2fafd4aac 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/query/CollectionUpdateModificationQuerySpecification.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/query/CollectionUpdateModificationQuerySpecification.java @@ -10,8 +10,8 @@ import com.blazebit.persistence.impl.util.SqlUtils; import com.blazebit.persistence.spi.DbmsModificationState; -import javax.persistence.Parameter; -import javax.persistence.Query; +import jakarta.persistence.Parameter; +import jakarta.persistence.Query; import java.util.Collection; import java.util.List; import java.util.Map; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/query/CustomQuerySpecification.java b/core/impl/src/main/java/com/blazebit/persistence/impl/query/CustomQuerySpecification.java index 7e7555e4da..38572910ff 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/query/CustomQuerySpecification.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/query/CustomQuerySpecification.java @@ -18,9 +18,9 @@ import com.blazebit.persistence.spi.LateralStyle; import com.blazebit.persistence.spi.ServiceProvider; -import javax.persistence.EntityManager; -import javax.persistence.Parameter; -import javax.persistence.Query; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Parameter; +import jakarta.persistence.Query; import java.util.ArrayList; import java.util.Collection; import java.util.Collections; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/query/CustomReturningSQLTypedQuery.java b/core/impl/src/main/java/com/blazebit/persistence/impl/query/CustomReturningSQLTypedQuery.java index d00668c4a6..48efbf28e5 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/query/CustomReturningSQLTypedQuery.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/query/CustomReturningSQLTypedQuery.java @@ -9,13 +9,13 @@ import com.blazebit.persistence.impl.ParameterValueTransformer; import com.blazebit.persistence.impl.ValuesParameterBinder; -import javax.persistence.FlushModeType; -import javax.persistence.LockModeType; -import javax.persistence.Parameter; -import javax.persistence.PersistenceException; -import javax.persistence.TemporalType; -import javax.persistence.TypedQuery; -import javax.persistence.criteria.ParameterExpression; +import jakarta.persistence.FlushModeType; +import jakarta.persistence.LockModeType; +import jakarta.persistence.Parameter; +import jakarta.persistence.PersistenceException; +import jakarta.persistence.TemporalType; +import jakarta.persistence.TypedQuery; +import jakarta.persistence.criteria.ParameterExpression; import java.util.*; import java.util.stream.Stream; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/query/CustomSQLQuery.java b/core/impl/src/main/java/com/blazebit/persistence/impl/query/CustomSQLQuery.java index 5ad830c8c6..3fef04de8e 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/query/CustomSQLQuery.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/query/CustomSQLQuery.java @@ -8,11 +8,11 @@ import com.blazebit.persistence.impl.ParameterValueTransformer; import com.blazebit.persistence.impl.ValuesParameterBinder; -import javax.persistence.FlushModeType; -import javax.persistence.LockModeType; -import javax.persistence.PersistenceException; -import javax.persistence.Query; -import javax.persistence.criteria.ParameterExpression; +import jakarta.persistence.FlushModeType; +import jakarta.persistence.LockModeType; +import jakarta.persistence.PersistenceException; +import jakarta.persistence.Query; +import jakarta.persistence.criteria.ParameterExpression; import java.util.List; import java.util.Map; import java.util.stream.Stream; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/query/CustomSQLTypedQuery.java b/core/impl/src/main/java/com/blazebit/persistence/impl/query/CustomSQLTypedQuery.java index 0f7cd16f62..a0ff244b99 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/query/CustomSQLTypedQuery.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/query/CustomSQLTypedQuery.java @@ -8,14 +8,14 @@ import com.blazebit.persistence.impl.ParameterValueTransformer; import com.blazebit.persistence.impl.ValuesParameterBinder; -import javax.persistence.FlushModeType; -import javax.persistence.LockModeType; -import javax.persistence.Parameter; -import javax.persistence.PersistenceException; -import javax.persistence.Query; -import javax.persistence.TemporalType; -import javax.persistence.TypedQuery; -import javax.persistence.criteria.ParameterExpression; +import jakarta.persistence.FlushModeType; +import jakarta.persistence.LockModeType; +import jakarta.persistence.Parameter; +import jakarta.persistence.PersistenceException; +import jakarta.persistence.Query; +import jakarta.persistence.TemporalType; +import jakarta.persistence.TypedQuery; +import jakarta.persistence.criteria.ParameterExpression; import java.util.Calendar; import java.util.Date; import java.util.List; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/query/DefaultQuerySpecification.java b/core/impl/src/main/java/com/blazebit/persistence/impl/query/DefaultQuerySpecification.java index ab9895b0e7..b924efc970 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/query/DefaultQuerySpecification.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/query/DefaultQuerySpecification.java @@ -12,9 +12,9 @@ import com.blazebit.persistence.spi.DbmsStatementType; import com.blazebit.persistence.spi.ExtendedQuerySupport; -import javax.persistence.EntityManager; -import javax.persistence.Parameter; -import javax.persistence.Query; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Parameter; +import jakarta.persistence.Query; import java.util.Arrays; import java.util.Collection; import java.util.List; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/query/DeleteModificationQuerySpecification.java b/core/impl/src/main/java/com/blazebit/persistence/impl/query/DeleteModificationQuerySpecification.java index 777757ac37..669072a5b2 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/query/DeleteModificationQuerySpecification.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/query/DeleteModificationQuerySpecification.java @@ -10,8 +10,8 @@ import com.blazebit.persistence.impl.util.SqlUtils; import com.blazebit.persistence.spi.DbmsModificationState; -import javax.persistence.Parameter; -import javax.persistence.Query; +import jakarta.persistence.Parameter; +import jakarta.persistence.Query; import java.util.ArrayList; import java.util.Collection; import java.util.List; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/query/ModificationQuerySpecification.java b/core/impl/src/main/java/com/blazebit/persistence/impl/query/ModificationQuerySpecification.java index 2fd5463a22..20366b4ecc 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/query/ModificationQuerySpecification.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/query/ModificationQuerySpecification.java @@ -16,8 +16,8 @@ import com.blazebit.persistence.spi.DbmsModificationState; import com.blazebit.persistence.spi.DbmsStatementType; -import javax.persistence.Parameter; -import javax.persistence.Query; +import jakarta.persistence.Parameter; +import jakarta.persistence.Query; import java.util.ArrayList; import java.util.Collection; import java.util.HashMap; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/query/ObjectBuilderTypedQuery.java b/core/impl/src/main/java/com/blazebit/persistence/impl/query/ObjectBuilderTypedQuery.java index b9928e635a..e57adaccd3 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/query/ObjectBuilderTypedQuery.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/query/ObjectBuilderTypedQuery.java @@ -13,10 +13,10 @@ import java.util.function.Function; import java.util.stream.Stream; -import javax.persistence.NoResultException; -import javax.persistence.NonUniqueResultException; -import javax.persistence.TypedQuery; -import javax.persistence.criteria.ParameterExpression; +import jakarta.persistence.NoResultException; +import jakarta.persistence.NonUniqueResultException; +import jakarta.persistence.TypedQuery; +import jakarta.persistence.criteria.ParameterExpression; /** * diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/query/QuerySpecification.java b/core/impl/src/main/java/com/blazebit/persistence/impl/query/QuerySpecification.java index f93731626e..654165761c 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/query/QuerySpecification.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/query/QuerySpecification.java @@ -8,8 +8,8 @@ import com.blazebit.persistence.impl.plan.ModificationQueryPlan; import com.blazebit.persistence.impl.plan.SelectQueryPlan; -import javax.persistence.Parameter; -import javax.persistence.Query; +import jakarta.persistence.Parameter; +import jakarta.persistence.Query; import java.util.Collection; import java.util.List; import java.util.Map; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/query/QueryWrapper.java b/core/impl/src/main/java/com/blazebit/persistence/impl/query/QueryWrapper.java index c6bf138a2f..e0912b8972 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/query/QueryWrapper.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/query/QueryWrapper.java @@ -5,12 +5,12 @@ package com.blazebit.persistence.impl.query; -import javax.persistence.FlushModeType; -import javax.persistence.LockModeType; -import javax.persistence.Parameter; -import javax.persistence.Query; -import javax.persistence.TemporalType; -import javax.persistence.criteria.ParameterExpression; +import jakarta.persistence.FlushModeType; +import jakarta.persistence.LockModeType; +import jakarta.persistence.Parameter; +import jakarta.persistence.Query; +import jakarta.persistence.TemporalType; +import jakarta.persistence.criteria.ParameterExpression; import java.util.Calendar; import java.util.Date; import java.util.HashMap; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/query/SetOperationQuerySpecification.java b/core/impl/src/main/java/com/blazebit/persistence/impl/query/SetOperationQuerySpecification.java index 4798edc029..7bfebfec6f 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/query/SetOperationQuerySpecification.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/query/SetOperationQuerySpecification.java @@ -11,8 +11,8 @@ import com.blazebit.persistence.spi.OrderByElement; import com.blazebit.persistence.spi.SetOperationType; -import javax.persistence.Parameter; -import javax.persistence.Query; +import jakarta.persistence.Parameter; +import jakarta.persistence.Query; import java.util.ArrayList; import java.util.Collection; import java.util.List; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/query/SetTypedQuery.java b/core/impl/src/main/java/com/blazebit/persistence/impl/query/SetTypedQuery.java index 7f9486bbc2..4304e1a3d0 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/query/SetTypedQuery.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/query/SetTypedQuery.java @@ -5,8 +5,8 @@ package com.blazebit.persistence.impl.query; -import javax.persistence.Query; -import javax.persistence.TypedQuery; +import jakarta.persistence.Query; +import jakarta.persistence.TypedQuery; import java.util.List; /** diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/query/TypedQueryWrapper.java b/core/impl/src/main/java/com/blazebit/persistence/impl/query/TypedQueryWrapper.java index da8ac4a522..5870d7829c 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/query/TypedQueryWrapper.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/query/TypedQueryWrapper.java @@ -10,12 +10,12 @@ import java.util.List; import java.util.Map; import java.util.stream.Stream; -import javax.persistence.FlushModeType; -import javax.persistence.LockModeType; -import javax.persistence.Parameter; -import javax.persistence.TemporalType; -import javax.persistence.TypedQuery; -import javax.persistence.criteria.ParameterExpression; +import jakarta.persistence.FlushModeType; +import jakarta.persistence.LockModeType; +import jakarta.persistence.Parameter; +import jakarta.persistence.TemporalType; +import jakarta.persistence.TypedQuery; +import jakarta.persistence.criteria.ParameterExpression; /** * diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/query/UpdateModificationQuerySpecification.java b/core/impl/src/main/java/com/blazebit/persistence/impl/query/UpdateModificationQuerySpecification.java index 9ba6d7a279..921bba7448 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/query/UpdateModificationQuerySpecification.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/query/UpdateModificationQuerySpecification.java @@ -11,8 +11,8 @@ import com.blazebit.persistence.spi.DbmsModificationState; import com.blazebit.persistence.spi.UpdateJoinStyle; -import javax.persistence.Parameter; -import javax.persistence.Query; +import jakarta.persistence.Parameter; +import jakarta.persistence.Query; import java.util.ArrayList; import java.util.Arrays; import java.util.Collection; diff --git a/core/impl/src/main/java/com/blazebit/persistence/impl/transform/SizeTransformationVisitor.java b/core/impl/src/main/java/com/blazebit/persistence/impl/transform/SizeTransformationVisitor.java index af5a116290..94887558b4 100644 --- a/core/impl/src/main/java/com/blazebit/persistence/impl/transform/SizeTransformationVisitor.java +++ b/core/impl/src/main/java/com/blazebit/persistence/impl/transform/SizeTransformationVisitor.java @@ -36,14 +36,14 @@ import com.blazebit.persistence.parser.util.JpaMetamodelUtils; import com.blazebit.persistence.spi.JpaProvider; -import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.EntityType; -import javax.persistence.metamodel.IdentifiableType; -import javax.persistence.metamodel.ManagedType; -import javax.persistence.metamodel.PluralAttribute; -import javax.persistence.metamodel.SingularAttribute; -import javax.persistence.metamodel.Type; -import javax.persistence.metamodel.Type.PersistenceType; +import jakarta.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.IdentifiableType; +import jakarta.persistence.metamodel.ManagedType; +import jakarta.persistence.metamodel.PluralAttribute; +import jakarta.persistence.metamodel.SingularAttribute; +import jakarta.persistence.metamodel.Type; +import jakarta.persistence.metamodel.Type.PersistenceType; import java.util.ArrayList; import java.util.EnumSet; import java.util.HashMap; diff --git a/core/impl/src/main/java/module-info.java b/core/impl/src/main/java/module-info.java new file mode 100644 index 0000000000..03c69c1231 --- /dev/null +++ b/core/impl/src/main/java/module-info.java @@ -0,0 +1,139 @@ +/* + * SPDX-License-Identifier: Apache-2.0 + * Copyright Blazebit + */ + +module com.blazebit.persistence.core.impl { + requires java.sql; + requires jakarta.persistence; + requires com.blazebit.common.utils; + requires com.blazebit.persistence.core; + requires com.blazebit.persistence.core.parser; + exports com.blazebit.persistence.impl; + exports com.blazebit.persistence.impl.builder.expression; + exports com.blazebit.persistence.impl.builder.object; + exports com.blazebit.persistence.impl.builder.predicate; + exports com.blazebit.persistence.impl.dialect; + exports com.blazebit.persistence.impl.function; + exports com.blazebit.persistence.impl.function.alias; + exports com.blazebit.persistence.impl.function.base64; + exports com.blazebit.persistence.impl.function.cast; + exports com.blazebit.persistence.impl.function.chr; + exports com.blazebit.persistence.impl.function.colldml; + exports com.blazebit.persistence.impl.function.coltrunc; + exports com.blazebit.persistence.impl.function.concat; + exports com.blazebit.persistence.impl.function.count; + exports com.blazebit.persistence.impl.function.countwrapper; + exports com.blazebit.persistence.impl.function.dateadd; + exports com.blazebit.persistence.impl.function.dateadd.day; + exports com.blazebit.persistence.impl.function.dateadd.hour; + exports com.blazebit.persistence.impl.function.dateadd.microseconds; + exports com.blazebit.persistence.impl.function.dateadd.milliseconds; + exports com.blazebit.persistence.impl.function.dateadd.minute; + exports com.blazebit.persistence.impl.function.dateadd.month; + exports com.blazebit.persistence.impl.function.dateadd.quarter; + exports com.blazebit.persistence.impl.function.dateadd.second; + exports com.blazebit.persistence.impl.function.dateadd.week; + exports com.blazebit.persistence.impl.function.dateadd.year; + exports com.blazebit.persistence.impl.function.datediff; + exports com.blazebit.persistence.impl.function.datediff.day; + exports com.blazebit.persistence.impl.function.datediff.hour; + exports com.blazebit.persistence.impl.function.datediff.microsecond; + exports com.blazebit.persistence.impl.function.datediff.millisecond; + exports com.blazebit.persistence.impl.function.datediff.minute; + exports com.blazebit.persistence.impl.function.datediff.month; + exports com.blazebit.persistence.impl.function.datediff.quarter; + exports com.blazebit.persistence.impl.function.datediff.second; + exports com.blazebit.persistence.impl.function.datediff.week; + exports com.blazebit.persistence.impl.function.datediff.year; + exports com.blazebit.persistence.impl.function.datetime.day; + exports com.blazebit.persistence.impl.function.datetime.dayofweek; + exports com.blazebit.persistence.impl.function.datetime.dayofyear; + exports com.blazebit.persistence.impl.function.datetime.epoch; + exports com.blazebit.persistence.impl.function.datetime.epochday; + exports com.blazebit.persistence.impl.function.datetime.epochmicro; + exports com.blazebit.persistence.impl.function.datetime.epochmilli; + exports com.blazebit.persistence.impl.function.datetime.hour; + exports com.blazebit.persistence.impl.function.datetime.isodayofweek; + exports com.blazebit.persistence.impl.function.datetime.isoweek; + exports com.blazebit.persistence.impl.function.datetime.microsecond; + exports com.blazebit.persistence.impl.function.datetime.millisecond; + exports com.blazebit.persistence.impl.function.datetime.minute; + exports com.blazebit.persistence.impl.function.datetime.month; + exports com.blazebit.persistence.impl.function.datetime.quarter; + exports com.blazebit.persistence.impl.function.datetime.second; + exports com.blazebit.persistence.impl.function.datetime.week; + exports com.blazebit.persistence.impl.function.datetime.year; + exports com.blazebit.persistence.impl.function.datetime.yearofweek; + exports com.blazebit.persistence.impl.function.datetime.yearweek; + exports com.blazebit.persistence.impl.function.entity; + exports com.blazebit.persistence.impl.function.every; + exports com.blazebit.persistence.impl.function.exist; + exports com.blazebit.persistence.impl.function.greatest; + exports com.blazebit.persistence.impl.function.groupconcat; + exports com.blazebit.persistence.impl.function.grouping; + exports com.blazebit.persistence.impl.function.groupingsets; + exports com.blazebit.persistence.impl.function.jsonget; + exports com.blazebit.persistence.impl.function.jsonset; + exports com.blazebit.persistence.impl.function.least; + exports com.blazebit.persistence.impl.function.limit; + exports com.blazebit.persistence.impl.function.literal; + exports com.blazebit.persistence.impl.function.nullfn; + exports com.blazebit.persistence.impl.function.nullsubquery; + exports com.blazebit.persistence.impl.function.oragg; + exports com.blazebit.persistence.impl.function.pageposition; + exports com.blazebit.persistence.impl.function.param; + exports com.blazebit.persistence.impl.function.querywrapper; + exports com.blazebit.persistence.impl.function.repeat; + exports com.blazebit.persistence.impl.function.replace; + exports com.blazebit.persistence.impl.function.rowvalue; + exports com.blazebit.persistence.impl.function.set; + exports com.blazebit.persistence.impl.function.stringjsonagg; + exports com.blazebit.persistence.impl.function.stringxmlagg; + exports com.blazebit.persistence.impl.function.subquery; + exports com.blazebit.persistence.impl.function.tomultiset; + exports com.blazebit.persistence.impl.function.tostringjson; + exports com.blazebit.persistence.impl.function.tostringxml; + exports com.blazebit.persistence.impl.function.treat; + exports com.blazebit.persistence.impl.function.trunc; + exports com.blazebit.persistence.impl.function.trunc.day; + exports com.blazebit.persistence.impl.function.trunc.hour; + exports com.blazebit.persistence.impl.function.trunc.microseconds; + exports com.blazebit.persistence.impl.function.trunc.milliseconds; + exports com.blazebit.persistence.impl.function.trunc.minute; + exports com.blazebit.persistence.impl.function.trunc.month; + exports com.blazebit.persistence.impl.function.trunc.quarter; + exports com.blazebit.persistence.impl.function.trunc.second; + exports com.blazebit.persistence.impl.function.trunc.week; + exports com.blazebit.persistence.impl.function.trunc.year; + exports com.blazebit.persistence.impl.function.window; + exports com.blazebit.persistence.impl.function.window.avg; + exports com.blazebit.persistence.impl.function.window.count; + exports com.blazebit.persistence.impl.function.window.cumedist; + exports com.blazebit.persistence.impl.function.window.denserank; + exports com.blazebit.persistence.impl.function.window.every; + exports com.blazebit.persistence.impl.function.window.first; + exports com.blazebit.persistence.impl.function.window.groupconcat; + exports com.blazebit.persistence.impl.function.window.lag; + exports com.blazebit.persistence.impl.function.window.last; + exports com.blazebit.persistence.impl.function.window.lead; + exports com.blazebit.persistence.impl.function.window.max; + exports com.blazebit.persistence.impl.function.window.min; + exports com.blazebit.persistence.impl.function.window.nth; + exports com.blazebit.persistence.impl.function.window.ntile; + exports com.blazebit.persistence.impl.function.window.oragg; + exports com.blazebit.persistence.impl.function.window.percentrank; + exports com.blazebit.persistence.impl.function.window.rank; + exports com.blazebit.persistence.impl.function.window.row; + exports com.blazebit.persistence.impl.function.window.sum; + exports com.blazebit.persistence.impl.keyset; + exports com.blazebit.persistence.impl.plan; + exports com.blazebit.persistence.impl.query; + exports com.blazebit.persistence.impl.transform; + exports com.blazebit.persistence.impl.util; + opens com.blazebit.persistence.impl.function.entity to org.hibernate.orm.core, eclipselink; + uses com.blazebit.persistence.spi.EntityManagerFactoryIntegrator; + uses com.blazebit.persistence.spi.ExtendedQuerySupport; + uses com.blazebit.persistence.spi.CriteriaBuilderConfigurationContributor; + provides com.blazebit.persistence.spi.CriteriaBuilderConfigurationProvider with com.blazebit.persistence.impl.CriteriaBuilderConfigurationProviderImpl; +} \ No newline at end of file diff --git a/core/impl/src/main/java9/com/blazebit/persistence/impl/CallerChecker.java b/core/impl/src/main/java9/com/blazebit/persistence/impl/CallerChecker.java deleted file mode 100644 index d1214d0199..0000000000 --- a/core/impl/src/main/java9/com/blazebit/persistence/impl/CallerChecker.java +++ /dev/null @@ -1,26 +0,0 @@ -/* - * SPDX-License-Identifier: Apache-2.0 - * Copyright Blazebit - */ - -package com.blazebit.persistence.impl; - -import java.util.Set; - -/** - * A contract that checks if the caller of our caller is trusted. On Java 9 this will actually check modules. - * - * @author Christian Beikov - * @since 1.2.0 - */ -class CallerChecker { - - private CallerChecker() { - } - - public static boolean isCallerTrusted() { - return StackWalker.getInstance(Set.of(), 2).walk(stackFrames -> { - return stackFrames.limit(2).allMatch(s -> s.getClassName().startsWith("com.blazebit.persistence.")); - }); - } -} diff --git a/core/impl/src/main/resources/META-INF/MANIFEST.MF b/core/impl/src/main/resources/META-INF/MANIFEST.MF deleted file mode 100644 index e714012cef..0000000000 --- a/core/impl/src/main/resources/META-INF/MANIFEST.MF +++ /dev/null @@ -1 +0,0 @@ -Multi-Release: true diff --git a/core/parser-jakarta/pom.xml b/core/parser-jakarta/pom.xml deleted file mode 100644 index d0e8905dcb..0000000000 --- a/core/parser-jakarta/pom.xml +++ /dev/null @@ -1,227 +0,0 @@ - - - - - 4.0.0 - - - com.blazebit - blaze-persistence-core - 1.6.15-SNAPSHOT - ../pom.xml - - - blaze-persistence-core-parser-jakarta - jar - - - com.blazebit.persistence.core.parser - - - - - ${project.groupId} - blaze-persistence-core-parser - provided - - - jakarta.persistence - jakarta.persistence-api - ${version.jakarta-jpa-api} - provided - - - ${project.groupId} - blaze-common-utils - - - - - - - maven-antrun-plugin - - - transform-jar - package - - run - - - - - - - - - - - - - - - - - - - - - - transform-sources-jar - package - - run - - - - - - - - - - - - - - - - - - - - - - - - transform-javadoc - package - - run - - - - - - - - - - - - - - - - - - - - - - - - - unpack-classes - package - - - - - - - run - - - - - - org.eclipse.transformer - org.eclipse.transformer.cli - 0.5.0 - - - ant-contrib - ant-contrib - 1.0b3 - - - ant - ant - - - - - biz.aQute.bnd - biz.aQute.bnd.transform - ${version.bnd} - compile - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - attach-artifacts - package - - attach-artifact - - - - - ${project.build.directory}/${project.build.finalName}-sources.jar - sources - jar - - - - - - - - - - - blazebit-release - - - - org.codehaus.mojo - build-helper-maven-plugin - - - attach-artifacts - package - - attach-artifact - - - - - ${project.build.directory}/${project.build.finalName}-sources.jar - sources - jar - - - ${project.build.directory}/${project.build.finalName}-javadoc.jar - javadoc - jar - - - - - - - - - - - - diff --git a/core/parser-jar/pom.xml b/core/parser-jar/pom.xml deleted file mode 100644 index 81b6bc42da..0000000000 --- a/core/parser-jar/pom.xml +++ /dev/null @@ -1,121 +0,0 @@ - - - - - 4.0.0 - - - com.blazebit - blaze-persistence-core - 1.6.15-SNAPSHOT - ../pom.xml - - - blaze-persistence-core-parser-jar - jar - - - com.blazebit.persistence.core.parser - - - - - ${project.groupId} - blaze-common-utils - - - ${project.groupId} - blaze-persistence-core-parser - - - - - - - org.apache.maven.plugins - maven-shade-plugin - - - package - - shade - - - true - - - ${project.groupId}:blaze-persistence-core-parser - - META-INF/versions/** - module-info.class - - - - - - - - - - - - - blazebit-release - - - - maven-dependency-plugin - - - shade-javadoc - - copy - - - - - ${project.groupId} - blaze-persistence-core-parser - ${project.version} - jar - javadoc - true - ${project.build.directory} - ${project.artifactId}-${project.version}-javadoc.jar - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - attach-artifacts - package - - attach-artifact - - - - - ${project.build.directory}/${project.artifactId}-${project.version}-javadoc.jar - javadoc - jar - - - - - - - - - - - - diff --git a/core/parser/pom.xml b/core/parser/pom.xml index c75426bbf2..96f28450d4 100644 --- a/core/parser/pom.xml +++ b/core/parser/pom.xml @@ -24,10 +24,9 @@ - - org.apache.openejb - javaee-api + jakarta.persistence + jakarta.persistence-api provided @@ -41,7 +40,7 @@ org.antlr antlr4-runtime - 4.7.2 + 4.13.0 org.abego.treelayout.core @@ -96,7 +95,7 @@ org.antlr antlr4-maven-plugin - 4.7.2 + 4.13.0 generate-sources @@ -128,36 +127,6 @@ - - org.moditect - moditect-maven-plugin - - - add-module-infos - package - - add-module-info - - - - - module ${module.name} { - requires java.sql; - requires java.persistence; - requires com.blazebit.common.utils; - exports com.blazebit.persistence.parser; - exports com.blazebit.persistence.parser.expression; - exports com.blazebit.persistence.parser.expression.modifier; - exports com.blazebit.persistence.parser.predicate; - exports com.blazebit.persistence.parser.util; - uses com.blazebit.persistence.parser.util.TypeConverterContributor; - } - - - - - - diff --git a/core/parser/src/main/java/com/blazebit/persistence/parser/EntityMetamodel.java b/core/parser/src/main/java/com/blazebit/persistence/parser/EntityMetamodel.java index 1da5b578c9..2a9bd6a0de 100644 --- a/core/parser/src/main/java/com/blazebit/persistence/parser/EntityMetamodel.java +++ b/core/parser/src/main/java/com/blazebit/persistence/parser/EntityMetamodel.java @@ -5,16 +5,16 @@ package com.blazebit.persistence.parser; -import javax.persistence.metamodel.EntityType; -import javax.persistence.metamodel.ManagedType; -import javax.persistence.metamodel.Metamodel; -import javax.persistence.metamodel.Type; +import jakarta.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.ManagedType; +import jakarta.persistence.metamodel.Metamodel; +import jakarta.persistence.metamodel.Type; import java.util.Collection; import java.util.Map; import java.util.Set; /** - * This is a wrapper around the JPA {@link javax.persistence.metamodel.Metamodel} that allows additionally efficient access by other attributes than a Class. + * This is a wrapper around the JPA {@link jakarta.persistence.metamodel.Metamodel} that allows additionally efficient access by other attributes than a Class. * * @author Christian Beikov * @since 1.2.0 diff --git a/core/parser/src/main/java/com/blazebit/persistence/parser/ListIndexAttribute.java b/core/parser/src/main/java/com/blazebit/persistence/parser/ListIndexAttribute.java index c0a467c8ae..8f407f5ef6 100644 --- a/core/parser/src/main/java/com/blazebit/persistence/parser/ListIndexAttribute.java +++ b/core/parser/src/main/java/com/blazebit/persistence/parser/ListIndexAttribute.java @@ -5,11 +5,11 @@ package com.blazebit.persistence.parser; -import javax.persistence.metamodel.ListAttribute; -import javax.persistence.metamodel.ManagedType; -import javax.persistence.metamodel.PluralAttribute; -import javax.persistence.metamodel.SingularAttribute; -import javax.persistence.metamodel.Type; +import jakarta.persistence.metamodel.ListAttribute; +import jakarta.persistence.metamodel.ManagedType; +import jakarta.persistence.metamodel.PluralAttribute; +import jakarta.persistence.metamodel.SingularAttribute; +import jakarta.persistence.metamodel.Type; import java.lang.reflect.Member; /** diff --git a/core/parser/src/main/java/com/blazebit/persistence/parser/MapEntryAttribute.java b/core/parser/src/main/java/com/blazebit/persistence/parser/MapEntryAttribute.java index 87b2b2e156..62032514fd 100644 --- a/core/parser/src/main/java/com/blazebit/persistence/parser/MapEntryAttribute.java +++ b/core/parser/src/main/java/com/blazebit/persistence/parser/MapEntryAttribute.java @@ -5,11 +5,11 @@ package com.blazebit.persistence.parser; -import javax.persistence.metamodel.ManagedType; -import javax.persistence.metamodel.MapAttribute; -import javax.persistence.metamodel.PluralAttribute; -import javax.persistence.metamodel.SingularAttribute; -import javax.persistence.metamodel.Type; +import jakarta.persistence.metamodel.ManagedType; +import jakarta.persistence.metamodel.MapAttribute; +import jakarta.persistence.metamodel.PluralAttribute; +import jakarta.persistence.metamodel.SingularAttribute; +import jakarta.persistence.metamodel.Type; import java.lang.reflect.Member; import java.util.Map; diff --git a/core/parser/src/main/java/com/blazebit/persistence/parser/MapKeyAttribute.java b/core/parser/src/main/java/com/blazebit/persistence/parser/MapKeyAttribute.java index 28c282e4b4..a23aa7baec 100644 --- a/core/parser/src/main/java/com/blazebit/persistence/parser/MapKeyAttribute.java +++ b/core/parser/src/main/java/com/blazebit/persistence/parser/MapKeyAttribute.java @@ -5,11 +5,11 @@ package com.blazebit.persistence.parser; -import javax.persistence.metamodel.ManagedType; -import javax.persistence.metamodel.MapAttribute; -import javax.persistence.metamodel.PluralAttribute; -import javax.persistence.metamodel.SingularAttribute; -import javax.persistence.metamodel.Type; +import jakarta.persistence.metamodel.ManagedType; +import jakarta.persistence.metamodel.MapAttribute; +import jakarta.persistence.metamodel.PluralAttribute; +import jakarta.persistence.metamodel.SingularAttribute; +import jakarta.persistence.metamodel.Type; import java.lang.reflect.Member; /** diff --git a/core/parser/src/main/java/com/blazebit/persistence/parser/PathTargetResolvingExpressionVisitor.java b/core/parser/src/main/java/com/blazebit/persistence/parser/PathTargetResolvingExpressionVisitor.java index d2128295f7..9771c300d9 100644 --- a/core/parser/src/main/java/com/blazebit/persistence/parser/PathTargetResolvingExpressionVisitor.java +++ b/core/parser/src/main/java/com/blazebit/persistence/parser/PathTargetResolvingExpressionVisitor.java @@ -50,14 +50,14 @@ import com.blazebit.persistence.parser.util.JpaMetamodelUtils; import com.blazebit.reflection.ReflectionUtils; -import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.EntityType; -import javax.persistence.metamodel.ListAttribute; -import javax.persistence.metamodel.ManagedType; -import javax.persistence.metamodel.MapAttribute; -import javax.persistence.metamodel.PluralAttribute; -import javax.persistence.metamodel.SingularAttribute; -import javax.persistence.metamodel.Type; +import jakarta.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.ListAttribute; +import jakarta.persistence.metamodel.ManagedType; +import jakarta.persistence.metamodel.MapAttribute; +import jakarta.persistence.metamodel.PluralAttribute; +import jakarta.persistence.metamodel.SingularAttribute; +import jakarta.persistence.metamodel.Type; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.util.ArrayList; @@ -200,7 +200,8 @@ private Type getType(Type baseType, Attribute attribute) { } Class baseClass = baseType.getJavaType(); - if (baseClass != null) { + // Hibernate ORM 6+ returns Map.class instead of null for map based entities + if (baseClass != null && baseClass != Map.class) { Class clazz = JpaMetamodelUtils.resolveFieldClass(baseType.getJavaType(), attribute); if (clazz != null) { return metamodel.type(clazz); diff --git a/core/parser/src/main/java/com/blazebit/persistence/parser/QualifiedAttribute.java b/core/parser/src/main/java/com/blazebit/persistence/parser/QualifiedAttribute.java index 91387ebd99..11ab5d7023 100644 --- a/core/parser/src/main/java/com/blazebit/persistence/parser/QualifiedAttribute.java +++ b/core/parser/src/main/java/com/blazebit/persistence/parser/QualifiedAttribute.java @@ -5,7 +5,7 @@ package com.blazebit.persistence.parser; -import javax.persistence.metamodel.PluralAttribute; +import jakarta.persistence.metamodel.PluralAttribute; /** * Super type for attributes like KEY/VALUE/ENTRY/INDEX diff --git a/core/parser/src/main/java/com/blazebit/persistence/parser/expression/PathReference.java b/core/parser/src/main/java/com/blazebit/persistence/parser/expression/PathReference.java index 208cb2fcfe..98cc5c307a 100644 --- a/core/parser/src/main/java/com/blazebit/persistence/parser/expression/PathReference.java +++ b/core/parser/src/main/java/com/blazebit/persistence/parser/expression/PathReference.java @@ -5,7 +5,7 @@ package com.blazebit.persistence.parser.expression; -import javax.persistence.metamodel.Type; +import jakarta.persistence.metamodel.Type; /** * TODO: documentation diff --git a/core/parser/src/main/java/com/blazebit/persistence/parser/util/JpaMetamodelUtils.java b/core/parser/src/main/java/com/blazebit/persistence/parser/util/JpaMetamodelUtils.java index 4c0ad02466..ac29aa74cc 100644 --- a/core/parser/src/main/java/com/blazebit/persistence/parser/util/JpaMetamodelUtils.java +++ b/core/parser/src/main/java/com/blazebit/persistence/parser/util/JpaMetamodelUtils.java @@ -8,15 +8,15 @@ import com.blazebit.persistence.parser.EntityMetamodel; import com.blazebit.reflection.ReflectionUtils; -import javax.persistence.metamodel.Attribute; -import javax.persistence.metamodel.EmbeddableType; -import javax.persistence.metamodel.EntityType; -import javax.persistence.metamodel.IdentifiableType; -import javax.persistence.metamodel.ManagedType; -import javax.persistence.metamodel.MapAttribute; -import javax.persistence.metamodel.PluralAttribute; -import javax.persistence.metamodel.SingularAttribute; -import javax.persistence.metamodel.Type; +import jakarta.persistence.metamodel.Attribute; +import jakarta.persistence.metamodel.EmbeddableType; +import jakarta.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.IdentifiableType; +import jakarta.persistence.metamodel.ManagedType; +import jakarta.persistence.metamodel.MapAttribute; +import jakarta.persistence.metamodel.PluralAttribute; +import jakarta.persistence.metamodel.SingularAttribute; +import jakarta.persistence.metamodel.Type; import java.lang.reflect.Field; import java.lang.reflect.Method; import java.lang.reflect.ParameterizedType; diff --git a/core/parser/src/main/java/com/blazebit/persistence/parser/util/TypeUtils.java b/core/parser/src/main/java/com/blazebit/persistence/parser/util/TypeUtils.java index c3561eaf91..6dda4a5a45 100644 --- a/core/parser/src/main/java/com/blazebit/persistence/parser/util/TypeUtils.java +++ b/core/parser/src/main/java/com/blazebit/persistence/parser/util/TypeUtils.java @@ -7,7 +7,7 @@ import com.blazebit.persistence.parser.EntityMetamodel; -import javax.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.EntityType; import java.io.Serializable; import java.math.BigDecimal; import java.math.BigInteger; diff --git a/core/parser/src/main/java/module-info.java b/core/parser/src/main/java/module-info.java new file mode 100644 index 0000000000..7ef4fd53f2 --- /dev/null +++ b/core/parser/src/main/java/module-info.java @@ -0,0 +1,16 @@ +/* + * SPDX-License-Identifier: Apache-2.0 + * Copyright Blazebit + */ +module com.blazebit.persistence.core.parser { + requires java.sql; + requires jakarta.persistence; + requires com.blazebit.common.utils; + requires org.antlr.antlr4.runtime; + exports com.blazebit.persistence.parser; + exports com.blazebit.persistence.parser.expression; + exports com.blazebit.persistence.parser.expression.modifier; + exports com.blazebit.persistence.parser.predicate; + exports com.blazebit.persistence.parser.util; + uses com.blazebit.persistence.parser.util.TypeConverterContributor; +} \ No newline at end of file diff --git a/core/pom.xml b/core/pom.xml index ac36c503af..d5fdf130d7 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -24,55 +24,6 @@ parser impl testsuite - - api-jar - impl-jar - parser-jar - - api-jakarta - parser-jakarta - impl-jakarta + testsuite-hibernate - - - jakarta - - api - parser - impl - testsuite - testsuite-hibernate6 - - api-jar - impl-jar - parser-jar - - api-jakarta - parser-jakarta - impl-jakarta - testsuite-jakarta - testsuite-jakarta-runner - - - - blazebit-release - - api - parser - impl - testsuite - testsuite-hibernate6 - - api-jar - impl-jar - parser-jar - - api-jakarta - parser-jakarta - impl-jakarta - testsuite-jakarta - testsuite-jakarta-runner - - - diff --git a/core/testsuite-jakarta-runner/pom.xml b/core/testsuite-hibernate/pom.xml similarity index 59% rename from core/testsuite-jakarta-runner/pom.xml rename to core/testsuite-hibernate/pom.xml index b66c6c098e..22f343ba2e 100644 --- a/core/testsuite-jakarta-runner/pom.xml +++ b/core/testsuite-hibernate/pom.xml @@ -1,12 +1,6 @@ - - 4.0.0 - com.blazebit blaze-persistence-core @@ -14,47 +8,51 @@ ../pom.xml - blaze-persistence-core-testsuite-jakarta-runner + blaze-persistence-core-testsuite-hibernate jar - com.blazebit.persistence.core.testsuite - - 1.8 - ${test.java.version} - ${version.jakarta-jpa-api} - ${h2-2.version} + com.blazebit.persistence.core.testsuite.hibernate com.blazebit.persistence.testsuite - 2 - CoreTestsuite* + 0 + + + ${project.groupId} - blaze-persistence-core-testsuite-jakarta - ${project.version} + blaze-persistence-core-api test ${project.groupId} - blaze-persistence-core-testsuite-jakarta - ${project.version} - tests + blaze-persistence-core-impl test + - jakarta.persistence - jakarta.persistence-api - ${jpa-api-version} + ${project.groupId} + blaze-persistence-testsuite-base-hibernate6 + ${project.version} + compile ${project.groupId} - blaze-common-utils + blaze-persistence-core-testsuite + ${project.version} + compile + + + junit + junit + test + h2 @@ -70,20 +68,19 @@ ${maven.test.skip} ${surefireForkCount} ${project.build.directory}/surefire-reports/${surefire.forkNumber} + com.blazebit.persistence.testsuite.base.jpa.category.NoH2,com.blazebit.persistence.testsuite.base.jpa.category.NoH2Latest,${jpa.excludedGroups} jdbc:h2:mem:core${surefire.forkNumber};DB_CLOSE_DELAY=-1 admin admin org.h2.Driver - com.blazebit.persistence.testsuite.base.jpa.category.NoH2,com.blazebit.persistence.testsuite.base.jpa.category.NoH2Latest,${jpa.excludedGroups} ${testBasePackage} ${surefireForkCount} $${surefire.forkNumber} UTC + US + en - - com.blazebit:blaze-persistence-core-testsuite-jakarta - @@ -99,7 +96,7 @@ com.h2database h2 - ${version.h2} + ${h2.version} test @@ -116,67 +113,18 @@ ${maven.test.skip} ${surefireForkCount} ${project.build.directory}/surefire-reports/${surefire.forkNumber} + com.blazebit.persistence.testsuite.base.jpa.category.NoMySQL,${jpa.excludedGroups} jdbc:mysql://${dbHost}:3306/information_schema?useUnicode=true&characterEncoding=utf8&databaseTerm=schema&nullDatabaseMeansCurrent=true root com.mysql.jdbc.Driver core${surefire.forkNumber} - com.blazebit.persistence.testsuite.base.jpa.category.NoMySQL,com.blazebit.persistence.testsuite.base.jpa.category.NoMySQLOld,${jpa.excludedGroups} - ${testBasePackage} - ${surefireForkCount} - $${surefire.forkNumber} - UTC - - - com.blazebit:blaze-persistence-core-testsuite-jakarta - - - - - org.apache.maven.surefire - surefire-junit47 - ${version.surefire.plugin} - - - - - - - - mysql - mysql-connector-java - test - - - - - mysql8 - - - - org.apache.maven.plugins - maven-surefire-plugin - - ${test} - ${maven.test.skip} - ${surefireForkCount} - ${project.build.directory}/surefire-reports/${surefire.forkNumber} - - jdbc:mysql://${dbHost}:3306/information_schema?useUnicode=true&characterEncoding=utf8&databaseTerm=schema&nullDatabaseMeansCurrent=true - root - - com.mysql.jdbc.Driver - core${surefire.forkNumber} - com.blazebit.persistence.testsuite.base.jpa.category.NoMySQL,${jpa.excludedGroups} ${testBasePackage} ${surefireForkCount} $${surefire.forkNumber} UTC - - com.blazebit:blaze-persistence-core-testsuite-jakarta - @@ -207,21 +155,18 @@ ${test} ${surefireForkCount} ${project.build.directory}/surefire-reports/${surefire.forkNumber} + com.blazebit.persistence.testsuite.base.jpa.category.NoPostgreSQL,${jpa.excludedGroups} jdbc:postgresql://${dbHost}:5432/test postgres postgres org.postgresql.Driver core${surefire.forkNumber} - com.blazebit.persistence.testsuite.base.jpa.category.NoPostgreSQL,${jpa.excludedGroups} ${testBasePackage} ${surefireForkCount} $${surefire.forkNumber} UTC - - com.blazebit:blaze-persistence-core-testsuite-jakarta - @@ -241,45 +186,6 @@ - - sqlite - - - - org.apache.maven.plugins - maven-surefire-plugin - - ${test} - - jdbc:sqlite:test.db - - - org.sqlite.JDBC - com.blazebit.persistence.testsuite.base.jpa.category.NoSQLite,${jpa.excludedGroups} - ${testBasePackage} - - - com.blazebit:blaze-persistence-core-testsuite-jakarta - - - - - org.apache.maven.surefire - surefire-junit47 - ${version.surefire.plugin} - - - - - - - - org.xerial - sqlite-jdbc - test - - - db2 @@ -292,21 +198,18 @@ ${maven.test.skip} ${surefireForkCount} ${project.build.directory}/surefire-reports/${surefire.forkNumber} + com.blazebit.persistence.testsuite.base.jpa.category.NoDB2,${jpa.excludedGroups} jdbc:db2://${dbHost}:50000/test db2inst1 db2inst1-pwd com.ibm.db2.jcc.DB2Driver core${surefire.forkNumber} - com.blazebit.persistence.testsuite.base.jpa.category.NoDB2,${jpa.excludedGroups} ${testBasePackage} ${surefireForkCount} $${surefire.forkNumber} UTC - - com.blazebit:blaze-persistence-core-testsuite-jakarta - @@ -327,45 +230,6 @@ - - firebird - - - - org.apache.maven.plugins - maven-surefire-plugin - - ${test} - - jdbc:firebirdsql:${dbHost}:/tmp/test.fdb - SYSDBA - masterkey - org.firebirdsql.jdbc.FBDriver - com.blazebit.persistence.testsuite.base.jpa.category.NoFirebird,${jpa.excludedGroups} - ${testBasePackage} - - - com.blazebit:blaze-persistence-core-testsuite-jakarta - - - - - org.apache.maven.surefire - surefire-junit47 - ${version.surefire.plugin} - - - - - - - - org.firebirdsql.jdbc - jaybird-jdk16 - test - - - oracle @@ -378,6 +242,7 @@ ${maven.test.skip} ${surefireForkCount} ${project.build.directory}/surefire-reports/${surefire.forkNumber} + com.blazebit.persistence.testsuite.base.jpa.category.NoOracle,${jpa.excludedGroups} jdbc:oracle:thin:@${dbHost}:1521:XE SYSTEM @@ -391,14 +256,10 @@ true - com.blazebit.persistence.testsuite.base.jpa.category.NoOracle,${jpa.excludedGroups} ${testBasePackage} ${surefireForkCount} $${surefire.forkNumber} - - com.blazebit:blaze-persistence-core-testsuite-jakarta - @@ -430,21 +291,18 @@ ${maven.test.skip} ${surefireForkCount} ${project.build.directory}/surefire-reports/${surefire.forkNumber} + com.blazebit.persistence.testsuite.base.jpa.category.NoMSSQL,${jpa.excludedGroups} jdbc:sqlserver://${dbHost}:1433;trustServerCertificate=true sa Blaze-Persistence com.microsoft.sqlserver.jdbc.SQLServerDriver core${surefire.forkNumber} - com.blazebit.persistence.testsuite.base.jpa.category.NoMSSQL,${jpa.excludedGroups} ${testBasePackage} ${surefireForkCount} $${surefire.forkNumber} UTC - - com.blazebit:blaze-persistence-core-testsuite-jakarta - @@ -465,10 +323,10 @@ + hibernate-6.2 - ${version.jakarta-jpa-3.1-api} com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate,com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate60 @@ -490,22 +348,22 @@ jakarta.xml.bind jakarta.xml.bind-api - ${version.jakarta-jaxb-api} + ${version.jaxb-api} com.sun.xml.bind jaxb-impl - ${version.jakarta-jaxb} + ${version.jaxb} jakarta.transaction jakarta.transaction-api - ${version.jakarta-jta} + ${version.jta-api} jakarta.activation jakarta.activation-api - ${version.jakarta-activation} + ${version.activation-api} ${project.groupId} @@ -526,73 +384,50 @@ provided - - - hibernate-6.3 - - ${version.jakarta-jpa-3.1-api} - com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate,com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate60 - - - - org.hibernate.orm - hibernate-core - ${version.hibernate-6.3} - - - org.hibernate.orm - hibernate-envers - ${version.hibernate-6.3} - - - org.hibernate.orm - hibernate-testing - ${version.hibernate-6.3} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jakarta-jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jakarta-jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jakarta-jta} - - - jakarta.activation - jakarta.activation-api - ${version.jakarta-activation} - - - ${project.groupId} - blaze-persistence-integration-hibernate-6.2 - test - - - ${project.groupId} - blaze-persistence-testsuite-base-hibernate6 - ${project.version} - compile - - - - org.hibernate.orm - hibernate-jpamodelgen - ${version.hibernate-6.3} - provided - - + + + + maven-compiler-plugin + + + + + org.hibernate.orm + hibernate-jpamodelgen + ${version.hibernate-6.2} + + + jakarta.xml.bind + jakarta.xml.bind-api + ${version.jaxb-api} + + + com.sun.xml.bind + jaxb-impl + ${version.jaxb} + + + jakarta.transaction + jakarta.transaction-api + ${version.jta-api} + + + jakarta.activation + jakarta.activation-api + ${version.activation-api} + + + + org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor + + + + + hibernate-6.4 - ${version.jakarta-jpa-3.1-api} com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate,com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate60 @@ -614,22 +449,22 @@ jakarta.xml.bind jakarta.xml.bind-api - ${version.jakarta-jaxb-api} + ${version.jaxb-api} com.sun.xml.bind jaxb-impl - ${version.jakarta-jaxb} + ${version.jaxb} jakarta.transaction jakarta.transaction-api - ${version.jakarta-jta} + ${version.jta-api} jakarta.activation jakarta.activation-api - ${version.jakarta-activation} + ${version.activation-api} ${project.groupId} @@ -650,73 +485,53 @@ provided - - - hibernate-6.5 - - ${version.jakarta-jpa-3.1-api} - com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate,com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate60 - - - - org.hibernate.orm - hibernate-core - ${version.hibernate-6.5} - - - org.hibernate.orm - hibernate-envers - ${version.hibernate-6.5} - - - org.hibernate.orm - hibernate-testing - ${version.hibernate-6.5} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jakarta-jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jakarta-jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jakarta-jta} - - - jakarta.activation - jakarta.activation-api - ${version.jakarta-activation} - - - ${project.groupId} - blaze-persistence-integration-hibernate-6.2 - test - - - ${project.groupId} - blaze-persistence-testsuite-base-hibernate6 - ${project.version} - compile - - - - org.hibernate.orm - hibernate-jpamodelgen - ${version.hibernate-6.5} - provided - - + + + + maven-compiler-plugin + + + + + org.hibernate.orm + hibernate-jpamodelgen + ${version.hibernate-6.4} + + + jakarta.xml.bind + jakarta.xml.bind-api + ${version.jaxb-api} + + + com.sun.xml.bind + jaxb-impl + ${version.jaxb} + + + jakarta.transaction + jakarta.transaction-api + ${version.jta-api} + + + jakarta.activation + jakarta.activation-api + ${version.activation-api} + + + + org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor + + + + + hibernate-6.6 + + true + - ${version.jakarta-jpa-3.1-api} com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate,com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate60,com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate66 @@ -738,22 +553,22 @@ jakarta.xml.bind jakarta.xml.bind-api - ${version.jakarta-jaxb-api} + ${version.jaxb-api} com.sun.xml.bind jaxb-impl - ${version.jakarta-jaxb} + ${version.jaxb} jakarta.transaction jakarta.transaction-api - ${version.jakarta-jta} + ${version.jta-api} jakarta.activation jakarta.activation-api - ${version.jakarta-activation} + ${version.activation-api} ${project.groupId} @@ -774,7 +589,46 @@ provided + + + + maven-compiler-plugin + + + + + org.hibernate.orm + hibernate-jpamodelgen + ${version.hibernate-6.6} + + + jakarta.xml.bind + jakarta.xml.bind-api + ${version.jaxb-api} + + + com.sun.xml.bind + jaxb-impl + ${version.jaxb} + + + jakarta.transaction + jakarta.transaction-api + ${version.jta-api} + + + jakarta.activation + jakarta.activation-api + ${version.activation-api} + + + + org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor + + + + + - diff --git a/core/testsuite-hibernate6/src/main/java/com/blazebit/persistence/testsuite/hibernate6/entity/IntegerProperty.java b/core/testsuite-hibernate/src/main/java/com/blazebit/persistence/testsuite/hibernate6/entity/IntegerProperty.java similarity index 100% rename from core/testsuite-hibernate6/src/main/java/com/blazebit/persistence/testsuite/hibernate6/entity/IntegerProperty.java rename to core/testsuite-hibernate/src/main/java/com/blazebit/persistence/testsuite/hibernate6/entity/IntegerProperty.java diff --git a/core/testsuite-hibernate6/src/main/java/com/blazebit/persistence/testsuite/hibernate6/entity/Property.java b/core/testsuite-hibernate/src/main/java/com/blazebit/persistence/testsuite/hibernate6/entity/Property.java similarity index 100% rename from core/testsuite-hibernate6/src/main/java/com/blazebit/persistence/testsuite/hibernate6/entity/Property.java rename to core/testsuite-hibernate/src/main/java/com/blazebit/persistence/testsuite/hibernate6/entity/Property.java diff --git a/core/testsuite-hibernate6/src/main/java/com/blazebit/persistence/testsuite/hibernate6/entity/PropertyHolder.java b/core/testsuite-hibernate/src/main/java/com/blazebit/persistence/testsuite/hibernate6/entity/PropertyHolder.java similarity index 100% rename from core/testsuite-hibernate6/src/main/java/com/blazebit/persistence/testsuite/hibernate6/entity/PropertyHolder.java rename to core/testsuite-hibernate/src/main/java/com/blazebit/persistence/testsuite/hibernate6/entity/PropertyHolder.java diff --git a/core/testsuite-hibernate6/src/main/java/com/blazebit/persistence/testsuite/hibernate6/entity/StringProperty.java b/core/testsuite-hibernate/src/main/java/com/blazebit/persistence/testsuite/hibernate6/entity/StringProperty.java similarity index 100% rename from core/testsuite-hibernate6/src/main/java/com/blazebit/persistence/testsuite/hibernate6/entity/StringProperty.java rename to core/testsuite-hibernate/src/main/java/com/blazebit/persistence/testsuite/hibernate6/entity/StringProperty.java diff --git a/core/testsuite-hibernate6/src/test/java/com/blazebit/persistence/testsuite/hibernate6/AnyMappingTest.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/AnyMappingTest.java similarity index 93% rename from core/testsuite-hibernate6/src/test/java/com/blazebit/persistence/testsuite/hibernate6/AnyMappingTest.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/AnyMappingTest.java index 2b57a6d64e..46726c751d 100644 --- a/core/testsuite-hibernate6/src/test/java/com/blazebit/persistence/testsuite/hibernate6/AnyMappingTest.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/AnyMappingTest.java @@ -2,7 +2,7 @@ * SPDX-License-Identifier: Apache-2.0 * Copyright Blazebit */ -package com.blazebit.persistence.testsuite.hibernate6; +package com.blazebit.persistence.testsuite.hibernate; import com.blazebit.persistence.CriteriaBuilder; import com.blazebit.persistence.testsuite.AbstractCoreTest; diff --git a/core/testsuite/src/test/hibernateold/com/blazebit/persistence/testsuite/CTESubselectFilteringTest.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/CTESubselectFilteringTest.java similarity index 90% rename from core/testsuite/src/test/hibernateold/com/blazebit/persistence/testsuite/CTESubselectFilteringTest.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/CTESubselectFilteringTest.java index c125f1d01b..42d014b3ed 100644 --- a/core/testsuite/src/test/hibernateold/com/blazebit/persistence/testsuite/CTESubselectFilteringTest.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/CTESubselectFilteringTest.java @@ -3,9 +3,10 @@ * Copyright Blazebit */ -package com.blazebit.persistence.testsuite; +package com.blazebit.persistence.testsuite.hibernate; import com.blazebit.persistence.CTE; +import com.blazebit.persistence.testsuite.AbstractCoreTest; import com.blazebit.persistence.testsuite.base.jpa.category.NoMySQL; import com.blazebit.persistence.testsuite.base.jpa.category.NoOracle; import com.blazebit.persistence.testsuite.tx.TxVoidWork; @@ -19,15 +20,15 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.EntityManager; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.OrderBy; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityManager; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderBy; import java.util.List; import static org.hibernate.Hibernate.initialize; @@ -148,7 +149,7 @@ public static class NodeCTE { @Entity(name = "Node") @FilterDef(name = "NodeFilter", defaultCondition = "filtering_value = :mySuperValue", parameters = { - @ParamDef(name = "mySuperValue", type = "boolean") + @ParamDef(name = "mySuperValue", type = Boolean.class) }) public static class Node { diff --git a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/CollectionJoinTestHibernate.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/CollectionJoinTestHibernate.java similarity index 92% rename from core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/CollectionJoinTestHibernate.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/CollectionJoinTestHibernate.java index 2712e79088..7383714013 100644 --- a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/CollectionJoinTestHibernate.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/CollectionJoinTestHibernate.java @@ -3,9 +3,10 @@ * Copyright Blazebit */ -package com.blazebit.persistence.testsuite; +package com.blazebit.persistence.testsuite.hibernate; import com.blazebit.persistence.CriteriaBuilder; +import com.blazebit.persistence.testsuite.AbstractCoreTest; import com.blazebit.persistence.testsuite.entity.*; import org.junit.Test; diff --git a/core/testsuite/src/test/hibernateold/com/blazebit/persistence/testsuite/CustomFunctionTest.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/CustomFunctionTest.java similarity index 64% rename from core/testsuite/src/test/hibernateold/com/blazebit/persistence/testsuite/CustomFunctionTest.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/CustomFunctionTest.java index 92151d51b1..ed4a44672a 100644 --- a/core/testsuite/src/test/hibernateold/com/blazebit/persistence/testsuite/CustomFunctionTest.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/CustomFunctionTest.java @@ -4,25 +4,30 @@ * Copyright Blazebit */ -package com.blazebit.persistence.testsuite; +package com.blazebit.persistence.testsuite.hibernate; import com.blazebit.persistence.spi.CriteriaBuilderConfiguration; import com.blazebit.persistence.spi.JpqlFunctionGroup; +import com.blazebit.persistence.testsuite.AbstractCoreTest; import com.blazebit.persistence.testsuite.base.jpa.category.NoDB2; import com.blazebit.persistence.testsuite.base.jpa.category.NoMSSQL; import com.blazebit.persistence.testsuite.base.jpa.category.NoMySQL; import com.blazebit.persistence.testsuite.base.jpa.category.NoMySQLOld; import com.blazebit.persistence.testsuite.base.jpa.category.NoOracle; import com.blazebit.persistence.testsuite.base.jpa.category.NoPostgreSQL; + +import org.hibernate.boot.model.FunctionContributions; import org.hibernate.dialect.H2Dialect; -import org.hibernate.dialect.function.SQLFunctionTemplate; -import org.hibernate.type.LongType; +import org.hibernate.query.sqm.function.SqmFunctionRegistry; +import org.hibernate.query.sqm.produce.function.StandardFunctionReturnTypeResolvers; +import org.hibernate.type.BasicType; + import org.junit.Assert; import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; import java.util.Properties; /** @@ -69,9 +74,17 @@ protected Properties applyProperties(Properties properties) { } public static class ExtendedDialect extends H2Dialect { - public ExtendedDialect() { - registerFunction("ADDONE", new SQLFunctionTemplate(LongType.INSTANCE, "?1 + 1")); - registerFunction("CUSTOMSUM", new SQLFunctionTemplate(LongType.INSTANCE, "SUM(?1)")); + @Override + public void initializeFunctionRegistry(FunctionContributions functionContributions) { + super.initializeFunctionRegistry( functionContributions ); + SqmFunctionRegistry functionRegistry = functionContributions.getFunctionRegistry(); + BasicType longType = functionContributions.getTypeConfiguration().getBasicTypeForJavaType(Long.class); + functionRegistry.patternDescriptorBuilder("ADDONE", "?1 + 1") + .setReturnTypeResolver(StandardFunctionReturnTypeResolvers.invariant(longType)) + .register(); + functionRegistry.patternDescriptorBuilder("CUSTOMSUM", "SUM(?1)") + .setReturnTypeResolver(StandardFunctionReturnTypeResolvers.invariant(longType)) + .register(); } } diff --git a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/DereferenceManyToOneAssociationInJoinedInheritanceHierarchyTest.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/DereferenceManyToOneAssociationInJoinedInheritanceHierarchyTest.java similarity index 95% rename from core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/DereferenceManyToOneAssociationInJoinedInheritanceHierarchyTest.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/DereferenceManyToOneAssociationInJoinedInheritanceHierarchyTest.java index 31cd614e94..2f9543176b 100644 --- a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/DereferenceManyToOneAssociationInJoinedInheritanceHierarchyTest.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/DereferenceManyToOneAssociationInJoinedInheritanceHierarchyTest.java @@ -3,29 +3,32 @@ * Copyright Blazebit */ -package com.blazebit.persistence.testsuite; +package com.blazebit.persistence.testsuite.hibernate; import com.blazebit.persistence.CriteriaBuilder; +import com.blazebit.persistence.testsuite.AbstractCoreTest; import com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate42; import com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate43; import com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate50; import com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate51; import com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate52; import com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate53; -import org.hibernate.annotations.ForeignKey; import org.junit.Assume; import org.junit.Before; import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.InheritanceType; -import javax.persistence.ManyToOne; -import javax.persistence.Tuple; +import jakarta.persistence.Column; +import jakarta.persistence.ConstraintMode; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.ForeignKey; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.InheritanceType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Tuple; import java.util.List; import java.util.Properties; @@ -266,7 +269,7 @@ public static class Super { @Column Long id; - @ForeignKey(name = "none") + @JoinColumn(foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT)) @ManyToOne(targetEntity = Super.class, fetch = FetchType.LAZY) SubType parent; diff --git a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/EmbeddableIdComplexTest.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/EmbeddableIdComplexTest.java similarity index 91% rename from core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/EmbeddableIdComplexTest.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/EmbeddableIdComplexTest.java index c1ffbb246e..7f344a0caa 100644 --- a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/EmbeddableIdComplexTest.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/EmbeddableIdComplexTest.java @@ -3,14 +3,15 @@ * Copyright Blazebit */ -package com.blazebit.persistence.testsuite; +package com.blazebit.persistence.testsuite.hibernate; import com.blazebit.persistence.CriteriaBuilder; +import com.blazebit.persistence.testsuite.AbstractCoreTest; import com.blazebit.persistence.testsuite.entity.IntIdEntity; -import com.blazebit.persistence.testsuite.hibernate.EmbeddableIdTestEntity; +import com.blazebit.persistence.testsuite.hibernate.entity.EmbeddableIdTestEntity; import org.junit.Test; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/EnversTest.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/EnversTest.java similarity index 88% rename from core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/EnversTest.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/EnversTest.java index 2f4e4bd603..b4c6153d2d 100644 --- a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/EnversTest.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/EnversTest.java @@ -3,21 +3,22 @@ * Copyright Blazebit */ -package com.blazebit.persistence.testsuite; +package com.blazebit.persistence.testsuite.hibernate; import com.blazebit.persistence.parser.EntityMetamodel; +import com.blazebit.persistence.testsuite.AbstractCoreTest; import com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate42; import com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate43; import org.hibernate.envers.Audited; import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.Table; -import javax.persistence.metamodel.EntityType; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; +import jakarta.persistence.metamodel.EntityType; import java.util.List; import java.util.Map; diff --git a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/FullJoinTest.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/FullJoinTest.java similarity index 96% rename from core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/FullJoinTest.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/FullJoinTest.java index 470b960e00..33ac193a71 100644 --- a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/FullJoinTest.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/FullJoinTest.java @@ -3,11 +3,12 @@ * Copyright Blazebit */ -package com.blazebit.persistence.testsuite; +package com.blazebit.persistence.testsuite.hibernate; import com.blazebit.persistence.CriteriaBuilder; import com.blazebit.persistence.JoinType; import com.blazebit.persistence.PaginatedCriteriaBuilder; +import com.blazebit.persistence.testsuite.AbstractCoreTest; import com.blazebit.persistence.testsuite.base.jpa.category.NoH2; import com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate; import com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate42; @@ -20,12 +21,12 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.Tuple; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Tuple; import java.util.List; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/IgnoreNotFoundDereferenceTest.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/IgnoreNotFoundDereferenceTest.java similarity index 80% rename from core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/IgnoreNotFoundDereferenceTest.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/IgnoreNotFoundDereferenceTest.java index 8db53a5814..b2da63fc17 100644 --- a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/IgnoreNotFoundDereferenceTest.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/IgnoreNotFoundDereferenceTest.java @@ -3,17 +3,18 @@ * Copyright Blazebit */ -package com.blazebit.persistence.testsuite; +package com.blazebit.persistence.testsuite.hibernate; import org.hibernate.annotations.NotFound; import org.hibernate.annotations.NotFoundAction; import org.junit.Test; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.ManyToOne; +import com.blazebit.persistence.testsuite.AbstractCoreTest; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; /** * @author Jan-Willem Gmelig Meyling diff --git a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue1000Test.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue1000Test.java similarity index 88% rename from core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue1000Test.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue1000Test.java index 4882e55770..719a825d38 100644 --- a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue1000Test.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue1000Test.java @@ -3,9 +3,10 @@ * Copyright Blazebit */ -package com.blazebit.persistence.testsuite; +package com.blazebit.persistence.testsuite.hibernate; import com.blazebit.persistence.CTE; +import com.blazebit.persistence.testsuite.AbstractCoreTest; import com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate42; import com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate43; import com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate50; @@ -14,15 +15,15 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.Entity; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; /** * @author Jan-Willem Gmelig Meyling * @since 1.4.1 */ -public class Issue1000Test extends AbstractCoreTest { +public class Issue1000Test extends AbstractCoreTest { @Override protected Class[] getEntityClasses() { diff --git a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue1154Test.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue1154Test.java similarity index 72% rename from core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue1154Test.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue1154Test.java index d0c8735cff..8df6e376e1 100644 --- a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue1154Test.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue1154Test.java @@ -3,25 +3,18 @@ * Copyright Blazebit */ -package com.blazebit.persistence.testsuite; +package com.blazebit.persistence.testsuite.hibernate; import com.blazebit.persistence.CriteriaBuilder; -import com.blazebit.persistence.testsuite.tx.TxVoidWork; -import org.hibernate.annotations.Generated; -import org.hibernate.annotations.GenerationTime; -import org.hibernate.annotations.Subselect; +import com.blazebit.persistence.testsuite.AbstractCoreTest; + import org.junit.Ignore; import org.junit.Test; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.EntityManager; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.OneToOne; -import javax.persistence.PrimaryKeyJoinColumn; -import javax.persistence.Table; -import java.util.List; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue1167Test.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue1167Test.java similarity index 75% rename from core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue1167Test.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue1167Test.java index c39cfeaff4..36ede7974f 100644 --- a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue1167Test.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue1167Test.java @@ -3,15 +3,16 @@ * Copyright Blazebit */ -package com.blazebit.persistence.testsuite; +package com.blazebit.persistence.testsuite.hibernate; import org.hibernate.annotations.Where; import org.junit.Test; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.ManyToOne; +import com.blazebit.persistence.testsuite.AbstractCoreTest; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; /** * @author Christian Beikov diff --git a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue1436Test.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue1436Test.java similarity index 85% rename from core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue1436Test.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue1436Test.java index cccd6195d8..0e23cfc5ce 100644 --- a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue1436Test.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue1436Test.java @@ -3,16 +3,17 @@ * Copyright Blazebit */ -package com.blazebit.persistence.testsuite; +package com.blazebit.persistence.testsuite.hibernate; import com.blazebit.persistence.parser.EntityMetamodel; import com.blazebit.persistence.spi.ExtendedAttribute; import com.blazebit.persistence.spi.ExtendedManagedType; import org.junit.Test; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.ManyToOne; +import com.blazebit.persistence.testsuite.AbstractCoreTest; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; import java.io.Serializable; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue1704Test.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue1704Test.java similarity index 89% rename from core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue1704Test.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue1704Test.java index 8b83111893..ec23c17d8d 100644 --- a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue1704Test.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue1704Test.java @@ -3,9 +3,10 @@ * Copyright Blazebit */ -package com.blazebit.persistence.testsuite; +package com.blazebit.persistence.testsuite.hibernate; import com.blazebit.persistence.CriteriaBuilder; +import com.blazebit.persistence.testsuite.AbstractCoreTest; import com.blazebit.persistence.testsuite.base.jpa.category.NoDatanucleus4; import com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate42; import com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate43; @@ -18,13 +19,13 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.Entity; -import javax.persistence.EntityManager; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.Tuple; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityManager; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Tuple; import java.util.HashSet; import java.util.List; import java.util.Set; diff --git a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue1713Test.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue1713Test.java similarity index 83% rename from core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue1713Test.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue1713Test.java index 47ad7a4789..89320c5882 100644 --- a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue1713Test.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue1713Test.java @@ -3,9 +3,10 @@ * Copyright Blazebit */ -package com.blazebit.persistence.testsuite; +package com.blazebit.persistence.testsuite.hibernate; import com.blazebit.persistence.CTE; +import com.blazebit.persistence.testsuite.AbstractCoreTest; import com.blazebit.persistence.testsuite.entity.Document; import com.blazebit.persistence.testsuite.entity.IntIdEntity; import com.blazebit.persistence.testsuite.entity.NameObject; @@ -13,10 +14,10 @@ import com.blazebit.persistence.testsuite.entity.Version; import org.junit.Test; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.OneToOne; -import javax.persistence.PrimaryKeyJoinColumn; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.OneToOne; +import jakarta.persistence.PrimaryKeyJoinColumn; /** * @author Christian Beikov diff --git a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue227Test.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue227Test.java similarity index 93% rename from core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue227Test.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue227Test.java index e45904b5c5..9388dc0b8f 100644 --- a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue227Test.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue227Test.java @@ -3,10 +3,11 @@ * Copyright Blazebit */ -package com.blazebit.persistence.testsuite; +package com.blazebit.persistence.testsuite.hibernate; import com.blazebit.persistence.CTE; import com.blazebit.persistence.CriteriaBuilder; +import com.blazebit.persistence.testsuite.AbstractCoreTest; import com.blazebit.persistence.testsuite.base.jpa.category.NoMySQL; import com.blazebit.persistence.testsuite.base.jpa.category.NoOracle; import com.blazebit.persistence.testsuite.tx.TxVoidWork; @@ -17,18 +18,18 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.Basic; -import javax.persistence.Entity; -import javax.persistence.EntityManager; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.Table; +import jakarta.persistence.Basic; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityManager; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; import java.util.HashSet; import java.util.List; import java.util.Set; diff --git a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue336HibernateTest.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue336HibernateTest.java similarity index 86% rename from core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue336HibernateTest.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue336HibernateTest.java index 8435271502..4de2f9e4f9 100644 --- a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue336HibernateTest.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue336HibernateTest.java @@ -3,21 +3,22 @@ * Copyright Blazebit */ -package com.blazebit.persistence.testsuite; +package com.blazebit.persistence.testsuite.hibernate; import com.blazebit.persistence.CriteriaBuilder; +import com.blazebit.persistence.testsuite.AbstractCoreTest; import com.blazebit.persistence.testsuite.tx.TxVoidWork; import org.hibernate.annotations.Formula; import org.junit.Assert; import org.junit.Before; import org.junit.Test; -import javax.persistence.Basic; -import javax.persistence.Entity; -import javax.persistence.EntityManager; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Basic; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityManager; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Table; import java.util.List; /** diff --git a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue519Test.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue519Test.java similarity index 86% rename from core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue519Test.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue519Test.java index dfc428b717..141c5e27c7 100644 --- a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue519Test.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue519Test.java @@ -3,22 +3,23 @@ * Copyright Blazebit */ -package com.blazebit.persistence.testsuite; +package com.blazebit.persistence.testsuite.hibernate; import com.blazebit.persistence.CriteriaBuilder; +import com.blazebit.persistence.testsuite.AbstractCoreTest; import com.blazebit.persistence.testsuite.tx.TxVoidWork; import org.hibernate.annotations.Generated; import org.hibernate.annotations.GenerationTime; import org.hibernate.annotations.Subselect; import org.junit.Test; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.EntityManager; -import javax.persistence.Id; -import javax.persistence.OneToOne; -import javax.persistence.PrimaryKeyJoinColumn; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Id; +import jakarta.persistence.OneToOne; +import jakarta.persistence.PrimaryKeyJoinColumn; +import jakarta.persistence.Table; import java.util.List; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue546Test.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue546Test.java similarity index 78% rename from core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue546Test.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue546Test.java index affc1a1406..f41f81ba5a 100644 --- a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue546Test.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue546Test.java @@ -3,21 +3,21 @@ * Copyright Blazebit */ -package com.blazebit.persistence.testsuite; +package com.blazebit.persistence.testsuite.hibernate; import com.blazebit.persistence.CTE; -import com.blazebit.persistence.Criteria; -import com.blazebit.persistence.spi.CriteriaBuilderConfiguration; + import org.hibernate.annotations.Formula; import org.junit.Assert; import org.junit.Test; -import javax.persistence.Basic; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.PersistenceException; -import javax.persistence.Table; +import com.blazebit.persistence.testsuite.AbstractCoreTest; +import jakarta.persistence.Basic; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.PersistenceException; +import jakarta.persistence.Table; /** * @author Christian beikov diff --git a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue666Test.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue666Test.java similarity index 86% rename from core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue666Test.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue666Test.java index 70b2b0b2df..2aa8d14c76 100644 --- a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue666Test.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue666Test.java @@ -3,19 +3,20 @@ * Copyright Blazebit */ -package com.blazebit.persistence.testsuite; +package com.blazebit.persistence.testsuite.hibernate; +import com.blazebit.persistence.testsuite.AbstractCoreTest; import com.blazebit.persistence.testsuite.base.jpa.category.NoDB2; import com.blazebit.persistence.testsuite.tx.TxVoidWork; import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.Entity; -import javax.persistence.EntityManager; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.ManyToOne; -import javax.persistence.Tuple; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Tuple; import java.io.Serializable; /** diff --git a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue950Test.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue950Test.java similarity index 97% rename from core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue950Test.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue950Test.java index dbf7612036..9c118de51e 100644 --- a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue950Test.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue950Test.java @@ -3,8 +3,9 @@ * Copyright Blazebit */ -package com.blazebit.persistence.testsuite; +package com.blazebit.persistence.testsuite.hibernate; +import com.blazebit.persistence.testsuite.AbstractCoreTest; import com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate; import com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate42; import com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate43; @@ -17,16 +18,16 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.EntityManager; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.MappedSuperclass; -import javax.persistence.OneToOne; -import javax.persistence.PrimaryKeyJoinColumn; -import javax.persistence.Table; -import javax.persistence.Tuple; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MappedSuperclass; +import jakarta.persistence.OneToOne; +import jakarta.persistence.PrimaryKeyJoinColumn; +import jakarta.persistence.Table; +import jakarta.persistence.Tuple; import java.util.List; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue969Test.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue969Test.java similarity index 88% rename from core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue969Test.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue969Test.java index e2de006d04..221ea9afea 100644 --- a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/Issue969Test.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/Issue969Test.java @@ -3,14 +3,15 @@ * Copyright Blazebit */ -package com.blazebit.persistence.testsuite; +package com.blazebit.persistence.testsuite.hibernate; import org.junit.Test; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.ManyToOne; +import com.blazebit.persistence.testsuite.AbstractCoreTest; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.ManyToOne; import java.io.Serializable; /** diff --git a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/QuotedIdentifiersTest.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/QuotedIdentifiersTest.java similarity index 88% rename from core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/QuotedIdentifiersTest.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/QuotedIdentifiersTest.java index 33ad8f4b20..133ba1d934 100644 --- a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/QuotedIdentifiersTest.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/QuotedIdentifiersTest.java @@ -3,13 +3,15 @@ * Copyright Blazebit */ -package com.blazebit.persistence.testsuite; +package com.blazebit.persistence.testsuite.hibernate; import org.junit.Test; import java.util.Arrays; import java.util.Properties; +import com.blazebit.persistence.testsuite.AbstractCoreTest; + import static org.junit.Assert.assertEquals; /** diff --git a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/hibernate/EmbeddableIdTestEntity.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/entity/EmbeddableIdTestEntity.java similarity index 80% rename from core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/hibernate/EmbeddableIdTestEntity.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/entity/EmbeddableIdTestEntity.java index fa6ab7ab5e..ef13c83d98 100644 --- a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/hibernate/EmbeddableIdTestEntity.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/entity/EmbeddableIdTestEntity.java @@ -3,12 +3,12 @@ * Copyright Blazebit */ -package com.blazebit.persistence.testsuite.hibernate; +package com.blazebit.persistence.testsuite.hibernate.entity; -import javax.persistence.Embedded; -import javax.persistence.EmbeddedId; -import javax.persistence.Entity; -import javax.persistence.Table; +import jakarta.persistence.Embedded; +import jakarta.persistence.EmbeddedId; +import jakarta.persistence.Entity; +import jakarta.persistence.Table; import java.io.Serializable; @Entity diff --git a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/hibernate/EmbeddableIdTestEntityEmbeddable.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/entity/EmbeddableIdTestEntityEmbeddable.java similarity index 97% rename from core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/hibernate/EmbeddableIdTestEntityEmbeddable.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/entity/EmbeddableIdTestEntityEmbeddable.java index 6a82edcfe9..9612bb228b 100644 --- a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/hibernate/EmbeddableIdTestEntityEmbeddable.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/entity/EmbeddableIdTestEntityEmbeddable.java @@ -3,12 +3,12 @@ * Copyright Blazebit */ -package com.blazebit.persistence.testsuite.hibernate; +package com.blazebit.persistence.testsuite.hibernate.entity; import com.blazebit.persistence.testsuite.entity.IntIdEntity; import com.blazebit.persistence.testsuite.entity.NameObject; -import javax.persistence.*; +import jakarta.persistence.*; import java.io.Serializable; import java.util.HashMap; import java.util.HashSet; diff --git a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/hibernate/EmbeddableIdTestEntityId.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/entity/EmbeddableIdTestEntityId.java similarity index 96% rename from core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/hibernate/EmbeddableIdTestEntityId.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/entity/EmbeddableIdTestEntityId.java index 34708ba9ac..cc9f9449cb 100644 --- a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/hibernate/EmbeddableIdTestEntityId.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/entity/EmbeddableIdTestEntityId.java @@ -3,12 +3,12 @@ * Copyright Blazebit */ -package com.blazebit.persistence.testsuite.hibernate; +package com.blazebit.persistence.testsuite.hibernate.entity; import com.blazebit.persistence.testsuite.entity.EmbeddableTestEntityIdEmbeddable; import com.blazebit.persistence.testsuite.entity.IntIdEntity; -import javax.persistence.*; +import jakarta.persistence.*; import java.io.Serializable; @Embeddable diff --git a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/hibernate/EmbeddableIdTestEntityNestedEmbeddable.java b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/entity/EmbeddableIdTestEntityNestedEmbeddable.java similarity index 87% rename from core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/hibernate/EmbeddableIdTestEntityNestedEmbeddable.java rename to core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/entity/EmbeddableIdTestEntityNestedEmbeddable.java index 6aa4c1e378..f259154c56 100644 --- a/core/testsuite/src/test/hibernate/com/blazebit/persistence/testsuite/hibernate/EmbeddableIdTestEntityNestedEmbeddable.java +++ b/core/testsuite-hibernate/src/test/java/com/blazebit/persistence/testsuite/hibernate/entity/EmbeddableIdTestEntityNestedEmbeddable.java @@ -3,12 +3,12 @@ * Copyright Blazebit */ -package com.blazebit.persistence.testsuite.hibernate; +package com.blazebit.persistence.testsuite.hibernate.entity; -import javax.persistence.Embeddable; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.OneToMany; +import jakarta.persistence.Embeddable; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.OneToMany; import java.io.Serializable; import java.util.HashSet; import java.util.Set; diff --git a/integration/spring-hateoas/webmvc-jakarta/src/test/resources/logging.properties b/core/testsuite-hibernate/src/test/resources/logging.properties similarity index 95% rename from integration/spring-hateoas/webmvc-jakarta/src/test/resources/logging.properties rename to core/testsuite-hibernate/src/test/resources/logging.properties index f4f9a66aa9..f307bc07b8 100644 --- a/integration/spring-hateoas/webmvc-jakarta/src/test/resources/logging.properties +++ b/core/testsuite-hibernate/src/test/resources/logging.properties @@ -20,6 +20,7 @@ handlers = java.util.logging.ConsoleHandler # We turn it off for TravisCI build with SEVERE org.hibernate.level = SEVERE org.hibernate.tool.hbm2ddl.level = OFF +org.hibernate.tool.schema.internal.ExceptionHandlerLoggedImpl.level = ALL #org.hibernate.SQL.level = ALL #org.hibernate.type.descriptor.sql.level = ALL #org.hibernate.tool.hbm2ddl.level = ALL diff --git a/core/testsuite-hibernate6/pom.xml b/core/testsuite-hibernate6/pom.xml deleted file mode 100644 index 3afd63f793..0000000000 --- a/core/testsuite-hibernate6/pom.xml +++ /dev/null @@ -1,842 +0,0 @@ - - - 4.0.0 - - com.blazebit - blaze-persistence-core - 1.6.15-SNAPSHOT - ../pom.xml - - - blaze-persistence-core-testsuite-hibernate6 - jar - - - - 11 - ${test.java.version} - com.blazebit.persistence.view.testsuite.hibernate6 - ${version.jakarta-jpa-api} - ${h2-2.version} - com.blazebit.persistence.testsuite - 0 - - - - - - - - ${project.groupId} - blaze-persistence-core-api-jakarta - test - - - ${project.groupId} - blaze-persistence-core-impl-jakarta - test - - - - ${project.groupId} - blaze-persistence-testsuite-base-hibernate6 - ${project.version} - compile - - - ${project.groupId} - blaze-persistence-core-testsuite-jakarta - ${project.version} - compile - - - junit - junit - test - - - - - - h2 - - true - - - - - org.apache.maven.plugins - maven-surefire-plugin - - ${test} - ${maven.test.skip} - ${surefireForkCount} - ${project.build.directory}/surefire-reports/${surefire.forkNumber} - - jdbc:h2:mem:core${surefire.forkNumber};DB_CLOSE_DELAY=-1 - admin - admin - org.h2.Driver - com.blazebit.persistence.testsuite.base.jpa.category.NoH2,com.blazebit.persistence.testsuite.base.jpa.category.NoH2Latest,${jpa.excludedGroups} - ${testBasePackage} - ${surefireForkCount} - $${surefire.forkNumber} - UTC - - - com.blazebit:blaze-persistence-core-testsuite-jakarta - - - - - org.apache.maven.surefire - surefire-junit47 - ${version.surefire.plugin} - - - - - - - - com.h2database - h2 - ${version.h2} - test - - - - - mysql - - - - org.apache.maven.plugins - maven-surefire-plugin - - ${test} - ${maven.test.skip} - ${surefireForkCount} - ${project.build.directory}/surefire-reports/${surefire.forkNumber} - - jdbc:mysql://${dbHost}:3306/information_schema?useUnicode=true&characterEncoding=utf8&databaseTerm=schema&nullDatabaseMeansCurrent=true - root - - com.mysql.jdbc.Driver - core${surefire.forkNumber} - com.blazebit.persistence.testsuite.base.jpa.category.NoMySQL,com.blazebit.persistence.testsuite.base.jpa.category.NoMySQLOld,${jpa.excludedGroups} - ${testBasePackage} - ${surefireForkCount} - $${surefire.forkNumber} - UTC - - - com.blazebit:blaze-persistence-core-testsuite-jakarta - - - - - org.apache.maven.surefire - surefire-junit47 - ${version.surefire.plugin} - - - - - - - - mysql - mysql-connector-java - test - - - - - mysql8 - - - - org.apache.maven.plugins - maven-surefire-plugin - - ${test} - ${maven.test.skip} - ${surefireForkCount} - ${project.build.directory}/surefire-reports/${surefire.forkNumber} - - jdbc:mysql://${dbHost}:3306/information_schema?useUnicode=true&characterEncoding=utf8&databaseTerm=schema&nullDatabaseMeansCurrent=true - root - - com.mysql.jdbc.Driver - core${surefire.forkNumber} - com.blazebit.persistence.testsuite.base.jpa.category.NoMySQL,${jpa.excludedGroups} - ${testBasePackage} - ${surefireForkCount} - $${surefire.forkNumber} - UTC - - - com.blazebit:blaze-persistence-core-testsuite-jakarta - - - - - org.apache.maven.surefire - surefire-junit47 - ${version.surefire.plugin} - - - - - - - - mysql - mysql-connector-java - test - - - - - postgresql - - - - org.apache.maven.plugins - maven-surefire-plugin - - ${test} - ${surefireForkCount} - ${project.build.directory}/surefire-reports/${surefire.forkNumber} - - jdbc:postgresql://${dbHost}:5432/test - postgres - postgres - org.postgresql.Driver - core${surefire.forkNumber} - com.blazebit.persistence.testsuite.base.jpa.category.NoPostgreSQL,${jpa.excludedGroups} - ${testBasePackage} - ${surefireForkCount} - $${surefire.forkNumber} - UTC - - - com.blazebit:blaze-persistence-core-testsuite-jakarta - - - - - org.apache.maven.surefire - surefire-junit47 - ${version.surefire.plugin} - - - - - - - - org.postgresql - postgresql - test - - - - - sqlite - - - - org.apache.maven.plugins - maven-surefire-plugin - - ${test} - - jdbc:sqlite:test.db - - - org.sqlite.JDBC - com.blazebit.persistence.testsuite.base.jpa.category.NoSQLite,${jpa.excludedGroups} - ${testBasePackage} - - - com.blazebit:blaze-persistence-core-testsuite-jakarta - - - - - org.apache.maven.surefire - surefire-junit47 - ${version.surefire.plugin} - - - - - - - - org.xerial - sqlite-jdbc - test - - - - - db2 - - - - org.apache.maven.plugins - maven-surefire-plugin - - ${test} - ${maven.test.skip} - ${surefireForkCount} - ${project.build.directory}/surefire-reports/${surefire.forkNumber} - - jdbc:db2://${dbHost}:50000/test - db2inst1 - db2inst1-pwd - com.ibm.db2.jcc.DB2Driver - core${surefire.forkNumber} - com.blazebit.persistence.testsuite.base.jpa.category.NoDB2,${jpa.excludedGroups} - ${testBasePackage} - ${surefireForkCount} - $${surefire.forkNumber} - UTC - - - com.blazebit:blaze-persistence-core-testsuite-jakarta - - - - - org.apache.maven.surefire - surefire-junit47 - ${version.surefire.plugin} - - - - - - - - com.ibm.db2 - jcc - 11.5.5.0 - test - - - - - firebird - - - - org.apache.maven.plugins - maven-surefire-plugin - - ${test} - - jdbc:firebirdsql:${dbHost}:/tmp/test.fdb - SYSDBA - masterkey - org.firebirdsql.jdbc.FBDriver - com.blazebit.persistence.testsuite.base.jpa.category.NoFirebird,${jpa.excludedGroups} - ${testBasePackage} - - - com.blazebit:blaze-persistence-core-testsuite-jakarta - - - - - org.apache.maven.surefire - surefire-junit47 - ${version.surefire.plugin} - - - - - - - - org.firebirdsql.jdbc - jaybird-jdk16 - test - - - - - oracle - - - - org.apache.maven.plugins - maven-surefire-plugin - - ${test} - ${maven.test.skip} - ${surefireForkCount} - ${project.build.directory}/surefire-reports/${surefire.forkNumber} - - jdbc:oracle:thin:@${dbHost}:1521:XE - SYSTEM - Oracle18 - oracle.jdbc.driver.OracleDriver - C##CORE${surefire.forkNumber} - - US - en - UTC - - - true - com.blazebit.persistence.testsuite.base.jpa.category.NoOracle,${jpa.excludedGroups} - ${testBasePackage} - ${surefireForkCount} - $${surefire.forkNumber} - - - com.blazebit:blaze-persistence-core-testsuite-jakarta - - - - - org.apache.maven.surefire - surefire-junit47 - ${version.surefire.plugin} - - - - - - - - com.oracle.database.jdbc - ojdbc8 - test - - - - - mssql - - - - org.apache.maven.plugins - maven-surefire-plugin - - ${test} - ${maven.test.skip} - ${surefireForkCount} - ${project.build.directory}/surefire-reports/${surefire.forkNumber} - - jdbc:sqlserver://${dbHost}:1433;trustServerCertificate=true - sa - Blaze-Persistence - com.microsoft.sqlserver.jdbc.SQLServerDriver - core${surefire.forkNumber} - com.blazebit.persistence.testsuite.base.jpa.category.NoMSSQL,${jpa.excludedGroups} - ${testBasePackage} - ${surefireForkCount} - $${surefire.forkNumber} - UTC - - - com.blazebit:blaze-persistence-core-testsuite-jakarta - - - - - org.apache.maven.surefire - surefire-junit47 - ${version.surefire.plugin} - - - - - - - - com.microsoft.sqlserver - mssql-jdbc - test - - - - - - - hibernate-5.6 - - com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate60 - - - - - org.hibernate - hibernate-core - ${version.hibernate-6.2} - - - org.hibernate - hibernate-envers - ${version.hibernate-6.2} - - - org.hibernate - hibernate-testing - ${version.hibernate-6.2} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jakarta-jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jakarta-jaxb} - - - jakarta.persistence - jakarta.persistence-api - ${version.jakarta-jpa-3.1-api} - provided - - - jakarta.transaction - jakarta.transaction-api - ${version.jakarta-jta} - - - jakarta.activation - jakarta.activation-api - ${version.jakarta-activation} - - - ${project.groupId} - blaze-persistence-integration-hibernate-6.2 - test - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-6.2} - provided - - - - - hibernate-6.2 - - true - - - com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate60 - - - - org.hibernate - hibernate-core - ${version.hibernate-6.2} - - - org.hibernate - hibernate-envers - ${version.hibernate-6.2} - - - org.hibernate - hibernate-testing - ${version.hibernate-6.2} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jakarta-jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jakarta-jaxb} - - - jakarta.persistence - jakarta.persistence-api - ${version.jakarta-jpa-3.1-api} - provided - - - jakarta.transaction - jakarta.transaction-api - ${version.jakarta-jta} - - - jakarta.activation - jakarta.activation-api - ${version.jakarta-activation} - - - ${project.groupId} - blaze-persistence-integration-hibernate-6.2 - test - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-6.2} - provided - - - - - hibernate-6.3 - - com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate60 - - - - org.hibernate - hibernate-core - ${version.hibernate-6.3} - - - org.hibernate - hibernate-envers - ${version.hibernate-6.3} - - - org.hibernate - hibernate-testing - ${version.hibernate-6.3} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jakarta-jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jakarta-jaxb} - - - jakarta.persistence - jakarta.persistence-api - ${version.jakarta-jpa-3.1-api} - provided - - - jakarta.transaction - jakarta.transaction-api - ${version.jakarta-jta} - - - jakarta.activation - jakarta.activation-api - ${version.jakarta-activation} - - - ${project.groupId} - blaze-persistence-integration-hibernate-6.2 - test - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-6.3} - provided - - - - - hibernate-6.4 - - com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate60 - - - - org.hibernate - hibernate-core - ${version.hibernate-6.4} - - - org.hibernate - hibernate-envers - ${version.hibernate-6.4} - - - org.hibernate - hibernate-testing - ${version.hibernate-6.4} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jakarta-jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jakarta-jaxb} - - - jakarta.persistence - jakarta.persistence-api - ${version.jakarta-jpa-3.1-api} - provided - - - jakarta.transaction - jakarta.transaction-api - ${version.jakarta-jta} - - - jakarta.activation - jakarta.activation-api - ${version.jakarta-activation} - - - ${project.groupId} - blaze-persistence-integration-hibernate-6.2 - test - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-6.4} - provided - - - - - hibernate-6.5 - - com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate60 - - - - org.hibernate - hibernate-core - ${version.hibernate-6.5} - - - org.hibernate - hibernate-envers - ${version.hibernate-6.5} - - - org.hibernate - hibernate-testing - ${version.hibernate-6.5} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jakarta-jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jakarta-jaxb} - - - jakarta.persistence - jakarta.persistence-api - ${version.jakarta-jpa-3.1-api} - provided - - - jakarta.transaction - jakarta.transaction-api - ${version.jakarta-jta} - - - jakarta.activation - jakarta.activation-api - ${version.jakarta-activation} - - - ${project.groupId} - blaze-persistence-integration-hibernate-6.2 - test - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-6.5} - provided - - - - - hibernate-6.6 - - com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate60,com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate66 - - - - org.hibernate - hibernate-core - ${version.hibernate-6.6} - - - org.hibernate - hibernate-envers - ${version.hibernate-6.6} - - - org.hibernate - hibernate-testing - ${version.hibernate-6.6} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jakarta-jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jakarta-jaxb} - - - jakarta.persistence - jakarta.persistence-api - ${version.jakarta-jpa-3.1-api} - provided - - - jakarta.transaction - jakarta.transaction-api - ${version.jakarta-jta} - - - jakarta.activation - jakarta.activation-api - ${version.jakarta-activation} - - - ${project.groupId} - blaze-persistence-integration-hibernate-6.2 - test - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-6.6} - provided - - - - - diff --git a/core/testsuite-jakarta/pom.xml b/core/testsuite-jakarta/pom.xml deleted file mode 100644 index 26973e6abc..0000000000 --- a/core/testsuite-jakarta/pom.xml +++ /dev/null @@ -1,298 +0,0 @@ - - - - - 4.0.0 - - - com.blazebit - blaze-persistence-core - 1.6.15-SNAPSHOT - ../pom.xml - - - blaze-persistence-core-testsuite-jakarta - jar - - - com.blazebit.persistence.core.testsuite - - - - - ${project.groupId} - blaze-persistence-core-testsuite - ${project.version} - provided - - - jakarta.persistence - jakarta.persistence-api - ${version.jakarta-jpa-api} - provided - - - ${project.groupId} - blaze-common-utils - - - ${project.groupId} - blaze-persistence-testsuite-base-hibernate6 - ${project.version} - compile - - - - - junit - junit - compile - - - - com.fasterxml.jackson.core - jackson-databind - 2.11.0 - - - - - org.mockito - mockito-core - - - ${project.groupId} - blaze-persistence-testsuite-base-assertion - ${project.version} - - - - - - - maven-antrun-plugin - - - transform-jar - package - - run - - - - - - - - - - - - - - - - - - - - - - transform-sources-jar - package - - run - - - - - - - - - - - - - - - - - - - - - - - - transform-javadoc - package - - run - - - - - - - - - - - - - - - - - - - - - - - - transform-test - package - - run - - - - - - - - - - - - - - - - - - - - - - - - - - org.eclipse.transformer - org.eclipse.transformer.cli - 0.5.0 - - - ant-contrib - ant-contrib - 1.0b3 - - - ant - ant - - - - - biz.aQute.bnd - biz.aQute.bnd.transform - ${version.bnd} - compile - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - attach-artifacts - package - - attach-artifact - - - - - ${project.build.directory}/${project.build.finalName}-sources.jar - sources - jar - - - ${project.build.directory}/${project.build.finalName}-tests.jar - tests - jar - - - - - - - - maven-surefire-plugin - - true - - - - maven-jar-plugin - - - - test-jar - - - - - - - - - blazebit-release - - - - org.codehaus.mojo - build-helper-maven-plugin - - - attach-artifacts - package - - attach-artifact - - - - - ${project.build.directory}/${project.build.finalName}-sources.jar - sources - jar - - - ${project.build.directory}/${project.build.finalName}-tests.jar - tests - jar - - - ${project.build.directory}/${project.build.finalName}-javadoc.jar - javadoc - jar - - - - - - - - - - - - diff --git a/core/testsuite/pom.xml b/core/testsuite/pom.xml index 26e4ddad33..1c5c30f5b6 100644 --- a/core/testsuite/pom.xml +++ b/core/testsuite/pom.xml @@ -20,9 +20,6 @@ Blazebit Persistence Core Testsuite - - 1.8 - ${test.java.version} com.blazebit.persistence.core.testsuite com.blazebit.persistence.testsuite 2 @@ -30,6 +27,31 @@ + + jakarta.persistence + jakarta.persistence-api + provided + + + jakarta.transaction + jakarta.transaction-api + provided + + + jakarta.interceptor + jakarta.interceptor-api + provided + + + jakarta.inject + jakarta.inject-api + provided + + + jakarta.enterprise + jakarta.enterprise.cdi-api + provided + @@ -47,6 +69,11 @@ ${project.groupId} blaze-common-utils + + ${project.groupId} + blaze-persistence-entity-view-api + test + org.apache.maven.plugins @@ -65,7 +92,6 @@ com.fasterxml.jackson.core jackson-databind - 2.11.0 test @@ -80,7 +106,6 @@ ${project.version} - jakarta.xml.bind jakarta.xml.bind-api @@ -94,44 +119,31 @@ jakarta.annotation jakarta.annotation-api - ${version.annotation} + ${version.annotation-api} jakarta.activation jakarta.activation-api - ${version.activation} + ${version.activation-api} - org.moditect - moditect-maven-plugin + org.codehaus.mojo + build-helper-maven-plugin - add-module-infos - package + add-source + generate-sources - add-module-info + add-source - - - open module ${module.name} { - requires java.sql; - requires java.persistence; - requires com.blazebit.common.utils; - requires com.blazebit.persistence.core; - requires com.blazebit.persistence.core.parser; - requires com.blazebit.persistence.core.impl; - exports com.blazebit.persistence.testsuite; - exports com.blazebit.persistence.testsuite.entity; - exports com.blazebit.persistence.testsuite.treat.entity; - exports com.blazebit.persistence.testsuite.tx; - } - - + + ${additional.source.directory} + @@ -161,11 +173,13 @@ admin admin org.h2.Driver - com.blazebit.persistence.testsuite.base.jpa.category.NoH2,${jpa.excludedGroups} + com.blazebit.persistence.testsuite.base.jpa.category.NoH2,com.blazebit.persistence.testsuite.base.jpa.category.NoH2Latest,${jpa.excludedGroups} ${testBasePackage} ${surefireForkCount} $${surefire.forkNumber} UTC + US + en @@ -176,25 +190,6 @@ - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - @@ -208,68 +203,6 @@ mysql - - - - org.apache.maven.plugins - maven-surefire-plugin - - ${test} - ${maven.test.skip} - ${surefireForkCount} - ${project.build.directory}/surefire-reports/${surefire.forkNumber} - - jdbc:mysql://${dbHost}:3306/information_schema?useUnicode=true&characterEncoding=utf8&databaseTerm=schema&nullDatabaseMeansCurrent=true - root - - com.mysql.jdbc.Driver - core${surefire.forkNumber} - com.blazebit.persistence.testsuite.base.jpa.category.NoMySQL,com.blazebit.persistence.testsuite.base.jpa.category.NoMySQLOld,${jpa.excludedGroups} - ${testBasePackage} - ${surefireForkCount} - $${surefire.forkNumber} - UTC - - - - - org.apache.maven.surefire - surefire-junit47 - ${version.surefire.plugin} - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - - - - - - mysql - mysql-connector-java - test - - - - - mysql8 @@ -301,25 +234,6 @@ - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - @@ -362,25 +276,6 @@ - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - @@ -391,61 +286,6 @@ - - sqlite - - - - org.apache.maven.plugins - maven-surefire-plugin - - ${test} - - jdbc:sqlite:test.db - - - org.sqlite.JDBC - com.blazebit.persistence.testsuite.base.jpa.category.NoSQLite,${jpa.excludedGroups} - ${testBasePackage} - - - - - org.apache.maven.surefire - surefire-junit47 - ${version.surefire.plugin} - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - - - - - - org.xerial - sqlite-jdbc - test - - - db2 @@ -479,25 +319,6 @@ - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - @@ -509,61 +330,6 @@ - - firebird - - - - org.apache.maven.plugins - maven-surefire-plugin - - ${test} - - jdbc:firebirdsql:${dbHost}:/tmp/test.fdb - SYSDBA - masterkey - org.firebirdsql.jdbc.FBDriver - com.blazebit.persistence.testsuite.base.jpa.category.NoFirebird,${jpa.excludedGroups} - ${testBasePackage} - - - - - org.apache.maven.surefire - surefire-junit47 - ${version.surefire.plugin} - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - - - - - - org.firebirdsql.jdbc - jaybird-jdk16 - test - - - oracle @@ -603,25 +369,6 @@ - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - @@ -665,25 +412,6 @@ - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - @@ -697,2078 +425,332 @@ - hibernate + hibernate-6.2 - com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate,com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate42 + com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate,com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate60 src/main/hibernate - org.hibernate - hibernate-entitymanager - ${version.hibernate-4.2} + org.hibernate.orm + hibernate-core + ${version.hibernate-6.2} - org.hibernate + org.hibernate.orm hibernate-envers - ${version.hibernate-4.2} + ${version.hibernate-6.2} - org.hibernate + org.hibernate.orm hibernate-testing - ${version.hibernate-4.2} + ${version.hibernate-6.2} - com.vladmihalcea - hibernate-types-4 - ${version.hibernate-types} + jakarta.xml.bind + jakarta.xml.bind-api + ${version.jaxb-api} - ${project.groupId} - blaze-persistence-integration-hibernate-4.2 - test + com.sun.xml.bind + jaxb-impl + ${version.jaxb} + + + jakarta.transaction + jakarta.transaction-api + ${version.jta-api} + + + jakarta.activation + jakarta.activation-api + ${version.activation-api} ${project.groupId} - blaze-persistence-jpa-criteria-jpa-2-compatibility + blaze-persistence-integration-hibernate-6.2 + test ${project.groupId} - blaze-persistence-testsuite-base-hibernate + blaze-persistence-testsuite-base-hibernate6 + ${project.version} compile - org.hibernate + org.hibernate.orm hibernate-jpamodelgen - 1.3.0.Final + ${version.hibernate-6.2} provided - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - add-test-source-hibernate - generate-test-sources - - add-test-source - - - - src/test/hibernate - src/test/hibernateold - - - - - - - org.bsc.maven - maven-processor-plugin - - - process - - process - - generate-sources - - - ${additional.source.directory} - - - ${project.build.directory}/generated-sources/metamodel - - org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor - - - - - - - - org.hibernate - hibernate-jpamodelgen - 1.3.0.Final - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jta} - - - jakarta.activation - jakarta.activation-api - ${version.activation} - - + maven-compiler-plugin + + + + + org.hibernate.orm + hibernate-jpamodelgen + ${version.hibernate-6.2} + + + jakarta.xml.bind + jakarta.xml.bind-api + ${version.jaxb-api} + + + com.sun.xml.bind + jaxb-impl + ${version.jaxb} + + + jakarta.transaction + jakarta.transaction-api + ${version.jta-api} + + + jakarta.activation + jakarta.activation-api + ${version.activation-api} + + + + org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor + + - hibernate-4.3 + hibernate-6.4 - com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate,com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate43 + com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate,com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate60 src/main/hibernate - org.hibernate - hibernate-entitymanager - ${version.hibernate-4.3} + org.hibernate.orm + hibernate-core + ${version.hibernate-6.4} - org.hibernate + org.hibernate.orm hibernate-envers - ${version.hibernate-4.3} + ${version.hibernate-6.4} - org.hibernate + org.hibernate.orm hibernate-testing - ${version.hibernate-4.3} + ${version.hibernate-6.4} + + + jakarta.xml.bind + jakarta.xml.bind-api + ${version.jaxb-api} + + + com.sun.xml.bind + jaxb-impl + ${version.jaxb} + + + jakarta.transaction + jakarta.transaction-api + ${version.jta-api} - com.vladmihalcea - hibernate-types-43 - ${version.hibernate-types} + jakarta.activation + jakarta.activation-api + ${version.activation-api} ${project.groupId} - blaze-persistence-integration-hibernate-4.3 + blaze-persistence-integration-hibernate-6.2 test ${project.groupId} - blaze-persistence-testsuite-base-hibernate + blaze-persistence-testsuite-base-hibernate6 + ${project.version} compile - org.hibernate + org.hibernate.orm hibernate-jpamodelgen - ${version.hibernate-4.3} + ${version.hibernate-6.4} provided - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - add-test-source-hibernate - generate-test-sources - - add-test-source - - - - src/test/hibernate - src/test/hibernateold - - - - - - - org.bsc.maven - maven-processor-plugin - - - process - - process - - generate-sources - - - ${additional.source.directory} - - - ${project.build.directory}/generated-sources/metamodel - - org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor - - - - - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-4.3} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jta} - - - jakarta.activation - jakarta.activation-api - ${version.activation} - - + maven-compiler-plugin + + + + + org.hibernate.orm + hibernate-jpamodelgen + ${version.hibernate-6.4} + + + jakarta.xml.bind + jakarta.xml.bind-api + ${version.jaxb-api} + + + com.sun.xml.bind + jaxb-impl + ${version.jaxb} + + + jakarta.transaction + jakarta.transaction-api + ${version.jta-api} + + + jakarta.activation + jakarta.activation-api + ${version.activation-api} + + + + org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor + + - hibernate-5.0 + hibernate-6.6 + + true + - com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate,com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate50 + com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate,com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate60,com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate66 src/main/hibernate - org.hibernate - hibernate-entitymanager - ${version.hibernate-5} + org.hibernate.orm + hibernate-core + ${version.hibernate-6.6} - org.hibernate + org.hibernate.orm hibernate-envers - ${version.hibernate-5} + ${version.hibernate-6.6} - org.hibernate + org.hibernate.orm hibernate-testing - ${version.hibernate-5} + ${version.hibernate-6.6} + + + jakarta.xml.bind + jakarta.xml.bind-api + ${version.jaxb-api} + + + com.sun.xml.bind + jaxb-impl + ${version.jaxb} + + + jakarta.transaction + jakarta.transaction-api + ${version.jta-api} - com.vladmihalcea - hibernate-types-5 - ${version.hibernate-types} + jakarta.activation + jakarta.activation-api + ${version.activation-api} ${project.groupId} - blaze-persistence-integration-hibernate-5 + blaze-persistence-integration-hibernate-6.2 test ${project.groupId} - blaze-persistence-testsuite-base-hibernate + blaze-persistence-testsuite-base-hibernate6 + ${project.version} compile - org.hibernate + org.hibernate.orm hibernate-jpamodelgen - ${version.hibernate-5} + ${version.hibernate-6.6} provided - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - add-test-source-hibernate - generate-test-sources - - add-test-source - - - - src/test/hibernate - src/test/hibernateold - - - - - - - org.bsc.maven - maven-processor-plugin - - - process - - process - - generate-sources - - - ${additional.source.directory} - - - ${project.build.directory}/generated-sources/metamodel - - org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor - - - - - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-5} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jta} - - - jakarta.activation - jakarta.activation-api - ${version.activation} - - + maven-compiler-plugin + + + + + org.hibernate.orm + hibernate-jpamodelgen + ${version.hibernate-6.6} + + + jakarta.xml.bind + jakarta.xml.bind-api + ${version.jaxb-api} + + + com.sun.xml.bind + jaxb-impl + ${version.jaxb} + + + jakarta.transaction + jakarta.transaction-api + ${version.jta-api} + + + jakarta.activation + jakarta.activation-api + ${version.activation-api} + + + + org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor + + - hibernate-5.1 + eclipselink - com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate,com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate51 - src/main/hibernate + com.blazebit.persistence.testsuite.base.jpa.category.NoEclipselink + src/main/basic - org.hibernate - hibernate-entitymanager - ${version.hibernate-5.1} + org.eclipse.persistence + eclipselink + ${version.eclipselink} - org.hibernate - hibernate-envers - ${version.hibernate-5.1} + ${project.groupId} + blaze-persistence-testsuite-base-eclipselink + compile - - org.hibernate - hibernate-testing - ${version.hibernate-5.1} - - - com.vladmihalcea - hibernate-types-5 - ${version.hibernate-types} - - - ${project.groupId} - blaze-persistence-integration-hibernate-5 - test - - - ${project.groupId} - blaze-persistence-testsuite-base-hibernate - compile - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-5.1} - provided - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - add-test-source-hibernate - generate-test-sources - - add-test-source - - - - src/test/hibernate - src/test/hibernateold - - - - - - - org.bsc.maven - maven-processor-plugin - - - process - - process - - generate-sources - - - ${additional.source.directory} - - - ${project.build.directory}/generated-sources/metamodel - - org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor - - - - - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-5.1} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jta} - - - jakarta.activation - jakarta.activation-api - ${version.activation} - - - - - - - - hibernate-5.2 - - com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate,com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate52 - src/main/hibernate - - - - org.hibernate - hibernate-entitymanager - ${version.hibernate-5.2} - - - org.javassist - javassist - - - - - org.hibernate - hibernate-envers - ${version.hibernate-5.2} - - - org.hibernate - hibernate-testing - ${version.hibernate-5.2} - - - com.vladmihalcea - hibernate-types-52 - ${version.hibernate-types} - - - ${project.groupId} - blaze-persistence-integration-hibernate-5.2 - test - - - ${project.groupId} - blaze-persistence-testsuite-base-hibernate - compile - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-5.2} - provided - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - add-test-source-hibernate - generate-test-sources - - add-test-source - - - - src/test/hibernate - src/test/hibernateold - - - - - - - org.bsc.maven - maven-processor-plugin - - - process - - process - - generate-sources - - - ${additional.source.directory} - - - ${project.build.directory}/generated-sources/metamodel - - org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor - - - - - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-5.2} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jta} - - - jakarta.activation - jakarta.activation-api - ${version.activation} - - - - - - - - hibernate-5.3 - - com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate,com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate53 - src/main/hibernate - - - - org.hibernate - hibernate-entitymanager - ${version.hibernate-5.3} - - - org.hibernate - hibernate-envers - ${version.hibernate-5.3} - - - org.hibernate - hibernate-testing - ${version.hibernate-5.3} - - - com.vladmihalcea - hibernate-types-52 - ${version.hibernate-types} - - - ${project.groupId} - blaze-persistence-integration-hibernate-5.3 - test - - - ${project.groupId} - blaze-persistence-testsuite-base-hibernate - compile - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-5.3} - provided - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - add-test-source-hibernate - generate-test-sources - - add-test-source - - - - src/test/hibernate - src/test/hibernateold - - - - - - - org.bsc.maven - maven-processor-plugin - - - process - - process - - generate-sources - - - ${additional.source.directory} - - - ${project.build.directory}/generated-sources/metamodel - - org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor - - - - - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-5.3} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jta} - - - jakarta.activation - jakarta.activation-api - ${version.activation} - - - - - - - - hibernate-5.4 - - com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate - src/main/hibernate - - - - org.hibernate - hibernate-entitymanager - ${version.hibernate-5.4} - - - org.hibernate - hibernate-envers - ${version.hibernate-5.4} - - - org.hibernate - hibernate-testing - ${version.hibernate-5.4} - - - com.vladmihalcea - hibernate-types-52 - ${version.hibernate-types} - - - ${project.groupId} - blaze-persistence-integration-hibernate-5.4 - test - - - ${project.groupId} - blaze-persistence-testsuite-base-hibernate - compile - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-5.4} - provided - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - add-test-source-hibernate - generate-test-sources - - add-test-source - - - - src/test/hibernate - src/test/hibernateold - - - - - - - org.bsc.maven - maven-processor-plugin - - - process - - process - - generate-sources - - - ${additional.source.directory} - - - ${project.build.directory}/generated-sources/metamodel - - org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor - - - - - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-5.4} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jta} - - - jakarta.activation - jakarta.activation-api - ${version.activation} - - - - - - - - hibernate-5.5 - - com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate - src/main/hibernate - - - - org.hibernate - hibernate-entitymanager - ${version.hibernate-5.5} - - - org.hibernate - hibernate-envers - ${version.hibernate-5.5} - - - org.hibernate - hibernate-testing - ${version.hibernate-5.5} - - - com.vladmihalcea - hibernate-types-55 - ${version.hibernate-types} - - - ${project.groupId} - blaze-persistence-integration-hibernate-5.5 - test - - - ${project.groupId} - blaze-persistence-testsuite-base-hibernate - compile - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-5.5} - provided - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - add-test-source-hibernate - generate-test-sources - - add-test-source - - - - src/test/hibernate - src/test/hibernateold - - - - - - - org.bsc.maven - maven-processor-plugin - - - process - - process - - generate-sources - - - ${additional.source.directory} - - - ${project.build.directory}/generated-sources/metamodel - - org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor - - - - - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-5.5} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jta} - - - jakarta.activation - jakarta.activation-api - ${version.activation} - - - - - - - - hibernate-5.6 - - com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate - src/main/hibernate - - - true - - - - org.hibernate - hibernate-entitymanager - ${version.hibernate-5.6} - - - org.hibernate - hibernate-envers - ${version.hibernate-5.6} - - - org.hibernate - hibernate-testing - ${version.hibernate-5.6} - - - com.vladmihalcea - hibernate-types-55 - ${version.hibernate-types} - - - ${project.groupId} - blaze-persistence-integration-hibernate-5.6 - test - - - ${project.groupId} - blaze-persistence-testsuite-base-hibernate - compile - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-5.6} - provided - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - add-test-source-hibernate - generate-test-sources - - add-test-source - - - - src/test/hibernate - src/test/hibernateold - - - - - - - org.bsc.maven - maven-processor-plugin - - - process - - process - - generate-sources - - - ${additional.source.directory} - - - ${project.build.directory}/generated-sources/metamodel - - org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor - - - - - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-5.6} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jta} - - - jakarta.activation - jakarta.activation-api - ${version.activation} - - - - - - - - hibernate-6.2 - - - com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate,com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate60 - src/main/hibernate - - - - org.hibernate - hibernate-core - ${version.hibernate-5.6} - - - org.hibernate - hibernate-envers - ${version.hibernate-5.6} - - - org.hibernate - hibernate-testing - ${version.hibernate-5.6} - - - com.vladmihalcea - hibernate-types-52 - ${version.hibernate-types} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jakarta-jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jakarta-jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jakarta-jta} - - - jakarta.activation - jakarta.activation-api - ${version.jakarta-activation} - - - ${project.groupId} - blaze-persistence-integration-hibernate-6.2 - test - - - ${project.groupId} - blaze-persistence-testsuite-base-hibernate - compile - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-5.6} - provided - - - - - - maven-surefire-plugin - - true - - - - maven-jar-plugin - - - - test-jar - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - add-test-source-hibernate - generate-test-sources - - add-test-source - - - - src/test/hibernate - - - - - - - org.bsc.maven - maven-processor-plugin - - - process - - process - - generate-sources - - - ${additional.source.directory} - - - ${project.build.directory}/generated-sources/metamodel - - org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor - - - - - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-5.6} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jakarta-jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jakarta-jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jakarta-jta} - - - jakarta.activation - jakarta.activation-api - ${version.jakarta-activation} - - - - - - - - hibernate-6.3 - - - com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate,com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate60 - src/main/hibernate - - - - org.hibernate - hibernate-core - ${version.hibernate-5.6} - - - org.hibernate - hibernate-envers - ${version.hibernate-5.6} - - - org.hibernate - hibernate-testing - ${version.hibernate-5.6} - - - com.vladmihalcea - hibernate-types-52 - ${version.hibernate-types} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jakarta-jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jakarta-jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jakarta-jta} - - - jakarta.activation - jakarta.activation-api - ${version.jakarta-activation} - - - ${project.groupId} - blaze-persistence-integration-hibernate-6.2 - test - - - ${project.groupId} - blaze-persistence-testsuite-base-hibernate - compile - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-5.6} - provided - - - - - - maven-surefire-plugin - - true - - - - maven-jar-plugin - - - - test-jar - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - add-test-source-hibernate - generate-test-sources - - add-test-source - - - - src/test/hibernate - - - - - - - org.bsc.maven - maven-processor-plugin - - - process - - process - - generate-sources - - - ${additional.source.directory} - - - ${project.build.directory}/generated-sources/metamodel - - org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor - - - - - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-5.6} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jakarta-jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jakarta-jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jakarta-jta} - - - jakarta.activation - jakarta.activation-api - ${version.jakarta-activation} - - - - - - - - hibernate-6.4 - - - com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate,com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate60 - src/main/hibernate - - - - org.hibernate - hibernate-core - ${version.hibernate-5.6} - - - org.hibernate - hibernate-envers - ${version.hibernate-5.6} - - - org.hibernate - hibernate-testing - ${version.hibernate-5.6} - - - com.vladmihalcea - hibernate-types-52 - ${version.hibernate-types} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jakarta-jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jakarta-jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jakarta-jta} - - - jakarta.activation - jakarta.activation-api - ${version.jakarta-activation} - - - ${project.groupId} - blaze-persistence-integration-hibernate-6.2 - test - - - ${project.groupId} - blaze-persistence-testsuite-base-hibernate - compile - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-5.6} - provided - - - - - - maven-surefire-plugin - - true - - - - maven-jar-plugin - - - - test-jar - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - add-test-source-hibernate - generate-test-sources - - add-test-source - - - - src/test/hibernate - - - - - - - org.bsc.maven - maven-processor-plugin - - - process - - process - - generate-sources - - - ${additional.source.directory} - - - ${project.build.directory}/generated-sources/metamodel - - org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor - - - - - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-5.6} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jakarta-jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jakarta-jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jakarta-jta} - - - jakarta.activation - jakarta.activation-api - ${version.jakarta-activation} - - - - - - - - hibernate-6.5 - - - com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate,com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate60 - src/main/hibernate - - - - org.hibernate - hibernate-core - ${version.hibernate-5.6} - - - org.hibernate - hibernate-envers - ${version.hibernate-5.6} - - - org.hibernate - hibernate-testing - ${version.hibernate-5.6} - - - com.vladmihalcea - hibernate-types-52 - ${version.hibernate-types} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jakarta-jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jakarta-jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jakarta-jta} - - - jakarta.activation - jakarta.activation-api - ${version.jakarta-activation} - - - ${project.groupId} - blaze-persistence-integration-hibernate-6.2 - test - - - ${project.groupId} - blaze-persistence-testsuite-base-hibernate - compile - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-5.6} - provided - - - - - - maven-surefire-plugin - - true - - - - maven-jar-plugin - - - - test-jar - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - add-test-source-hibernate - generate-test-sources - - add-test-source - - - - src/test/hibernate - - - - - - - org.bsc.maven - maven-processor-plugin - - - process - - process - - generate-sources - - - ${additional.source.directory} - - - ${project.build.directory}/generated-sources/metamodel - - org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor - - - - - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-5.6} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jakarta-jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jakarta-jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jakarta-jta} - - - jakarta.activation - jakarta.activation-api - ${version.jakarta-activation} - - - - - - - - hibernate-6.6 - - - com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate,com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate60,com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate66 - src/main/hibernate - - - - org.hibernate - hibernate-core - ${version.hibernate-5.6} - - - org.hibernate - hibernate-envers - ${version.hibernate-5.6} - - - org.hibernate - hibernate-testing - ${version.hibernate-5.6} - - - com.vladmihalcea - hibernate-types-52 - ${version.hibernate-types} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jakarta-jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jakarta-jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jakarta-jta} - - - jakarta.activation - jakarta.activation-api - ${version.jakarta-activation} - - - ${project.groupId} - blaze-persistence-integration-hibernate-6.2 - test - - - ${project.groupId} - blaze-persistence-testsuite-base-hibernate - compile - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-5.6} - provided - - - - - - maven-surefire-plugin - - true - - - - maven-jar-plugin - - - - test-jar - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - add-test-source-hibernate - generate-test-sources - - add-test-source - - - - src/test/hibernate - - - - - - - org.bsc.maven - maven-processor-plugin - - - process - - process - - generate-sources - - - ${additional.source.directory} - - - ${project.build.directory}/generated-sources/metamodel - - org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor - - - - - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-5.6} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jakarta-jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jakarta-jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jakarta-jta} - - - jakarta.activation - jakarta.activation-api - ${version.jakarta-activation} - - - - - - - - eclipselink - - com.blazebit.persistence.testsuite.base.jpa.category.NoEclipselink - src/main/basic - - - - org.eclipse.persistence - eclipselink - ${version.eclipselink} - - - ${project.groupId} - blaze-persistence-testsuite-base-eclipselink - compile - - + org.eclipse.persistence org.eclipse.persistence.jpa.modelgen.processor @@ -2779,755 +761,145 @@ - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - - - org.bsc.maven - maven-processor-plugin - - - process - - process - - generate-sources - - - ${additional.source.directory} - - - ${project.build.directory}/generated-sources/metamodel - - org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor - - - ${basedir}/src/main/resources/META-INF/persistence.xml - - - - - - - - org.eclipse.persistence - org.eclipse.persistence.jpa.modelgen.processor - ${version.eclipselink} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jta} - - - jakarta.activation - jakarta.activation-api - ${version.activation} - - - - - - - - datanucleus-4 - - com.blazebit.persistence.testsuite.base.jpa.category.NoDatanucleus,com.blazebit.persistence.testsuite.base.jpa.category.NoDatanucleus4 - src/main/basic - - - - DataNucleus Nightly - DataNucleus Repository Nightly - https://www.datanucleus.org/downloads/maven2-nightly - - - - - org.datanucleus - javax.persistence - 2.1.2 - - - org.datanucleus - datanucleus-core - ${version.datanucleus.base-4} - - - org.datanucleus - datanucleus-api-jpa - ${version.datanucleus.api-jpa-4} - - - org.datanucleus - datanucleus-rdbms - ${version.datanucleus.rdbms-4} - - - ${project.groupId} - blaze-persistence-testsuite-base-datanucleus - compile - - - ${project.groupId} - blaze-persistence-integration-datanucleus - - - - - org.datanucleus - datanucleus-jpa-query - ${version.datanucleus.jpa-5} - provided - - - - - - org.datanucleus - datanucleus-maven-plugin - 4.0.0-release - - JPA - TestsuiteBase - false - true - ${basedir}/log4j.properties - ${project.build.outputDirectory} - true - - - - process-classes - - enhance - - - - - - ${project.groupId} - blaze-persistence-testsuite-base-datanucleus - ${project.version} - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - - - org.bsc.maven - maven-processor-plugin - - - process - - process - - generate-sources - - - ${additional.source.directory} - - - ${project.build.directory}/generated-sources/metamodel - - org.datanucleus.jpa.query.JPACriteriaProcessor - - - - - - - - org.datanucleus - datanucleus-jpa-query - ${version.datanucleus.jpa-5} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jta} - - - jakarta.activation - jakarta.activation-api - ${version.activation} - - - - - - - - datanucleus-5 - - com.blazebit.persistence.testsuite.base.jpa.category.NoDatanucleus - src/main/basic - - - - DataNucleus Nightly - DataNucleus Repository Nightly - https://www.datanucleus.org/downloads/maven2-nightly - - - - - org.datanucleus - javax.persistence - 2.1.2 - - - org.datanucleus - datanucleus-core - ${version.datanucleus.base-5} - - - org.datanucleus - datanucleus-api-jpa - ${version.datanucleus.api-jpa-5} - - - org.datanucleus - datanucleus-jpa-query - ${version.datanucleus.jpa-5} - - - org.datanucleus - datanucleus-rdbms - ${version.datanucleus.rdbms-5} - - - ${project.groupId} - blaze-persistence-testsuite-base-datanucleus - compile - - - ${project.groupId} - blaze-persistence-integration-datanucleus - - - - - - org.datanucleus - datanucleus-maven-plugin - 4.0.0-release + maven-compiler-plugin - JPA - TestsuiteBase - false - true - ${basedir}/log4j.properties - ${project.build.outputDirectory} - true + + + + org.eclipse.persistence + org.eclipse.persistence.jpa.modelgen.processor + ${version.eclipselink} + + + jakarta.xml.bind + jakarta.xml.bind-api + ${version.jaxb-api} + + + com.sun.xml.bind + jaxb-impl + ${version.jaxb} + + + jakarta.transaction + jakarta.transaction-api + ${version.jta-api} + + + jakarta.activation + jakarta.activation-api + ${version.activation-api} + + + + -Aeclipselink.persistencexml=${basedir}/src/main/resources/META-INF/persistence.xml + + + org.eclipse.persistence.internal.jpa.modelgen.CanonicalModelProcessor + - - - process-classes - - enhance - - - - - - ${project.groupId} - blaze-persistence-testsuite-base-datanucleus - ${project.version} - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - - - org.bsc.maven - maven-processor-plugin - - - process - - process - - generate-sources - - - ${additional.source.directory} - - - ${project.build.directory}/generated-sources/metamodel - - org.datanucleus.jpa.query.JPACriteriaProcessor - - - - - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jta} - - - jakarta.activation - jakarta.activation-api - ${version.activation} - - - datanucleus-5.1 + hibernate-apt - com.blazebit.persistence.testsuite.base.jpa.category.NoDatanucleus - src/main/basic + com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate + src/main/hibernate - - - DataNucleus Nightly - DataNucleus Repository Nightly - https://www.datanucleus.org/downloads/maven2-nightly - - - org.datanucleus - javax.persistence - 2.2.0-release - - - org.datanucleus - datanucleus-core - ${version.datanucleus.base-5.1} - - - org.datanucleus - datanucleus-api-jpa - ${version.datanucleus.api-jpa-5.1} - - - org.datanucleus - datanucleus-jpa-query - ${version.datanucleus.jpa-5.1} - - - org.datanucleus - datanucleus-rdbms - ${version.datanucleus.rdbms-5.1} - - - ${project.groupId} - blaze-persistence-testsuite-base-datanucleus - compile - - - ${project.groupId} - blaze-persistence-integration-datanucleus-5.1 + org.hibernate.orm + hibernate-core + ${version.hibernate-apt} - - - - - org.datanucleus - datanucleus-maven-plugin - 4.0.0-release - - JPA - TestsuiteBase - false - true - ${basedir}/log4j.properties - ${project.build.outputDirectory} - true - - - - process-classes - - enhance - - - - - - ${project.groupId} - blaze-persistence-testsuite-base-datanucleus - ${project.version} - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - - - org.bsc.maven - maven-processor-plugin - - - process - - process - - generate-sources - - - ${additional.source.directory} - - - ${project.build.directory}/generated-sources/metamodel - - org.datanucleus.jpa.query.JPACriteriaProcessor - - - - - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jta} - - - jakarta.activation - jakarta.activation-api - ${version.activation} - - - - - - - - openjpa - - com.blazebit.persistence.testsuite.base.jpa.category.NoOpenJPA - src/main/basic - - - org.apache.openjpa - openjpa-all - ${version.openjpa} + org.hibernate.orm + hibernate-envers + ${version.hibernate-apt} - ${project.groupId} - blaze-persistence-testsuite-base-openjpa - compile + org.hibernate.orm + hibernate-testing + ${version.hibernate-apt} - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - - - org.bsc.maven - maven-processor-plugin - - - process - - process - - generate-sources - - - ${additional.source.directory} - - - ${project.build.directory}/generated-sources/metamodel - - org.apache.openjpa.persistence.meta.AnnotationProcessor6 - - - true - - - - - - - org.apache.openjpa - openjpa-all - ${version.openjpa} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jta} - - - jakarta.activation - jakarta.activation-api - ${version.activation} - - - - - - - - hibernate-apt - - com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate - src/main/hibernate - - - org.hibernate - hibernate-entitymanager - ${version.hibernate-5.6} + jakarta.xml.bind + jakarta.xml.bind-api + ${version.jaxb-api} - org.hibernate - hibernate-envers - ${version.hibernate-5.6} + com.sun.xml.bind + jaxb-impl + ${version.jaxb} - org.hibernate - hibernate-testing - ${version.hibernate-5.6} + jakarta.transaction + jakarta.transaction-api + ${version.jta-api} - com.vladmihalcea - hibernate-types-55 - ${version.hibernate-types} + jakarta.activation + jakarta.activation-api + ${version.activation-api} ${project.groupId} - blaze-persistence-integration-hibernate-5.6 + blaze-persistence-integration-hibernate-6.2 test ${project.groupId} - blaze-persistence-testsuite-base-hibernate + blaze-persistence-testsuite-base-hibernate6 + ${project.version} compile - org.hibernate + org.hibernate.orm hibernate-jpamodelgen - ${version.hibernate-5.6} + ${version.hibernate-apt} provided - org.codehaus.mojo - build-helper-maven-plugin - - - add-source - generate-sources - - add-source - - - - ${additional.source.directory} - ${project.build.directory}/generated-sources/metamodel - - - - - add-test-source-hibernate - generate-test-sources - - add-test-source - - - - src/test/hibernate - src/test/hibernateold - - - - - - - org.bsc.maven - maven-processor-plugin - - - process - - process - - generate-sources - - - ${additional.source.directory} - - - ${project.build.directory}/generated-sources/metamodel - - org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor - - - - - - - - org.hibernate - hibernate-jpamodelgen - ${version.hibernate-5.6} - - - jakarta.xml.bind - jakarta.xml.bind-api - ${version.jaxb-api} - - - com.sun.xml.bind - jaxb-impl - ${version.jaxb} - - - jakarta.transaction - jakarta.transaction-api - ${version.jta} - - - jakarta.activation - jakarta.activation-api - ${version.activation} - - + maven-compiler-plugin + + + + + org.hibernate.orm + hibernate-jpamodelgen + ${version.hibernate-apt} + + + jakarta.xml.bind + jakarta.xml.bind-api + ${version.jaxb-api} + + + com.sun.xml.bind + jaxb-impl + ${version.jaxb} + + + jakarta.transaction + jakarta.transaction-api + ${version.jta-api} + + + jakarta.activation + jakarta.activation-api + ${version.activation-api} + + + + org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor + + diff --git a/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/entity/Person.java b/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/entity/Person.java index 257bfa5042..1bf6aa5ed7 100644 --- a/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/entity/Person.java +++ b/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/entity/Person.java @@ -5,20 +5,20 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Basic; -import javax.persistence.CollectionTable; -import javax.persistence.Column; -import javax.persistence.ElementCollection; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.Table; -import javax.persistence.Transient; +import jakarta.persistence.Basic; +import jakarta.persistence.CollectionTable; +import jakarta.persistence.Column; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Embedded; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; +import jakarta.persistence.Transient; import java.util.HashMap; import java.util.HashSet; import java.util.Map; diff --git a/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/JoinedEmbeddable.java b/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/JoinedEmbeddable.java index 27fee530e5..6455ed851b 100644 --- a/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/JoinedEmbeddable.java +++ b/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/JoinedEmbeddable.java @@ -12,15 +12,15 @@ import java.util.List; import java.util.Map; import java.util.Set; -import javax.persistence.Embeddable; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; -import javax.persistence.Transient; +import jakarta.persistence.Embeddable; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; +import jakarta.persistence.Transient; @Embeddable public class JoinedEmbeddable implements BaseEmbeddable, Serializable { diff --git a/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/JoinedEmbeddableSub1.java b/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/JoinedEmbeddableSub1.java index 9a1e78a155..dddb9ba4c7 100644 --- a/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/JoinedEmbeddableSub1.java +++ b/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/JoinedEmbeddableSub1.java @@ -12,15 +12,15 @@ import java.util.List; import java.util.Map; import java.util.Set; -import javax.persistence.Embeddable; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; -import javax.persistence.Transient; +import jakarta.persistence.Embeddable; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; +import jakarta.persistence.Transient; @Embeddable public class JoinedEmbeddableSub1 implements Sub1Embeddable, Serializable { diff --git a/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/JoinedEmbeddableSub2.java b/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/JoinedEmbeddableSub2.java index a517f17516..86685966f8 100644 --- a/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/JoinedEmbeddableSub2.java +++ b/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/JoinedEmbeddableSub2.java @@ -12,15 +12,15 @@ import java.util.List; import java.util.Map; import java.util.Set; -import javax.persistence.Embeddable; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; -import javax.persistence.Transient; +import jakarta.persistence.Embeddable; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; +import jakarta.persistence.Transient; @Embeddable public class JoinedEmbeddableSub2 implements Sub2Embeddable, Serializable { diff --git a/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/SingleTableEmbeddable.java b/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/SingleTableEmbeddable.java index 38b2858676..dc2f0d7722 100644 --- a/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/SingleTableEmbeddable.java +++ b/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/SingleTableEmbeddable.java @@ -12,15 +12,15 @@ import java.util.List; import java.util.Map; import java.util.Set; -import javax.persistence.Embeddable; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; -import javax.persistence.Transient; +import jakarta.persistence.Embeddable; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; +import jakarta.persistence.Transient; @Embeddable public class SingleTableEmbeddable implements BaseEmbeddable, Serializable { diff --git a/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/SingleTableEmbeddableSub1.java b/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/SingleTableEmbeddableSub1.java index 65eaf0bca0..22f19e12c9 100644 --- a/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/SingleTableEmbeddableSub1.java +++ b/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/SingleTableEmbeddableSub1.java @@ -12,15 +12,15 @@ import java.util.List; import java.util.Map; import java.util.Set; -import javax.persistence.Embeddable; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; -import javax.persistence.Transient; +import jakarta.persistence.Embeddable; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; +import jakarta.persistence.Transient; @Embeddable public class SingleTableEmbeddableSub1 implements Sub1Embeddable, Serializable { diff --git a/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/SingleTableEmbeddableSub2.java b/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/SingleTableEmbeddableSub2.java index 140b74fe30..4e1cf8a0fb 100644 --- a/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/SingleTableEmbeddableSub2.java +++ b/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/SingleTableEmbeddableSub2.java @@ -12,15 +12,15 @@ import java.util.List; import java.util.Map; import java.util.Set; -import javax.persistence.Embeddable; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; -import javax.persistence.Transient; +import jakarta.persistence.Embeddable; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; +import jakarta.persistence.Transient; @Embeddable public class SingleTableEmbeddableSub2 implements Sub2Embeddable, Serializable { diff --git a/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/TablePerClassBase.java b/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/TablePerClassBase.java index 2a72f884a6..c588cfe738 100644 --- a/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/TablePerClassBase.java +++ b/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/TablePerClassBase.java @@ -5,19 +5,19 @@ package com.blazebit.persistence.testsuite.treat.entity; -import javax.persistence.Column; -import javax.persistence.ConstraintMode; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.ForeignKey; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.InheritanceType; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.ConstraintMode; +import jakarta.persistence.Embedded; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.ForeignKey; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.InheritanceType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; import java.io.Serializable; import java.util.HashSet; import java.util.Set; diff --git a/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/TablePerClassEmbeddable.java b/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/TablePerClassEmbeddable.java index b8e42e0114..45000a7b91 100644 --- a/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/TablePerClassEmbeddable.java +++ b/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/TablePerClassEmbeddable.java @@ -12,17 +12,17 @@ import java.util.List; import java.util.Map; import java.util.Set; -import javax.persistence.ConstraintMode; -import javax.persistence.Embeddable; -import javax.persistence.FetchType; -import javax.persistence.ForeignKey; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; -import javax.persistence.Transient; +import jakarta.persistence.ConstraintMode; +import jakarta.persistence.Embeddable; +import jakarta.persistence.FetchType; +import jakarta.persistence.ForeignKey; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; +import jakarta.persistence.Transient; @Embeddable public class TablePerClassEmbeddable implements BaseEmbeddable, Serializable { diff --git a/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/TablePerClassEmbeddableSub1.java b/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/TablePerClassEmbeddableSub1.java index ce840b7392..241225de9c 100644 --- a/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/TablePerClassEmbeddableSub1.java +++ b/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/TablePerClassEmbeddableSub1.java @@ -12,17 +12,17 @@ import java.util.List; import java.util.Map; import java.util.Set; -import javax.persistence.ConstraintMode; -import javax.persistence.Embeddable; -import javax.persistence.FetchType; -import javax.persistence.ForeignKey; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; -import javax.persistence.Transient; +import jakarta.persistence.ConstraintMode; +import jakarta.persistence.Embeddable; +import jakarta.persistence.FetchType; +import jakarta.persistence.ForeignKey; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; +import jakarta.persistence.Transient; @Embeddable public class TablePerClassEmbeddableSub1 implements Sub1Embeddable, Serializable { diff --git a/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/TablePerClassEmbeddableSub2.java b/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/TablePerClassEmbeddableSub2.java index 6b922aae47..185da54819 100644 --- a/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/TablePerClassEmbeddableSub2.java +++ b/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/TablePerClassEmbeddableSub2.java @@ -12,17 +12,17 @@ import java.util.List; import java.util.Map; import java.util.Set; -import javax.persistence.ConstraintMode; -import javax.persistence.Embeddable; -import javax.persistence.FetchType; -import javax.persistence.ForeignKey; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; -import javax.persistence.Transient; +import jakarta.persistence.ConstraintMode; +import jakarta.persistence.Embeddable; +import jakarta.persistence.FetchType; +import jakarta.persistence.ForeignKey; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; +import jakarta.persistence.Transient; @Embeddable public class TablePerClassEmbeddableSub2 implements Sub2Embeddable, Serializable { diff --git a/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/TablePerClassSub1.java b/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/TablePerClassSub1.java index df64d92852..af2893270a 100644 --- a/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/TablePerClassSub1.java +++ b/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/TablePerClassSub1.java @@ -6,21 +6,21 @@ package com.blazebit.persistence.testsuite.treat.entity; import com.blazebit.persistence.testsuite.entity.IntIdEntity; -import javax.persistence.AssociationOverride; -import javax.persistence.AssociationOverrides; -import javax.persistence.ConstraintMode; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.ForeignKey; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; -import javax.persistence.Table; +import jakarta.persistence.AssociationOverride; +import jakarta.persistence.AssociationOverrides; +import jakarta.persistence.ConstraintMode; +import jakarta.persistence.Embedded; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.ForeignKey; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; +import jakarta.persistence.Table; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; diff --git a/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/TablePerClassSub2.java b/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/TablePerClassSub2.java index 02ff055417..953af97e2d 100644 --- a/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/TablePerClassSub2.java +++ b/core/testsuite/src/main/basic/com/blazebit/persistence/testsuite/treat/entity/TablePerClassSub2.java @@ -6,21 +6,21 @@ package com.blazebit.persistence.testsuite.treat.entity; import com.blazebit.persistence.testsuite.entity.IntIdEntity; -import javax.persistence.AssociationOverride; -import javax.persistence.AssociationOverrides; -import javax.persistence.ConstraintMode; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.ForeignKey; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; -import javax.persistence.Table; +import jakarta.persistence.AssociationOverride; +import jakarta.persistence.AssociationOverrides; +import jakarta.persistence.ConstraintMode; +import jakarta.persistence.Embedded; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.ForeignKey; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; +import jakarta.persistence.Table; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; diff --git a/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/entity/Person.java b/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/entity/Person.java index 860a2c2666..a2b1f2171a 100644 --- a/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/entity/Person.java +++ b/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/entity/Person.java @@ -5,19 +5,19 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Basic; -import javax.persistence.CollectionTable; -import javax.persistence.Column; -import javax.persistence.ElementCollection; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.Table; +import jakarta.persistence.Basic; +import jakarta.persistence.CollectionTable; +import jakarta.persistence.Column; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Embedded; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; import java.util.HashMap; import java.util.HashSet; import java.util.Map; diff --git a/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/JoinedEmbeddable.java b/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/JoinedEmbeddable.java index 9f49e35aa2..28d251a31d 100644 --- a/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/JoinedEmbeddable.java +++ b/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/JoinedEmbeddable.java @@ -12,15 +12,15 @@ import java.util.List; import java.util.Map; import java.util.Set; -import javax.persistence.Embeddable; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; +import jakarta.persistence.Embeddable; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; @Embeddable public class JoinedEmbeddable implements BaseEmbeddable, Serializable { diff --git a/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/JoinedEmbeddableSub1.java b/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/JoinedEmbeddableSub1.java index 4657f7b9c7..c7dbe8b577 100644 --- a/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/JoinedEmbeddableSub1.java +++ b/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/JoinedEmbeddableSub1.java @@ -12,15 +12,15 @@ import java.util.List; import java.util.Map; import java.util.Set; -import javax.persistence.Embeddable; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; +import jakarta.persistence.Embeddable; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; @Embeddable public class JoinedEmbeddableSub1 implements Sub1Embeddable, Serializable { diff --git a/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/JoinedEmbeddableSub2.java b/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/JoinedEmbeddableSub2.java index 74c7710c11..67fe121709 100644 --- a/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/JoinedEmbeddableSub2.java +++ b/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/JoinedEmbeddableSub2.java @@ -12,15 +12,15 @@ import java.util.List; import java.util.Map; import java.util.Set; -import javax.persistence.Embeddable; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; +import jakarta.persistence.Embeddable; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; @Embeddable public class JoinedEmbeddableSub2 implements Sub2Embeddable, Serializable { diff --git a/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/SingleTableEmbeddable.java b/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/SingleTableEmbeddable.java index 1c69d3b00e..e77bc1e5a7 100644 --- a/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/SingleTableEmbeddable.java +++ b/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/SingleTableEmbeddable.java @@ -12,15 +12,15 @@ import java.util.List; import java.util.Map; import java.util.Set; -import javax.persistence.Embeddable; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; +import jakarta.persistence.Embeddable; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; @Embeddable public class SingleTableEmbeddable implements BaseEmbeddable, Serializable { diff --git a/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/SingleTableEmbeddableSub1.java b/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/SingleTableEmbeddableSub1.java index 9f35f2c6b0..80f2cf83e2 100644 --- a/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/SingleTableEmbeddableSub1.java +++ b/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/SingleTableEmbeddableSub1.java @@ -12,15 +12,15 @@ import java.util.List; import java.util.Map; import java.util.Set; -import javax.persistence.Embeddable; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; +import jakarta.persistence.Embeddable; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; @Embeddable public class SingleTableEmbeddableSub1 implements Sub1Embeddable, Serializable { diff --git a/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/SingleTableEmbeddableSub2.java b/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/SingleTableEmbeddableSub2.java index 88509f4365..259d90ff97 100644 --- a/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/SingleTableEmbeddableSub2.java +++ b/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/SingleTableEmbeddableSub2.java @@ -12,15 +12,15 @@ import java.util.List; import java.util.Map; import java.util.Set; -import javax.persistence.Embeddable; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; +import jakarta.persistence.Embeddable; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; @Embeddable public class SingleTableEmbeddableSub2 implements Sub2Embeddable, Serializable { diff --git a/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/TablePerClassBase.java b/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/TablePerClassBase.java index 1d8d259df4..5e0940a8b8 100644 --- a/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/TablePerClassBase.java +++ b/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/TablePerClassBase.java @@ -5,22 +5,23 @@ package com.blazebit.persistence.testsuite.treat.entity; -import org.hibernate.annotations.ForeignKey; - -import javax.persistence.Column; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.InheritanceType; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.ConstraintMode; +import jakarta.persistence.Embedded; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.ForeignKey; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.InheritanceType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; +import jakarta.persistence.Table; import java.io.Serializable; import java.util.ArrayList; import java.util.HashMap; @@ -87,7 +88,7 @@ public void setValue(Integer value) { @Override @ManyToOne(fetch = FetchType.LAZY, optional = true) // We can't have a constraint in this case because we don't know the exact table this will refer to - @ForeignKey(name = "none") + @JoinColumn(foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT)) public TablePerClassBase getParent() { return parent; } @@ -112,8 +113,7 @@ public void setEmbeddable(TablePerClassEmbeddable embeddable) { @ManyToMany @OrderColumn(name = "list_idx", nullable = false) // We can't have a constraint in this case because we don't know the exact table this will refer to - @JoinTable(name = "tpcb_list") - @ForeignKey(name = "none", inverseName = "none") + @JoinTable(name = "tpcb_list", foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT), inverseForeignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT)) public List getList() { return list; } @@ -126,8 +126,7 @@ public void setList(List list) { @Override @ManyToMany // We can't have a constraint in this case because we don't know the exact table this will refer to - @JoinTable(name = "tpcb_map") - @ForeignKey(name = "none", inverseName = "none") + @JoinTable(name = "tpcb_map", foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT), inverseForeignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT)) @MapKeyColumn(name = "tpcb_map_key", nullable = false, length = 20) public Map getMap() { return map; diff --git a/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/TablePerClassEmbeddable.java b/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/TablePerClassEmbeddable.java index 0e2bf6a41e..6a21294e27 100644 --- a/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/TablePerClassEmbeddable.java +++ b/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/TablePerClassEmbeddable.java @@ -5,8 +5,6 @@ package com.blazebit.persistence.testsuite.treat.entity; -import org.hibernate.annotations.ForeignKey; - import java.io.Serializable; import java.util.ArrayList; import java.util.HashMap; @@ -14,15 +12,18 @@ import java.util.List; import java.util.Map; import java.util.Set; -import javax.persistence.Embeddable; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; + +import jakarta.persistence.ConstraintMode; +import jakarta.persistence.Embeddable; +import jakarta.persistence.FetchType; +import jakarta.persistence.ForeignKey; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; @Embeddable public class TablePerClassEmbeddable implements BaseEmbeddable, Serializable { @@ -43,8 +44,7 @@ public TablePerClassEmbeddable(TablePerClassBase parent) { @Override @ManyToOne(fetch = FetchType.LAZY) // We can't have a constraint in this case because we don't know the exact table this will refer to - @JoinColumn(name = "embeddableParent") - @ForeignKey(name = "none") + @JoinColumn(name = "embeddableParent", foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT)) public TablePerClassBase getParent() { return parent; } @@ -70,8 +70,7 @@ public void setChildren(Set children) { @ManyToMany @OrderColumn(name = "list_idx", nullable = false) // We can't have a constraint in this case because we don't know the exact table this will refer to - @JoinTable(name = "tpce_list") - @ForeignKey(name = "none", inverseName = "none") + @JoinTable(name = "tpce_list", foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT), inverseForeignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT)) public List getList() { return list; } @@ -84,8 +83,7 @@ public void setList(List list) { @Override @ManyToMany // We can't have a constraint in this case because we don't know the exact table this will refer to - @JoinTable(name = "tpce_map") - @ForeignKey(name = "none", inverseName = "none") + @JoinTable(name = "tpce_map", foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT), inverseForeignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT)) @MapKeyColumn(name = "tpce_map_key", nullable = false, length = 20) public Map getMap() { return map; diff --git a/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/TablePerClassEmbeddableSub1.java b/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/TablePerClassEmbeddableSub1.java index 269245dc66..b21c7f43c0 100644 --- a/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/TablePerClassEmbeddableSub1.java +++ b/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/TablePerClassEmbeddableSub1.java @@ -5,8 +5,6 @@ package com.blazebit.persistence.testsuite.treat.entity; -import org.hibernate.annotations.ForeignKey; - import java.io.Serializable; import java.util.ArrayList; import java.util.HashMap; @@ -14,15 +12,18 @@ import java.util.List; import java.util.Map; import java.util.Set; -import javax.persistence.Embeddable; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; + +import jakarta.persistence.ConstraintMode; +import jakarta.persistence.Embeddable; +import jakarta.persistence.FetchType; +import jakarta.persistence.ForeignKey; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; @Embeddable public class TablePerClassEmbeddableSub1 implements Sub1Embeddable, Serializable { @@ -54,8 +55,7 @@ public void setSub1SomeValue(Integer sub1SomeValue) { @Override @ManyToOne(fetch = FetchType.LAZY) // We can't have a constraint in this case because we don't know the exact table this will refer to - @JoinColumn(name = "embeddableSub1Parent") - @ForeignKey(name = "none") + @JoinColumn(name = "embeddableSub1Parent", foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT)) public TablePerClassBase getSub1Parent() { return sub1Parent; } @@ -81,8 +81,7 @@ public void setSub1Children(Set sub1Children) { @ManyToMany @OrderColumn(name = "list_idx", nullable = false) // We can't have a constraint in this case because we don't know the exact table this will refer to - @JoinTable(name = "tpces1_list") - @ForeignKey(name = "none", inverseName = "none") + @JoinTable(name = "tpces1_list", foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT), inverseForeignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT)) public List getSub1List() { return sub1List; } @@ -95,8 +94,7 @@ public void setSub1List(List sub1List) { @Override @ManyToMany // We can't have a constraint in this case because we don't know the exact table this will refer to - @JoinTable(name = "tpces1_map") - @ForeignKey(name = "none", inverseName = "none") + @JoinTable(name = "tpces1_map", foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT), inverseForeignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT)) @MapKeyColumn(name = "tpces1_map_key", nullable = false, length = 20) public Map getSub1Map() { return sub1Map; diff --git a/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/TablePerClassEmbeddableSub2.java b/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/TablePerClassEmbeddableSub2.java index 34efae9f71..2fddefcf35 100644 --- a/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/TablePerClassEmbeddableSub2.java +++ b/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/TablePerClassEmbeddableSub2.java @@ -5,8 +5,6 @@ package com.blazebit.persistence.testsuite.treat.entity; -import org.hibernate.annotations.ForeignKey; - import java.io.Serializable; import java.util.ArrayList; import java.util.HashMap; @@ -14,15 +12,18 @@ import java.util.List; import java.util.Map; import java.util.Set; -import javax.persistence.Embeddable; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; + +import jakarta.persistence.ConstraintMode; +import jakarta.persistence.Embeddable; +import jakarta.persistence.FetchType; +import jakarta.persistence.ForeignKey; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; @Embeddable public class TablePerClassEmbeddableSub2 implements Sub2Embeddable, Serializable { @@ -54,8 +55,7 @@ public void setSub2SomeValue(Integer sub2SomeValue) { @Override @ManyToOne(fetch = FetchType.LAZY) // We can't have a constraint in this case because we don't know the exact table this will refer to - @JoinColumn(name = "embeddableSub2Parent") - @ForeignKey(name = "none") + @JoinColumn(name = "embeddableSub2Parent", foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT)) public TablePerClassBase getSub2Parent() { return sub2Parent; } @@ -81,8 +81,7 @@ public void setSub2Children(Set sub2Children) { @ManyToMany @OrderColumn(name = "list_idx", nullable = false) // We can't have a constraint in this case because we don't know the exact table this will refer to - @JoinTable(name = "tpces2_list") - @ForeignKey(name = "none", inverseName = "none") + @JoinTable(name = "tpces2_list", foreignKey = @jakarta.persistence.ForeignKey(ConstraintMode.NO_CONSTRAINT), inverseForeignKey = @jakarta.persistence.ForeignKey(ConstraintMode.NO_CONSTRAINT)) public List getSub2List() { return sub2List; } @@ -95,8 +94,7 @@ public void setSub2List(List sub2List) { @Override @ManyToMany // We can't have a constraint in this case because we don't know the exact table this will refer to - @JoinTable(name = "tpces2_map") - @ForeignKey(name = "none", inverseName = "none") + @JoinTable(name = "tpces2_map", foreignKey = @jakarta.persistence.ForeignKey(ConstraintMode.NO_CONSTRAINT), inverseForeignKey = @jakarta.persistence.ForeignKey(ConstraintMode.NO_CONSTRAINT)) @MapKeyColumn(name = "tpces2_map_key", nullable = false, length = 20) public Map getSub2Map() { return sub2Map; diff --git a/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/TablePerClassSub1.java b/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/TablePerClassSub1.java index d7fa3b7ab2..14661e65e5 100644 --- a/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/TablePerClassSub1.java +++ b/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/TablePerClassSub1.java @@ -6,18 +6,20 @@ package com.blazebit.persistence.testsuite.treat.entity; import com.blazebit.persistence.testsuite.entity.IntIdEntity; -import org.hibernate.annotations.ForeignKey; - -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; -import javax.persistence.Table; + +import jakarta.persistence.ConstraintMode; +import jakarta.persistence.Embedded; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.ForeignKey; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; +import jakarta.persistence.Table; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; @@ -60,7 +62,7 @@ public void setRelation1(IntIdEntity relation1) { @Override @ManyToOne(fetch = FetchType.LAZY) // We can't have a constraint in this case because we don't know the exact table this will refer to - @ForeignKey(name = "none") + @JoinColumn(foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT)) public TablePerClassBase getParent1() { return parent1; } @@ -106,8 +108,7 @@ public void setEmbeddable1(TablePerClassEmbeddableSub1 embeddable1) { @ManyToMany @OrderColumn(name = "list_idx", nullable = false) // We can't have a constraint in this case because we don't know the exact table this will refer to - @JoinTable(name = "tpcs1_list1") - @ForeignKey(name = "none", inverseName = "none") + @JoinTable(name = "tpcs1_list1", foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT), inverseForeignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT)) public List getList1() { return list1; } @@ -131,8 +132,7 @@ public void setChildren1(Set children1) { @Override @ManyToMany // We can't have a constraint in this case because we don't know the exact table this will refer to - @JoinTable(name = "tpcs1_map1") - @ForeignKey(name = "none", inverseName = "none") + @JoinTable(name = "tpcs1_map1", foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT), inverseForeignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT)) @MapKeyColumn(name = "tpcs1_map1_key", nullable = false, length = 20) public Map getMap1() { return map1; diff --git a/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/TablePerClassSub2.java b/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/TablePerClassSub2.java index 6b7a53daba..eb37dfc926 100644 --- a/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/TablePerClassSub2.java +++ b/core/testsuite/src/main/hibernate/com/blazebit/persistence/testsuite/treat/entity/TablePerClassSub2.java @@ -6,18 +6,20 @@ package com.blazebit.persistence.testsuite.treat.entity; import com.blazebit.persistence.testsuite.entity.IntIdEntity; -import org.hibernate.annotations.ForeignKey; - -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; -import javax.persistence.Table; + +import jakarta.persistence.ConstraintMode; +import jakarta.persistence.Embedded; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.ForeignKey; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; +import jakarta.persistence.Table; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; @@ -60,7 +62,7 @@ public void setRelation2(IntIdEntity relation2) { @Override @ManyToOne(fetch = FetchType.LAZY) // We can't have a constraint in this case because we don't know the exact table this will refer to - @ForeignKey(name = "none") + @JoinColumn(foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT)) public TablePerClassBase getParent2() { return parent2; } @@ -106,8 +108,7 @@ public void setEmbeddable2(TablePerClassEmbeddableSub2 embeddable2) { @ManyToMany @OrderColumn(name = "list_idx", nullable = false) // We can't have a constraint in this case because we don't know the exact table this will refer to - @JoinTable(name = "tpcs2_list2") - @ForeignKey(name = "none", inverseName = "none") + @JoinTable(name = "tpcs2_list2", foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT), inverseForeignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT)) public List getList2() { return list2; } @@ -131,8 +132,7 @@ public void setChildren2(Set children2) { @Override @ManyToMany // We can't have a constraint in this case because we don't know the exact table this will refer to - @JoinTable(name = "tpcs2_map2") - @ForeignKey(name = "none", inverseName = "none") + @JoinTable(name = "tpcs2_map2", foreignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT), inverseForeignKey = @ForeignKey(ConstraintMode.NO_CONSTRAINT)) @MapKeyColumn(name = "tpcs2_map2_key", nullable = false, length = 20) public Map getMap2() { return map2; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/AbstractCoreTest.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/AbstractCoreTest.java index 9a4ff43525..aa7bea953c 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/AbstractCoreTest.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/AbstractCoreTest.java @@ -31,9 +31,9 @@ import com.blazebit.persistence.testsuite.tx.TxVoidWork; import com.blazebit.persistence.testsuite.tx.TxWork; -import javax.persistence.EntityManager; -import javax.persistence.metamodel.EntityType; -import javax.persistence.metamodel.Metamodel; +import jakarta.persistence.EntityManager; +import jakarta.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.Metamodel; import java.time.LocalDateTime; import java.util.ArrayList; import java.util.Arrays; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/BlobEntity.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/BlobEntity.java index 963253f758..f9f2597354 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/BlobEntity.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/BlobEntity.java @@ -5,13 +5,13 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Basic; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Lob; -import javax.persistence.Table; -import javax.persistence.Temporal; -import javax.persistence.TemporalType; +import jakarta.persistence.Basic; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Lob; +import jakarta.persistence.Table; +import jakarta.persistence.Temporal; +import jakarta.persistence.TemporalType; import java.io.Serializable; import java.sql.Blob; import java.util.Date; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/BookEntity.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/BookEntity.java index 492febba22..954b507384 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/BookEntity.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/BookEntity.java @@ -5,11 +5,11 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Access; -import javax.persistence.AccessType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Table; +import jakarta.persistence.Access; +import jakarta.persistence.AccessType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Table; import java.io.Serializable; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/BookISBNReferenceEntity.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/BookISBNReferenceEntity.java index fbcd0e05d4..ec3e450d1c 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/BookISBNReferenceEntity.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/BookISBNReferenceEntity.java @@ -5,12 +5,12 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.OneToOne; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToOne; +import jakarta.persistence.Table; import java.io.Serializable; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DeletePersonCTE.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DeletePersonCTE.java index a0a7c56885..1e0d9f88c2 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DeletePersonCTE.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DeletePersonCTE.java @@ -7,10 +7,10 @@ import java.io.Serializable; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.ManyToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; import com.blazebit.persistence.CTE; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Document.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Document.java index 9dc75bb1ed..997298f606 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Document.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Document.java @@ -5,24 +5,24 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Basic; -import javax.persistence.CascadeType; -import javax.persistence.CollectionTable; -import javax.persistence.Column; -import javax.persistence.ElementCollection; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; -import javax.persistence.Table; -import javax.persistence.Temporal; -import javax.persistence.TemporalType; -import javax.persistence.Transient; +import jakarta.persistence.Basic; +import jakarta.persistence.CascadeType; +import jakarta.persistence.CollectionTable; +import jakarta.persistence.Column; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Embedded; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; +import jakarta.persistence.Table; +import jakarta.persistence.Temporal; +import jakarta.persistence.TemporalType; +import jakarta.persistence.Transient; import java.io.Serializable; import java.util.ArrayList; import java.util.Arrays; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentCTE.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentCTE.java index c482ad760f..b373b4e025 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentCTE.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentCTE.java @@ -7,11 +7,11 @@ import com.blazebit.persistence.CTE; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.OneToOne; -import javax.persistence.PrimaryKeyJoinColumn; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToOne; +import jakarta.persistence.PrimaryKeyJoinColumn; import java.io.Serializable; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentForEntityKeyMaps.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentForEntityKeyMaps.java index 1b2625e711..cc6414d7be 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentForEntityKeyMaps.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentForEntityKeyMaps.java @@ -5,14 +5,14 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.MapKeyJoinColumn; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.MapKeyJoinColumn; +import jakarta.persistence.Table; import java.util.HashMap; import java.util.Map; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentForOneToOne.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentForOneToOne.java index 77ecc99b58..ec4bf33b4d 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentForOneToOne.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentForOneToOne.java @@ -5,11 +5,11 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Basic; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.OneToOne; +import jakarta.persistence.Basic; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.OneToOne; import java.io.Serializable; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentForOneToOneJoinTable.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentForOneToOneJoinTable.java index 5ea291fa64..c74b67eb8a 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentForOneToOneJoinTable.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentForOneToOneJoinTable.java @@ -5,11 +5,11 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Basic; -import javax.persistence.Entity; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.OneToOne; +import jakarta.persistence.Basic; +import jakarta.persistence.Entity; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.OneToOne; import java.io.Serializable; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentForSimpleOneToOne.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentForSimpleOneToOne.java index 5a6554665c..12f20e952c 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentForSimpleOneToOne.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentForSimpleOneToOne.java @@ -5,9 +5,9 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Basic; -import javax.persistence.Entity; -import javax.persistence.OneToOne; +import jakarta.persistence.Basic; +import jakarta.persistence.Entity; +import jakarta.persistence.OneToOne; import java.io.Serializable; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentHolder.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentHolder.java index 0b41e3a13f..ef21c202c5 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentHolder.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentHolder.java @@ -5,11 +5,11 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.OneToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.OneToOne; import java.io.Serializable; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentInfo.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentInfo.java index ee96e70f4a..5fbcc242c2 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentInfo.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentInfo.java @@ -5,12 +5,12 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.OneToOne; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.OneToOne; import java.io.Serializable; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentInfoSimple.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentInfoSimple.java index 3aee1507b3..62460b4402 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentInfoSimple.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentInfoSimple.java @@ -5,11 +5,11 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.OneToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.OneToOne; import java.io.Serializable; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentNodeCTE.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentNodeCTE.java index 677a4efe32..d54a482e2c 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentNodeCTE.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentNodeCTE.java @@ -7,8 +7,8 @@ import java.io.Serializable; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; import com.blazebit.persistence.CTE; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentTupleEntity.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentTupleEntity.java index 56fa19f423..897494ba96 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentTupleEntity.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentTupleEntity.java @@ -5,10 +5,10 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.ManyToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; import java.io.Serializable; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentWithNullableName.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentWithNullableName.java index 817d2174b7..0831ed2bd7 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentWithNullableName.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/DocumentWithNullableName.java @@ -5,13 +5,13 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; import java.io.Serializable; import java.util.ArrayList; import java.util.List; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntity.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntity.java index 930215d7fc..2d4c80e5ff 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntity.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntity.java @@ -5,15 +5,15 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.CollectionTable; -import javax.persistence.DiscriminatorValue; -import javax.persistence.ElementCollection; -import javax.persistence.Embedded; -import javax.persistence.EmbeddedId; -import javax.persistence.Entity; -import javax.persistence.JoinColumn; -import javax.persistence.OrderColumn; -import javax.persistence.Table; +import jakarta.persistence.CollectionTable; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Embedded; +import jakarta.persistence.EmbeddedId; +import jakarta.persistence.Entity; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.OrderColumn; +import jakarta.persistence.Table; import java.io.Serializable; import java.util.ArrayList; import java.util.List; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntityContainer.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntityContainer.java index abcfa28bcb..e337edc7b3 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntityContainer.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntityContainer.java @@ -9,14 +9,14 @@ import java.util.HashSet; import java.util.Set; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.OneToMany; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; @Entity @Table(name = "emb_tst_ent_cont") diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntityEmbeddable.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntityEmbeddable.java index 26b6404489..79a5411b8b 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntityEmbeddable.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntityEmbeddable.java @@ -5,19 +5,19 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.CollectionTable; -import javax.persistence.ElementCollection; -import javax.persistence.Embeddable; -import javax.persistence.Embedded; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.JoinColumns; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; +import jakarta.persistence.CollectionTable; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Embeddable; +import jakarta.persistence.Embedded; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinColumns; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; import java.io.Serializable; import java.util.ArrayList; import java.util.HashMap; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntityId.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntityId.java index 410bf398fd..41367666fc 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntityId.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntityId.java @@ -7,8 +7,8 @@ import java.io.Serializable; -import javax.persistence.Column; -import javax.persistence.Embeddable; +import jakarta.persistence.Column; +import jakarta.persistence.Embeddable; @Embeddable public class EmbeddableTestEntityId implements Serializable { diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntityIdEmbeddable.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntityIdEmbeddable.java index f5cbd74f4a..3701aa9624 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntityIdEmbeddable.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntityIdEmbeddable.java @@ -7,8 +7,8 @@ import java.io.Serializable; -import javax.persistence.Column; -import javax.persistence.Embeddable; +import jakarta.persistence.Column; +import jakarta.persistence.Embeddable; @Embeddable public class EmbeddableTestEntityIdEmbeddable implements Serializable { diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntityNestedEmbeddable.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntityNestedEmbeddable.java index f8a2042515..a04ab787b4 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntityNestedEmbeddable.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntityNestedEmbeddable.java @@ -5,10 +5,10 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Embeddable; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.OneToMany; +import jakarta.persistence.Embeddable; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.OneToMany; import java.io.Serializable; import java.util.HashSet; import java.util.Set; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntitySub.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntitySub.java index 6773ef4839..a77290c3a2 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntitySub.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddableTestEntitySub.java @@ -5,8 +5,8 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; @Entity @DiscriminatorValue("sub") diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddedDocumentTupleEntity.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddedDocumentTupleEntity.java index 03b39b2205..4b29484a39 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddedDocumentTupleEntity.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddedDocumentTupleEntity.java @@ -5,8 +5,8 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.EmbeddedId; -import javax.persistence.Entity; +import jakarta.persistence.EmbeddedId; +import jakarta.persistence.Entity; import java.io.Serializable; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddedDocumentTupleEntityId.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddedDocumentTupleEntityId.java index a4f96cd414..5b6baf3c9e 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddedDocumentTupleEntityId.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/EmbeddedDocumentTupleEntityId.java @@ -5,8 +5,8 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Column; -import javax.persistence.Embeddable; +import jakarta.persistence.Column; +import jakarta.persistence.Embeddable; import java.io.Serializable; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/IdClassEntity.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/IdClassEntity.java index c202317767..51b7544cdb 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/IdClassEntity.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/IdClassEntity.java @@ -5,15 +5,15 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Basic; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.Table; +import jakarta.persistence.Basic; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.Table; import java.io.Serializable; import java.util.HashSet; import java.util.Set; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/IdHolderCTE.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/IdHolderCTE.java index 7e1ed11067..e68397be42 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/IdHolderCTE.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/IdHolderCTE.java @@ -7,8 +7,8 @@ import java.io.Serializable; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; import com.blazebit.persistence.CTE; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/IndexedEmbeddable.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/IndexedEmbeddable.java index d5ecf46a9e..e93cdd0387 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/IndexedEmbeddable.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/IndexedEmbeddable.java @@ -5,8 +5,8 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Column; -import javax.persistence.Embeddable; +import jakarta.persistence.Column; +import jakarta.persistence.Embeddable; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/IndexedNode.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/IndexedNode.java index 7f09880a9a..85c76068a5 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/IndexedNode.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/IndexedNode.java @@ -5,11 +5,11 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.ManyToOne; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/IndexedNode2.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/IndexedNode2.java index 22803e84c9..d220e4563e 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/IndexedNode2.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/IndexedNode2.java @@ -5,11 +5,11 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.ManyToOne; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/IntIdEntity.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/IntIdEntity.java index e4d7f9eea3..11c197f52a 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/IntIdEntity.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/IntIdEntity.java @@ -7,12 +7,12 @@ import java.io.Serializable; -import javax.persistence.Basic; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Basic; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Table; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/JsonDocument.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/JsonDocument.java index 1102e6c673..8ba0b558b7 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/JsonDocument.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/JsonDocument.java @@ -4,10 +4,10 @@ */ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; /** * @author Moritz Becker diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/JuniorProjectLeader.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/JuniorProjectLeader.java index be7c94cd83..7cc4c126b1 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/JuniorProjectLeader.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/JuniorProjectLeader.java @@ -5,8 +5,8 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/KeyedEmbeddable.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/KeyedEmbeddable.java index 61cea80dd7..a6bcd643a4 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/KeyedEmbeddable.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/KeyedEmbeddable.java @@ -5,8 +5,8 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Column; -import javax.persistence.Embeddable; +import jakarta.persistence.Column; +import jakarta.persistence.Embeddable; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/KeyedNode.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/KeyedNode.java index 240c5a5de0..0753d4bec5 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/KeyedNode.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/KeyedNode.java @@ -5,11 +5,11 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.ManyToOne; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/KeyedNode2.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/KeyedNode2.java index 24bbb4d8b2..da7314821f 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/KeyedNode2.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/KeyedNode2.java @@ -5,11 +5,11 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.ManyToOne; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/KeysetEntity.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/KeysetEntity.java index f6b5a74ada..e4782c293a 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/KeysetEntity.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/KeysetEntity.java @@ -6,8 +6,8 @@ package com.blazebit.persistence.testsuite.entity; import java.io.Serializable; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/KeysetEntity2.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/KeysetEntity2.java index 6424b6cf7c..2a5f9c8d82 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/KeysetEntity2.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/KeysetEntity2.java @@ -5,9 +5,9 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Basic; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Basic; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; import java.io.Serializable; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/LargeProject.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/LargeProject.java index a58773acde..5d07dc83a9 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/LargeProject.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/LargeProject.java @@ -5,8 +5,8 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/LocalizedEntity.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/LocalizedEntity.java index 6681aef0d9..c10be4eb4e 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/LocalizedEntity.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/LocalizedEntity.java @@ -6,8 +6,8 @@ package com.blazebit.persistence.testsuite.entity; import java.io.Serializable; -import javax.persistence.Column; -import javax.persistence.Embeddable; +import jakarta.persistence.Column; +import jakarta.persistence.Embeddable; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/LongSequenceEntity.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/LongSequenceEntity.java index d4524755e7..837f3d5944 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/LongSequenceEntity.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/LongSequenceEntity.java @@ -5,9 +5,9 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.MappedSuperclass; import java.io.Serializable; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/NameObject.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/NameObject.java index 75e8c1828d..4a3ca01c5e 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/NameObject.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/NameObject.java @@ -5,11 +5,11 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Column; -import javax.persistence.Embeddable; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; +import jakarta.persistence.Column; +import jakarta.persistence.Embeddable; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; import java.io.Serializable; @Embeddable diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/NameObjectContainer.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/NameObjectContainer.java index bc2e8c5bbd..b7c6bbef45 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/NameObjectContainer.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/NameObjectContainer.java @@ -5,13 +5,13 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.AssociationOverride; -import javax.persistence.AttributeOverride; -import javax.persistence.AttributeOverrides; -import javax.persistence.Column; -import javax.persistence.Embeddable; -import javax.persistence.Embedded; -import javax.persistence.JoinColumn; +import jakarta.persistence.AssociationOverride; +import jakarta.persistence.AttributeOverride; +import jakarta.persistence.AttributeOverrides; +import jakarta.persistence.Column; +import jakarta.persistence.Embeddable; +import jakarta.persistence.Embedded; +import jakarta.persistence.JoinColumn; import java.io.Serializable; @Embeddable diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/NameObjectContainer2.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/NameObjectContainer2.java index 12829758c8..7982736e76 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/NameObjectContainer2.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/NameObjectContainer2.java @@ -5,13 +5,13 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.AssociationOverride; -import javax.persistence.AttributeOverride; -import javax.persistence.AttributeOverrides; -import javax.persistence.Column; -import javax.persistence.Embeddable; -import javax.persistence.Embedded; -import javax.persistence.JoinColumn; +import jakarta.persistence.AssociationOverride; +import jakarta.persistence.AttributeOverride; +import jakarta.persistence.AttributeOverrides; +import jakarta.persistence.Column; +import jakarta.persistence.Embeddable; +import jakarta.persistence.Embedded; +import jakarta.persistence.JoinColumn; import java.io.Serializable; @Embeddable diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/NaturalIdJoinTableEntity.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/NaturalIdJoinTableEntity.java index f40424ca14..71995db520 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/NaturalIdJoinTableEntity.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/NaturalIdJoinTableEntity.java @@ -5,16 +5,16 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Access; -import javax.persistence.AccessType; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.Table; +import jakarta.persistence.Access; +import jakarta.persistence.AccessType; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; import java.io.Serializable; import java.util.HashMap; import java.util.HashSet; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Order.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Order.java index 4431a63561..15e0904566 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Order.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Order.java @@ -8,15 +8,15 @@ import java.io.Serializable; import java.util.HashSet; import java.util.Set; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/OrderPosition.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/OrderPosition.java index 8cd4c56fb1..34d7606519 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/OrderPosition.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/OrderPosition.java @@ -5,14 +5,14 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.EmbeddedId; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.JoinColumns; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.Table; +import jakarta.persistence.EmbeddedId; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinColumns; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; import java.io.Serializable; import java.util.HashSet; import java.util.Set; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/OrderPositionElement.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/OrderPositionElement.java index 2d906b4990..1b7fdbb823 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/OrderPositionElement.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/OrderPositionElement.java @@ -5,9 +5,9 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Table; import java.io.Serializable; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/OrderPositionHead.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/OrderPositionHead.java index 6c19f2821f..d1da15fae7 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/OrderPositionHead.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/OrderPositionHead.java @@ -7,12 +7,12 @@ import java.io.Serializable; -import javax.persistence.AttributeOverride; -import javax.persistence.AttributeOverrides; -import javax.persistence.Column; -import javax.persistence.EmbeddedId; -import javax.persistence.Entity; -import javax.persistence.Table; +import jakarta.persistence.AttributeOverride; +import jakarta.persistence.AttributeOverrides; +import jakarta.persistence.Column; +import jakarta.persistence.EmbeddedId; +import jakarta.persistence.Entity; +import jakarta.persistence.Table; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/OrderPositionHeadId.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/OrderPositionHeadId.java index a15e9055fd..136b409bfc 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/OrderPositionHeadId.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/OrderPositionHeadId.java @@ -6,7 +6,7 @@ package com.blazebit.persistence.testsuite.entity; import java.io.Serializable; -import javax.persistence.Embeddable; +import jakarta.persistence.Embeddable; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/OrderPositionId.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/OrderPositionId.java index 40d4b781ff..30da8f06b3 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/OrderPositionId.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/OrderPositionId.java @@ -6,7 +6,7 @@ package com.blazebit.persistence.testsuite.entity; import java.io.Serializable; -import javax.persistence.Embeddable; +import jakarta.persistence.Embeddable; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Ownable.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Ownable.java index 04ebc011a2..a78b2c2de6 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Ownable.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Ownable.java @@ -6,11 +6,11 @@ package com.blazebit.persistence.testsuite.entity; import java.io.Serializable; -import javax.persistence.CascadeType; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.CascadeType; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MappedSuperclass; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/ParameterOrderCte.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/ParameterOrderCte.java index a4a736416e..4246b063ae 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/ParameterOrderCte.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/ParameterOrderCte.java @@ -7,8 +7,8 @@ import com.blazebit.persistence.CTE; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/ParameterOrderCteB.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/ParameterOrderCteB.java index 49a12d41cb..bbc30969e8 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/ParameterOrderCteB.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/ParameterOrderCteB.java @@ -7,9 +7,9 @@ import com.blazebit.persistence.CTE; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.IdClass; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; import java.io.Serializable; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/ParameterOrderEntity.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/ParameterOrderEntity.java index e9e7167fd4..7002c31526 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/ParameterOrderEntity.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/ParameterOrderEntity.java @@ -5,7 +5,7 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Entity; +import jakarta.persistence.Entity; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Parent.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Parent.java index de62834538..a505ce1000 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Parent.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Parent.java @@ -5,16 +5,16 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Column; -import javax.persistence.DiscriminatorColumn; -import javax.persistence.DiscriminatorType; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.InheritanceType; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.DiscriminatorColumn; +import jakarta.persistence.DiscriminatorType; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.InheritanceType; +import jakarta.persistence.Table; import java.io.Serializable; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PersonCTE.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PersonCTE.java index beeb0b2be9..29b3f7e311 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PersonCTE.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PersonCTE.java @@ -7,10 +7,10 @@ import java.io.Serializable; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.ManyToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; import com.blazebit.persistence.CTE; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PersonForEntityKeyMaps.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PersonForEntityKeyMaps.java index d7f324cb4f..ea7dbe1451 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PersonForEntityKeyMaps.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PersonForEntityKeyMaps.java @@ -5,13 +5,13 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.Table; import java.io.Serializable; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicBase.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicBase.java index 81da6017fd..d90f5d6ba7 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicBase.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicBase.java @@ -7,18 +7,18 @@ import java.io.Serializable; import java.util.*; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.InheritanceType; -import javax.persistence.JoinTable; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.OneToOne; -import javax.persistence.OrderColumn; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.InheritanceType; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OneToOne; +import jakarta.persistence.OrderColumn; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicBaseContainer.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicBaseContainer.java index 279c4f1b4d..83805d2107 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicBaseContainer.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicBaseContainer.java @@ -5,12 +5,12 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.OneToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToOne; import java.util.Objects; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicPropertyBase.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicPropertyBase.java index 5f87778d0f..e5aae5985a 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicPropertyBase.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicPropertyBase.java @@ -6,12 +6,12 @@ package com.blazebit.persistence.testsuite.entity; import java.io.Serializable; -import javax.persistence.DiscriminatorColumn; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.InheritanceType; +import jakarta.persistence.DiscriminatorColumn; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.InheritanceType; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicPropertyMapBase.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicPropertyMapBase.java index c7fc7253e2..f1a006c1bb 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicPropertyMapBase.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicPropertyMapBase.java @@ -5,9 +5,9 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.FetchType; -import javax.persistence.ManyToOne; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.FetchType; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MappedSuperclass; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicPropertySub1.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicPropertySub1.java index f02e6f0314..091e66afc7 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicPropertySub1.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicPropertySub1.java @@ -5,10 +5,10 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.AssociationOverride; -import javax.persistence.AssociationOverrides; -import javax.persistence.Entity; -import javax.persistence.JoinColumn; +import jakarta.persistence.AssociationOverride; +import jakarta.persistence.AssociationOverrides; +import jakarta.persistence.Entity; +import jakarta.persistence.JoinColumn; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicPropertySub2.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicPropertySub2.java index 6f25cfaa06..e94eb18ed9 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicPropertySub2.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicPropertySub2.java @@ -5,10 +5,10 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.AssociationOverride; -import javax.persistence.AssociationOverrides; -import javax.persistence.Entity; -import javax.persistence.JoinColumn; +import jakarta.persistence.AssociationOverride; +import jakarta.persistence.AssociationOverrides; +import jakarta.persistence.Entity; +import jakarta.persistence.JoinColumn; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicSub1.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicSub1.java index c1ac86f044..028f918576 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicSub1.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicSub1.java @@ -5,10 +5,10 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.ManyToOne; +import jakarta.persistence.Embedded; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.ManyToOne; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicSub2.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicSub2.java index 67c34e2168..8254d625d4 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicSub2.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PolymorphicSub2.java @@ -5,10 +5,10 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.ManyToOne; +import jakarta.persistence.Embedded; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.ManyToOne; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PrimitiveDocument.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PrimitiveDocument.java index 57ff8167ee..b258cb818f 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PrimitiveDocument.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PrimitiveDocument.java @@ -4,20 +4,20 @@ */ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Basic; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.OneToOne; -import javax.persistence.OrderColumn; -import javax.persistence.Table; +import jakarta.persistence.Basic; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OneToOne; +import jakarta.persistence.OrderColumn; +import jakarta.persistence.Table; import java.io.Serializable; import java.util.ArrayList; import java.util.Collection; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PrimitiveFamily.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PrimitiveFamily.java index 88dad1b6bb..108eb39c5f 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PrimitiveFamily.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PrimitiveFamily.java @@ -4,14 +4,14 @@ */ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Basic; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.OneToOne; -import javax.persistence.Table; +import jakarta.persistence.Basic; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.OneToOne; +import jakarta.persistence.Table; import java.io.Serializable; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PrimitivePerson.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PrimitivePerson.java index 06e7929342..cdbcedf359 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PrimitivePerson.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PrimitivePerson.java @@ -4,16 +4,16 @@ */ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Basic; -import javax.persistence.CascadeType; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.Table; +import jakarta.persistence.Basic; +import jakarta.persistence.CascadeType; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; import java.io.Serializable; import java.util.HashSet; import java.util.Set; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PrimitiveVersion.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PrimitiveVersion.java index 139e9f6ab3..e4523efe4d 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PrimitiveVersion.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/PrimitiveVersion.java @@ -5,11 +5,11 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.OneToOne; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.OneToOne; +import jakarta.persistence.Table; import java.io.Serializable; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Project.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Project.java index 8529ce85e2..c9a84c5eb4 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Project.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Project.java @@ -6,13 +6,13 @@ package com.blazebit.persistence.testsuite.entity; import java.io.Serializable; -import javax.persistence.DiscriminatorColumn; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.ManyToOne; +import jakarta.persistence.DiscriminatorColumn; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.ManyToOne; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/ProjectLeader.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/ProjectLeader.java index 9a98a7a247..497674ff37 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/ProjectLeader.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/ProjectLeader.java @@ -9,15 +9,15 @@ import java.util.HashSet; import java.util.Set; -import javax.persistence.Basic; -import javax.persistence.DiscriminatorColumn; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; +import jakarta.persistence.Basic; +import jakarta.persistence.DiscriminatorColumn; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/RawTypeEntity.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/RawTypeEntity.java index 37be9d77a9..8348448c27 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/RawTypeEntity.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/RawTypeEntity.java @@ -5,13 +5,13 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.JoinTable; -import javax.persistence.MapKeyClass; -import javax.persistence.MapKeyColumn; -import javax.persistence.MapKeyJoinColumn; -import javax.persistence.OneToMany; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.JoinTable; +import jakarta.persistence.MapKeyClass; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.MapKeyJoinColumn; +import jakarta.persistence.OneToMany; import java.util.List; import java.util.Map; import java.util.Set; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/RecursiveEntity.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/RecursiveEntity.java index ee3b90ac1b..28b3a073e3 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/RecursiveEntity.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/RecursiveEntity.java @@ -9,14 +9,14 @@ import java.util.HashSet; import java.util.Set; -import javax.persistence.Basic; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.JoinTable; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; +import jakarta.persistence.Basic; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Root.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Root.java index d2e667d97f..cf3a44f415 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Root.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Root.java @@ -5,16 +5,16 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.CollectionTable; -import javax.persistence.ElementCollection; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; +import jakarta.persistence.CollectionTable; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Root2.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Root2.java index fba9cfb8c6..6f8ccd8faf 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Root2.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Root2.java @@ -5,11 +5,11 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; import java.util.List; import java.util.Map; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SchemaEntity.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SchemaEntity.java index 50064803ec..8ff742c6a2 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SchemaEntity.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SchemaEntity.java @@ -5,9 +5,9 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Table; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SecondaryTableEntityBase.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SecondaryTableEntityBase.java index 0c67830e80..26b3910dbf 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SecondaryTableEntityBase.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SecondaryTableEntityBase.java @@ -5,11 +5,11 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.InheritanceType; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.InheritanceType; @Entity @Inheritance(strategy = InheritanceType.JOINED) diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SecondaryTableEntitySub.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SecondaryTableEntitySub.java index bd3b854445..a860151403 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SecondaryTableEntitySub.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SecondaryTableEntitySub.java @@ -5,11 +5,11 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Inheritance; -import javax.persistence.InheritanceType; -import javax.persistence.SecondaryTable; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Inheritance; +import jakarta.persistence.InheritanceType; +import jakarta.persistence.SecondaryTable; @Entity @Inheritance(strategy = InheritanceType.JOINED) diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SeniorProjectLeader.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SeniorProjectLeader.java index f0839f1bf0..6e923e905a 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SeniorProjectLeader.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SeniorProjectLeader.java @@ -5,8 +5,8 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SequenceBaseEntity.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SequenceBaseEntity.java index b2d42a6573..96f493cd4d 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SequenceBaseEntity.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SequenceBaseEntity.java @@ -5,9 +5,9 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.MappedSuperclass; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.MappedSuperclass; import java.io.Serializable; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SimpleEmbeddedIdEntity.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SimpleEmbeddedIdEntity.java index b5e1cf46eb..d4f4929296 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SimpleEmbeddedIdEntity.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SimpleEmbeddedIdEntity.java @@ -5,9 +5,9 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.EmbeddedId; -import javax.persistence.Entity; -import javax.persistence.Table; +import jakarta.persistence.EmbeddedId; +import jakarta.persistence.Entity; +import jakarta.persistence.Table; import java.io.Serializable; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SimpleEmbeddedIdEntityId.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SimpleEmbeddedIdEntityId.java index 92aa2719ec..1b117f45b8 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SimpleEmbeddedIdEntityId.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SimpleEmbeddedIdEntityId.java @@ -5,7 +5,7 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Embeddable; +import jakarta.persistence.Embeddable; import java.io.Serializable; import java.util.Objects; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SingularListEntity.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SingularListEntity.java index 5d48bd1db0..589bf5465a 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SingularListEntity.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SingularListEntity.java @@ -5,12 +5,12 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.AttributeConverter; -import javax.persistence.Basic; -import javax.persistence.Column; -import javax.persistence.Convert; -import javax.persistence.Entity; -import javax.persistence.Table; +import jakarta.persistence.AttributeConverter; +import jakarta.persistence.Basic; +import jakarta.persistence.Column; +import jakarta.persistence.Convert; +import jakarta.persistence.Entity; +import jakarta.persistence.Table; import java.io.Serializable; import java.util.ArrayList; import java.util.Arrays; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SmallProject.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SmallProject.java index 53750b0c71..ceeadc8e70 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SmallProject.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/SmallProject.java @@ -5,8 +5,8 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/StringIdCTE.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/StringIdCTE.java index 107f05162e..9f017f7320 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/StringIdCTE.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/StringIdCTE.java @@ -7,8 +7,8 @@ import com.blazebit.persistence.CTE; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; import java.io.Serializable; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Sub1.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Sub1.java index e8666ccf83..7100d12e04 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Sub1.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Sub1.java @@ -5,8 +5,8 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Sub1Sub1.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Sub1Sub1.java index da4a96976c..1de47e1e8f 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Sub1Sub1.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Sub1Sub1.java @@ -5,8 +5,8 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Sub1Sub2.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Sub1Sub2.java index 15d1816663..877aff1471 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Sub1Sub2.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Sub1Sub2.java @@ -5,8 +5,8 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Sub2.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Sub2.java index 4aceeb4c9a..4e24d09ee9 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Sub2.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Sub2.java @@ -5,8 +5,8 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Sub2Sub1.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Sub2Sub1.java index 1d6d4f9747..9c72b6b554 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Sub2Sub1.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Sub2Sub1.java @@ -5,8 +5,8 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Sub2Sub2.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Sub2Sub2.java index 2f285ab64c..8ce48f13ab 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Sub2Sub2.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Sub2Sub2.java @@ -5,8 +5,8 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.DiscriminatorValue; -import javax.persistence.Entity; +import jakarta.persistence.DiscriminatorValue; +import jakarta.persistence.Entity; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TPCBase.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TPCBase.java index 5da6d97a9a..9d012b2f79 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TPCBase.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TPCBase.java @@ -5,10 +5,10 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.InheritanceType; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.InheritanceType; import java.io.Serializable; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TPCSub1.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TPCSub1.java index 42a22c41a8..c2678c2ebf 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TPCSub1.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TPCSub1.java @@ -5,7 +5,7 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Entity; +import jakarta.persistence.Entity; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TPCSub2.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TPCSub2.java index cdb12b45c5..dccff2c011 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TPCSub2.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TPCSub2.java @@ -5,7 +5,7 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Entity; +import jakarta.persistence.Entity; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TestAdvancedCTE1.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TestAdvancedCTE1.java index d9e739922a..cd67e056e3 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TestAdvancedCTE1.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TestAdvancedCTE1.java @@ -7,13 +7,13 @@ import com.blazebit.persistence.CTE; -import javax.persistence.Column; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; +import jakarta.persistence.Column; +import jakarta.persistence.Embedded; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; import java.io.Serializable; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TestAdvancedCTE2.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TestAdvancedCTE2.java index 006377a2d5..9d510a9246 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TestAdvancedCTE2.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TestAdvancedCTE2.java @@ -7,9 +7,9 @@ import com.blazebit.persistence.CTE; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Embedded; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; import java.io.Serializable; /** diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TestCTE.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TestCTE.java index 36bbceb781..78b09919ca 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TestCTE.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TestCTE.java @@ -7,9 +7,9 @@ import java.io.Serializable; -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; import com.blazebit.persistence.CTE; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TestCTEEmbeddable.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TestCTEEmbeddable.java index 286a24460f..cf7eec1992 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TestCTEEmbeddable.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/TestCTEEmbeddable.java @@ -5,11 +5,11 @@ package com.blazebit.persistence.testsuite.entity; -import javax.persistence.Column; -import javax.persistence.Embeddable; -import javax.persistence.FetchType; -import javax.persistence.JoinColumn; -import javax.persistence.ManyToOne; +import jakarta.persistence.Column; +import jakarta.persistence.Embeddable; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.ManyToOne; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Version.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Version.java index d787438a3b..a8b8e1c9e9 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Version.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Version.java @@ -9,16 +9,16 @@ import java.util.HashMap; import java.util.Map; -import javax.persistence.CollectionTable; -import javax.persistence.Column; -import javax.persistence.ElementCollection; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.Table; -import javax.persistence.Temporal; -import javax.persistence.TemporalType; +import jakarta.persistence.CollectionTable; +import jakarta.persistence.Column; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.Table; +import jakarta.persistence.Temporal; +import jakarta.persistence.TemporalType; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Workflow.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Workflow.java index d28d00b61f..cb38821c78 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Workflow.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/entity/Workflow.java @@ -11,15 +11,15 @@ import java.util.Locale; import java.util.Map; import java.util.Set; -import javax.persistence.Basic; -import javax.persistence.CollectionTable; -import javax.persistence.Column; -import javax.persistence.ElementCollection; -import javax.persistence.Entity; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.JoinColumn; -import javax.persistence.MapKeyColumn; +import jakarta.persistence.Basic; +import jakarta.persistence.CollectionTable; +import jakarta.persistence.Column; +import jakarta.persistence.ElementCollection; +import jakarta.persistence.Entity; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.JoinColumn; +import jakarta.persistence.MapKeyColumn; /** * diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/IntValueEmbeddable.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/IntValueEmbeddable.java index 5ddadc82a3..ddded3c706 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/IntValueEmbeddable.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/IntValueEmbeddable.java @@ -5,7 +5,7 @@ package com.blazebit.persistence.testsuite.treat.entity; -import javax.persistence.Embeddable; +import jakarta.persistence.Embeddable; import java.io.Serializable; import java.util.Objects; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/JoinedBase.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/JoinedBase.java index 6a8e01a912..f5792de51e 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/JoinedBase.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/JoinedBase.java @@ -5,21 +5,21 @@ package com.blazebit.persistence.testsuite.treat.entity; -import javax.persistence.Column; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.InheritanceType; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Embedded; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.InheritanceType; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; +import jakarta.persistence.Table; import java.io.Serializable; import java.util.ArrayList; import java.util.HashMap; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/JoinedSub1.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/JoinedSub1.java index 5d5c6b970a..8bbd9823a4 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/JoinedSub1.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/JoinedSub1.java @@ -7,16 +7,16 @@ import com.blazebit.persistence.testsuite.entity.IntIdEntity; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; -import javax.persistence.Table; +import jakarta.persistence.Embedded; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; +import jakarta.persistence.Table; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/JoinedSub2.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/JoinedSub2.java index b84c5f4510..8ecacb17b4 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/JoinedSub2.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/JoinedSub2.java @@ -7,16 +7,16 @@ import com.blazebit.persistence.testsuite.entity.IntIdEntity; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; -import javax.persistence.Table; +import jakarta.persistence.Embedded; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; +import jakarta.persistence.Table; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/SingleTableBase.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/SingleTableBase.java index 8183adc3fc..0c0ee1f725 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/SingleTableBase.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/SingleTableBase.java @@ -5,21 +5,21 @@ package com.blazebit.persistence.testsuite.treat.entity; -import javax.persistence.Column; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.GeneratedValue; -import javax.persistence.Id; -import javax.persistence.Inheritance; -import javax.persistence.InheritanceType; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; -import javax.persistence.Table; +import jakarta.persistence.Column; +import jakarta.persistence.Embedded; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.Id; +import jakarta.persistence.Inheritance; +import jakarta.persistence.InheritanceType; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; +import jakarta.persistence.Table; import java.io.Serializable; import java.util.ArrayList; import java.util.HashMap; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/SingleTableSub1.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/SingleTableSub1.java index d05b89fb7a..24947d8f9e 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/SingleTableSub1.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/SingleTableSub1.java @@ -7,17 +7,17 @@ import com.blazebit.persistence.testsuite.entity.IntIdEntity; -import javax.persistence.AttributeOverride; -import javax.persistence.Column; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; +import jakarta.persistence.AttributeOverride; +import jakarta.persistence.Column; +import jakarta.persistence.Embedded; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/SingleTableSub2.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/SingleTableSub2.java index 11cb50c062..94f15daadc 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/SingleTableSub2.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/treat/entity/SingleTableSub2.java @@ -7,17 +7,17 @@ import com.blazebit.persistence.testsuite.entity.IntIdEntity; -import javax.persistence.AttributeOverride; -import javax.persistence.Column; -import javax.persistence.Embedded; -import javax.persistence.Entity; -import javax.persistence.FetchType; -import javax.persistence.JoinTable; -import javax.persistence.ManyToMany; -import javax.persistence.ManyToOne; -import javax.persistence.MapKeyColumn; -import javax.persistence.OneToMany; -import javax.persistence.OrderColumn; +import jakarta.persistence.AttributeOverride; +import jakarta.persistence.Column; +import jakarta.persistence.Embedded; +import jakarta.persistence.Entity; +import jakarta.persistence.FetchType; +import jakarta.persistence.JoinTable; +import jakarta.persistence.ManyToMany; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.MapKeyColumn; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OrderColumn; import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/tx/TxSupport.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/tx/TxSupport.java index db086c375f..0daf95ed00 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/tx/TxSupport.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/tx/TxSupport.java @@ -5,8 +5,8 @@ package com.blazebit.persistence.testsuite.tx; -import javax.persistence.EntityManager; -import javax.persistence.EntityTransaction; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityTransaction; public class TxSupport { diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/tx/TxVoidWork.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/tx/TxVoidWork.java index ef46a93269..db8bd6778f 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/tx/TxVoidWork.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/tx/TxVoidWork.java @@ -6,7 +6,7 @@ package com.blazebit.persistence.testsuite.tx; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; public abstract class TxVoidWork { diff --git a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/tx/TxWork.java b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/tx/TxWork.java index 03e019c1f0..71dd74329a 100644 --- a/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/tx/TxWork.java +++ b/core/testsuite/src/main/java/com/blazebit/persistence/testsuite/tx/TxWork.java @@ -6,7 +6,7 @@ package com.blazebit.persistence.testsuite.tx; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; public abstract class TxWork { diff --git a/core/testsuite/src/main/java/module-info.java b/core/testsuite/src/main/java/module-info.java new file mode 100644 index 0000000000..511b864941 --- /dev/null +++ b/core/testsuite/src/main/java/module-info.java @@ -0,0 +1,19 @@ +/* + * SPDX-License-Identifier: Apache-2.0 + * Copyright Blazebit + */ +open module com.blazebit.persistence.core.testsuite { + requires com.blazebit.persistence.testsuite.assertion; + requires com.blazebit.persistence.testsuite.base; + requires com.blazebit.persistence.testsuite.base.jpa; + requires com.blazebit.persistence.core.impl; + requires com.blazebit.persistence.core.parser; + requires com.blazebit.persistence.core; + requires com.blazebit.common.utils; + requires jakarta.annotation; + exports com.blazebit.persistence.testsuite; + exports com.blazebit.persistence.testsuite.entity; + exports com.blazebit.persistence.testsuite.treat.entity; + exports com.blazebit.persistence.testsuite.tx; + uses com.blazebit.persistence.spi.EntityManagerFactoryIntegrator; +} \ No newline at end of file diff --git a/core/testsuite/src/test/hibernate/org/hibernate/engine/spi/SharedSessionContractImplementor.java b/core/testsuite/src/test/hibernate/org/hibernate/engine/spi/SharedSessionContractImplementor.java deleted file mode 100644 index dca3736d8a..0000000000 --- a/core/testsuite/src/test/hibernate/org/hibernate/engine/spi/SharedSessionContractImplementor.java +++ /dev/null @@ -1,16 +0,0 @@ -/* - * SPDX-License-Identifier: Apache-2.0 - * Copyright Blazebit - */ - -package org.hibernate.engine.spi; - -/** - * See com.blazebit.persistence.testsuite.base.AbstractPersistenceTest why this is necessary. - * The short version, we need this stub for custom user type tests for Hibernate before 5.1. - * - * @author Christian Beikov - * @since 1.5.0 - */ -public interface SharedSessionContractImplementor { -} diff --git a/core/testsuite/src/test/hibernateold/com/blazebit/persistence/testsuite/CustomTypeFunctionArgumentTest.java b/core/testsuite/src/test/hibernateold/com/blazebit/persistence/testsuite/CustomTypeFunctionArgumentTest.java deleted file mode 100644 index 195aec48c1..0000000000 --- a/core/testsuite/src/test/hibernateold/com/blazebit/persistence/testsuite/CustomTypeFunctionArgumentTest.java +++ /dev/null @@ -1,140 +0,0 @@ -/* - * SPDX-License-Identifier: Apache-2.0 - * Copyright Blazebit - */ - -package com.blazebit.persistence.testsuite; - -import com.blazebit.persistence.spi.CriteriaBuilderConfiguration; -import com.blazebit.persistence.spi.FunctionRenderContext; -import com.blazebit.persistence.spi.JpqlFunction; -import com.blazebit.persistence.spi.JpqlFunctionGroup; -import com.blazebit.persistence.testsuite.base.jpa.category.NoDB2; -import com.blazebit.persistence.testsuite.base.jpa.category.NoH2; -import com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate42; -import com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate43; -import com.blazebit.persistence.testsuite.base.jpa.category.NoMSSQL; -import com.blazebit.persistence.testsuite.base.jpa.category.NoMySQL; -import com.blazebit.persistence.testsuite.base.jpa.category.NoMySQLOld; -import com.blazebit.persistence.testsuite.base.jpa.category.NoOracle; -import com.blazebit.persistence.testsuite.tx.TxVoidWork; -import com.vladmihalcea.hibernate.type.array.StringArrayType; -import org.hibernate.annotations.Type; -import org.hibernate.annotations.TypeDef; -import org.junit.Before; -import org.junit.Test; -import org.junit.experimental.categories.Category; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.EntityManager; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Table; -import java.lang.reflect.InvocationTargetException; - -/** - * @author Jan-Willem Gmelig Meyling - * @since 1.4.0 - */ -public class CustomTypeFunctionArgumentTest extends AbstractCoreTest { - - @Override - protected Class[] getEntityClasses() { - return new Class[] { EntityWithCustomType.class }; - } - - @Before - public void setUp() throws Exception { - transactional(new TxVoidWork() { - @Override - public void work(EntityManager em) { - EntityWithCustomType entityWithCustomType = new EntityWithCustomType(); - entityWithCustomType.sensorNames = new String[] { - "Temperature", - "Pressure" - }; - em.persist(entityWithCustomType); - em.flush(); - em.clear(); - } - }); - } - - @Override - protected void configure(CriteriaBuilderConfiguration config) { - config.registerFunction(new JpqlFunctionGroup("array_contains", new ArrayContainsFunction())); - super.configure(config); - } - - // NOTE: this API was only introduced in Hibernate 5 - @Test - @Category({ NoHibernate42.class, NoHibernate43.class, NoDB2.class, NoOracle.class, NoMySQL.class, NoMSSQL.class, NoMySQLOld.class, NoH2.class }) - public void testHibernateCustomTypedParameterValue() { - transactional(new TxVoidWork() { - @Override - public void work(EntityManager em) { - cbf.create(em, EntityWithCustomType.class, "a") - .where("array_contains(a.sensorNames, :elements)").eqLiteral(true) - .setParameter("elements", getTypedParameterValue(StringArrayType.INSTANCE, new String[] { "Temperature"})) - .getSingleResult(); - } - }); - } - - Object getTypedParameterValue(org.hibernate.type.Type type, Object value) { - try { - return Class.forName("org.hibernate.jpa.TypedParameterValue").getConstructor(org.hibernate.type.Type.class, Object.class).newInstance(type, value); - } catch (Exception e) { - throw new RuntimeException(e); - } - } - - @Entity - @Table(name = "ewct") - @TypeDef( - name = "string-array", - typeClass = StringArrayType.class - ) - public static class EntityWithCustomType { - - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; - - @Type(type = "string-array") - @Column( - name = "sensor_names", - columnDefinition = "text[]" - ) - private String[] sensorNames; - - } - - public static class ArrayContainsFunction implements JpqlFunction { - - @Override - public boolean hasArguments() { - return true; - } - - @Override - public boolean hasParenthesesIfNoArguments() { - return false; - } - - @Override - public Class getReturnType(Class firstArgumentType) { - return Boolean.class; - } - - @Override - public void render(FunctionRenderContext context) { - context.addArgument(0); - context.addChunk(" @> "); - context.addArgument(1); - } - } - -} diff --git a/core/testsuite/src/test/hibernateold/com/blazebit/persistence/testsuite/Issue1018Test.java b/core/testsuite/src/test/hibernateold/com/blazebit/persistence/testsuite/Issue1018Test.java deleted file mode 100644 index e87b79f480..0000000000 --- a/core/testsuite/src/test/hibernateold/com/blazebit/persistence/testsuite/Issue1018Test.java +++ /dev/null @@ -1,150 +0,0 @@ -/* - * SPDX-License-Identifier: Apache-2.0 - * Copyright Blazebit - */ - -package com.blazebit.persistence.testsuite; - -import com.blazebit.persistence.testsuite.entity.LongSequenceEntity; -import org.hibernate.HibernateException; -import org.hibernate.annotations.Type; -import org.hibernate.annotations.TypeDef; -import org.hibernate.engine.spi.SessionImplementor; -import org.hibernate.engine.spi.SharedSessionContractImplementor; -import org.hibernate.usertype.UserType; -import org.junit.Test; - -import javax.persistence.Access; -import javax.persistence.AccessType; -import javax.persistence.Entity; -import java.io.Serializable; -import java.sql.PreparedStatement; -import java.sql.ResultSet; -import java.sql.SQLException; -import java.sql.Types; - -/** - * @author Christian Beikov - * @since 1.5.0 - */ -public class Issue1018Test extends AbstractCoreTest { - - @Override - protected Class[] getEntityClasses() { - return new Class[] { - EnumTestEntity.class - }; - } - - public static enum MyEnum { - VAL1(10), - VAL2(20); - - private final int value; - - MyEnum(int value) { - this.value = value; - } - - public int getValue() { - return value; - } - - public static MyEnum byValue(int value) { - switch (value) { - case 10: return VAL1; - case 20: return VAL2; - } - return null; - } - } - - public static class MyEnumUserType implements UserType { - - @Override - public Class returnedClass() { - return MyEnum.class; - } - - public Object nullSafeGet(ResultSet rs, String[] names, SharedSessionContractImplementor session, Object owner) throws HibernateException, SQLException { - return nullSafeGet(rs, names, (SessionImplementor) null, owner); - } - - public Object nullSafeGet(ResultSet rs, String[] names, SessionImplementor session, Object owner) throws HibernateException, SQLException { - int id = rs.getInt(names[0]); - if (rs.wasNull()) { - return null; - } - return MyEnum.byValue(id); - } - - public void nullSafeSet(PreparedStatement st, Object value, int index, SharedSessionContractImplementor session) throws HibernateException, SQLException { - nullSafeSet(st, value, index, (SessionImplementor) null); - } - - public void nullSafeSet(PreparedStatement st, Object value, int index, SessionImplementor session) throws HibernateException, SQLException { - if (value == null) { - st.setNull(index, Types.INTEGER); - } else { - st.setInt(index, ((MyEnum) value).getValue()); - } - } - - @Override - public Object assemble(Serializable cached, Object owner) throws HibernateException { - return cached; - } - - @Override - public Object deepCopy(Object value) throws HibernateException { - return value; - } - - @Override - public Serializable disassemble(Object value) throws HibernateException { - return (Serializable) value; - } - - @Override - public boolean equals(Object x, Object y) throws HibernateException { - return x == y; - } - - @Override - public int hashCode(Object x) throws HibernateException { - return x == null ? 0 : x.hashCode(); - } - - @Override - public boolean isMutable() { - return false; - } - - @Override - public Object replace(Object original, Object target, Object owner) throws HibernateException { - return original; - } - - @Override - public int[] sqlTypes() { - return new int[] { java.sql.Types.INTEGER }; - } - - } - - @Entity(name = "EnumTestEntity") - @Access(AccessType.FIELD) - @TypeDef(name = "MyEnumUserType", typeClass = MyEnumUserType.class) - public static class EnumTestEntity extends LongSequenceEntity { - @Type(type = "MyEnumUserType") - MyEnum myEnum; - } - - @Test - public void testEnumLiteral() { - cbf.create(em, EnumTestEntity.class) - .where("myEnum").inLiterals(MyEnum.VAL1, MyEnum.VAL2) - .whereExpression("myEnum = " + MyEnum.class.getName() + ".VAL1") - .getResultList(); - } -} diff --git a/core/testsuite/src/test/hibernateold/com/blazebit/persistence/testsuite/Issue545Test.java b/core/testsuite/src/test/hibernateold/com/blazebit/persistence/testsuite/Issue545Test.java deleted file mode 100644 index e886f4013a..0000000000 --- a/core/testsuite/src/test/hibernateold/com/blazebit/persistence/testsuite/Issue545Test.java +++ /dev/null @@ -1,80 +0,0 @@ -/* - * SPDX-License-Identifier: Apache-2.0 - * Copyright Blazebit - */ - -package com.blazebit.persistence.testsuite; - -import com.blazebit.persistence.testsuite.tx.TxVoidWork; -import com.vladmihalcea.hibernate.type.basic.NullableCharacterType; -import org.hibernate.annotations.Formula; -import org.hibernate.annotations.Type; -import org.hibernate.annotations.TypeDef; -import org.junit.Before; -import org.junit.Test; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.EntityManager; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.Table; - -/** - * @author Jan-Willem Gmelig Meyling - * @since 1.2.1 - */ -public class Issue545Test extends AbstractCoreTest { - - @Override - protected Class[] getEntityClasses() { - return new Class[] { EntityWithCustomType.class }; - } - - @Before - public void setUp() throws Exception { - transactional(new TxVoidWork() { - @Override - public void work(EntityManager em) { - EntityWithCustomType entityWithCustomType = new EntityWithCustomType(); - entityWithCustomType.customValue = 'c'; - em.persist(entityWithCustomType); - em.flush(); - em.clear(); - } - }); - } - - @Test - public void queryEntityWithCustomTypeTest() { - transactional(new TxVoidWork() { - @Override - public void work(EntityManager em) { - cbf.create(em, EntityWithCustomType.class) - .where("transformedCustomValue").eq('C') - .getSingleResult(); - } - }); - } - - @Entity - @Table(name = "ewct") - @TypeDef(name = "CustomType", typeClass = NullableCharacterType.class) - public static class EntityWithCustomType { - - @Id - @GeneratedValue(strategy = GenerationType.AUTO) - private Long id; - - @Type(type = "CustomType") - @Column(name = "custom_value") - private Character customValue; - - @Formula("UPPER(custom_value)") - @Type(type = "CustomType") - private Character transformedCustomValue; - - } - -} diff --git a/core/testsuite/src/test/hibernateold/com/blazebit/persistence/testsuite/Issue992Test.java b/core/testsuite/src/test/hibernateold/com/blazebit/persistence/testsuite/Issue992Test.java deleted file mode 100644 index 98383df872..0000000000 --- a/core/testsuite/src/test/hibernateold/com/blazebit/persistence/testsuite/Issue992Test.java +++ /dev/null @@ -1,64 +0,0 @@ -/* - * SPDX-License-Identifier: Apache-2.0 - * Copyright Blazebit - */ - -package com.blazebit.persistence.testsuite; - -import com.blazebit.persistence.CTE; -import com.vladmihalcea.hibernate.type.json.internal.JsonStringSqlTypeDescriptor; -import org.hibernate.annotations.Type; -import org.hibernate.annotations.TypeDef; -import org.junit.Test; - -import javax.persistence.Column; -import javax.persistence.Entity; -import javax.persistence.Id; -import java.util.Map; - -/** - * @author Jan-Willem Gmelig Meyling - * @since 1.4.1 - */ -public class Issue992Test extends AbstractCoreTest { - - @Override - protected Class[] getEntityClasses() { - return new Class[]{ BasicEntity.class, JsonCTE.class }; - } - - @Entity(name = "BasicEntity") - @TypeDef(name = "json", typeClass = JsonStringSqlTypeDescriptor.class) - public static class BasicEntity { - @Id - Long key1; - - @Type(type = "json") - Map attributeValues; - - } - - @CTE - @Entity(name = "JsonCTE") - @TypeDef(name = "json", typeClass = JsonStringSqlTypeDescriptor.class) - public static class JsonCTE { - @Id - Long key1; - - @Type(type = "json") - Map attributeValues; - - } - - @Test - public void test1() { - cbf.create(em, JsonCTE.class) - .with(JsonCTE.class) - .from(BasicEntity.class) - .bind("key1").select("key1") - .bind("attributeValues").select("NULL") - .end() - .getResultList(); - } - -} diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/AliasBasedMapKeyDereferencingTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/AliasBasedMapKeyDereferencingTest.java index e7d6ee2a2d..e2048e7908 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/AliasBasedMapKeyDereferencingTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/AliasBasedMapKeyDereferencingTest.java @@ -15,11 +15,11 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.ManyToOne; -import javax.persistence.OneToMany; -import javax.persistence.Table; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.ManyToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.Table; import java.util.HashMap; import java.util.Map; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/ArrayExpressionTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/ArrayExpressionTest.java index cbac0d2295..52284f330d 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/ArrayExpressionTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/ArrayExpressionTest.java @@ -20,7 +20,7 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CTEEntityInheritanceCheckTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CTEEntityInheritanceCheckTest.java index c5bdc65bc2..f73f1e8398 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CTEEntityInheritanceCheckTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CTEEntityInheritanceCheckTest.java @@ -14,9 +14,9 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.Entity; -import javax.persistence.Id; -import javax.persistence.PersistenceException; +import jakarta.persistence.Entity; +import jakarta.persistence.Id; +import jakarta.persistence.PersistenceException; /** * @author Moritz Becker diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CTEQueryResultCachingTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CTEQueryResultCachingTest.java index da7875fde2..9fea8b5e7f 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CTEQueryResultCachingTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CTEQueryResultCachingTest.java @@ -20,7 +20,7 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.TypedQuery; +import jakarta.persistence.TypedQuery; import java.util.Properties; /** diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CTETest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CTETest.java index 4b2b84c554..9c25b79f23 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CTETest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CTETest.java @@ -26,8 +26,8 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import java.util.List; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CaseWhenTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CaseWhenTest.java index 89ff0bc2a2..d3d278c296 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CaseWhenTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CaseWhenTest.java @@ -7,7 +7,7 @@ import static org.junit.Assert.assertEquals; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; import org.junit.Test; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CollectionRoleDeleteTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CollectionRoleDeleteTest.java index a3367db5cd..b39b39df54 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CollectionRoleDeleteTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CollectionRoleDeleteTest.java @@ -30,8 +30,8 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CollectionRoleInsertTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CollectionRoleInsertTest.java index c12e5de197..e49155d444 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CollectionRoleInsertTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CollectionRoleInsertTest.java @@ -30,8 +30,8 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import java.util.Collections; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CollectionRoleInverseDeleteTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CollectionRoleInverseDeleteTest.java index 2fdec94f5b..2c874ed2b7 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CollectionRoleInverseDeleteTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CollectionRoleInverseDeleteTest.java @@ -28,7 +28,7 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import java.util.ArrayList; import java.util.Arrays; import java.util.HashSet; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CollectionRoleUpdateTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CollectionRoleUpdateTest.java index 520efa7321..1bbd7e2eac 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CollectionRoleUpdateTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CollectionRoleUpdateTest.java @@ -35,8 +35,8 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/ComplexExpressionTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/ComplexExpressionTest.java index b7c171faf4..69ef29b1ca 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/ComplexExpressionTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/ComplexExpressionTest.java @@ -11,7 +11,7 @@ import java.util.Collection; import java.util.Locale; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; import com.blazebit.persistence.testsuite.base.jpa.category.NoEclipselink; import org.junit.Test; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CountQueryTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CountQueryTest.java index a1d9970738..0fbf19fc95 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CountQueryTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/CountQueryTest.java @@ -16,8 +16,8 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/DateAddTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/DateAddTest.java index 90ed3c443c..5ef9b6e124 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/DateAddTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/DateAddTest.java @@ -12,8 +12,8 @@ import com.blazebit.persistence.testsuite.tx.TxVoidWork; import org.junit.Test; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import java.util.Calendar; import java.util.Date; import java.util.List; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/DateDiffTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/DateDiffTest.java index c3b804e2e3..6502e03f66 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/DateDiffTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/DateDiffTest.java @@ -14,9 +14,9 @@ import org.junit.Before; import org.junit.Test; -import javax.persistence.EntityManager; -import javax.persistence.TemporalType; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.TemporalType; +import jakarta.persistence.Tuple; import javax.sql.DataSource; import java.sql.Connection; import java.util.Calendar; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/DateExtractTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/DateExtractTest.java index c6b2a814cd..84171f1d6c 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/DateExtractTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/DateExtractTest.java @@ -17,8 +17,8 @@ import org.junit.runner.RunWith; import org.junit.runners.Parameterized; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import javax.sql.DataSource; import java.sql.Connection; import java.util.Arrays; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/DateTruncTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/DateTruncTest.java index c496d84d0d..0737cb36cc 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/DateTruncTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/DateTruncTest.java @@ -14,8 +14,8 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import java.util.Calendar; import java.util.Date; import java.util.List; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/DeletePolymorphicTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/DeletePolymorphicTest.java index 8c019177b3..e36a5938fa 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/DeletePolymorphicTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/DeletePolymorphicTest.java @@ -36,8 +36,8 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import java.util.List; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/DeleteTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/DeleteTest.java index ab6e6e709e..17b39a676b 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/DeleteTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/DeleteTest.java @@ -16,7 +16,7 @@ import java.util.Set; import java.util.TreeSet; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import com.blazebit.persistence.ReturningObjectBuilder; import com.blazebit.persistence.SimpleReturningBuilder; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/ElementCollectionTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/ElementCollectionTest.java index c5c0653357..4e032b2b86 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/ElementCollectionTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/ElementCollectionTest.java @@ -9,7 +9,7 @@ import java.util.Locale; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; import com.blazebit.persistence.testsuite.base.jpa.category.NoEclipselink; import org.junit.Test; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/EmbeddableComplexTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/EmbeddableComplexTest.java index ceb1a1ea0b..a2eb02d736 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/EmbeddableComplexTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/EmbeddableComplexTest.java @@ -7,7 +7,7 @@ import static org.junit.Assert.assertEquals; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; import com.blazebit.persistence.testsuite.base.jpa.category.NoDatanucleus; import com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/EmbeddableSimpleTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/EmbeddableSimpleTest.java index 203b766662..d483782595 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/EmbeddableSimpleTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/EmbeddableSimpleTest.java @@ -21,7 +21,7 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/EntityInValuesClauseTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/EntityInValuesClauseTest.java index f7c06ac00f..176a0ddbd6 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/EntityInValuesClauseTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/EntityInValuesClauseTest.java @@ -18,9 +18,9 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; -import javax.persistence.TypedQuery; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; +import jakarta.persistence.TypedQuery; import java.util.Arrays; import java.util.List; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/EntityJoinTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/EntityJoinTest.java index cc3d2697f1..f7dc7e0133 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/EntityJoinTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/EntityJoinTest.java @@ -17,8 +17,8 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import java.util.List; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/EntitySchemaInTableAnnotationTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/EntitySchemaInTableAnnotationTest.java index b4b4a6e843..e32c569998 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/EntitySchemaInTableAnnotationTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/EntitySchemaInTableAnnotationTest.java @@ -9,7 +9,7 @@ import com.blazebit.persistence.testsuite.entity.SchemaEntity; import org.junit.Test; -import javax.persistence.EntityManagerFactory; +import jakarta.persistence.EntityManagerFactory; import java.sql.Connection; import java.util.Properties; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/EnumTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/EnumTest.java index 529fe315d8..fd6b0e1d97 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/EnumTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/EnumTest.java @@ -9,8 +9,8 @@ import java.util.List; -import javax.persistence.EntityManager; -import javax.persistence.EntityTransaction; +import jakarta.persistence.EntityManager; +import jakarta.persistence.EntityTransaction; import com.blazebit.persistence.testsuite.tx.TxVoidWork; import org.junit.Before; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/FunctionTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/FunctionTest.java index 28869c3caa..d2a5f29a94 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/FunctionTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/FunctionTest.java @@ -7,7 +7,7 @@ import static org.junit.Assert.assertEquals; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; import org.junit.Test; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/GroupByEmbeddableTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/GroupByEmbeddableTest.java index 2771dec449..e38ca6e56f 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/GroupByEmbeddableTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/GroupByEmbeddableTest.java @@ -30,7 +30,7 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/GroupByTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/GroupByTest.java index 170c7bbed2..b136bc1a2a 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/GroupByTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/GroupByTest.java @@ -21,7 +21,7 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/GroupConcatTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/GroupConcatTest.java index 8a9cd49b98..a2c0c8de07 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/GroupConcatTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/GroupConcatTest.java @@ -7,8 +7,8 @@ import static org.junit.Assert.assertEquals; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import com.blazebit.persistence.testsuite.base.jpa.category.NoOracle; import com.blazebit.persistence.testsuite.tx.TxVoidWork; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/IdClassAttributePaginationTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/IdClassAttributePaginationTest.java index 64828b7f00..650413dbe5 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/IdClassAttributePaginationTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/IdClassAttributePaginationTest.java @@ -10,8 +10,8 @@ import com.blazebit.persistence.testsuite.tx.TxVoidWork; import org.junit.Test; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNull; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/IdClassValueQueryTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/IdClassValueQueryTest.java index 828b8d8d52..338f08c612 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/IdClassValueQueryTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/IdClassValueQueryTest.java @@ -14,8 +14,8 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; -import javax.persistence.TypedQuery; +import jakarta.persistence.EntityManager; +import jakarta.persistence.TypedQuery; import java.util.ArrayList; import java.util.List; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/InlineCTETest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/InlineCTETest.java index db6909bc7e..73f67062d9 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/InlineCTETest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/InlineCTETest.java @@ -9,7 +9,6 @@ import com.blazebit.persistence.testsuite.base.jpa.category.NoDatanucleus; import com.blazebit.persistence.testsuite.base.jpa.category.NoEclipselink; import com.blazebit.persistence.testsuite.base.jpa.category.NoH2; -import com.blazebit.persistence.testsuite.base.jpa.category.NoH2Latest; import com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate42; import com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate43; import com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate50; @@ -37,7 +36,7 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import java.util.Collections; import java.util.List; @@ -103,9 +102,8 @@ public void work(EntityManager em) { // NOTE: Hibernate 4.2 and 4.3 interprets entity name tokens in string literals... // Prior to Hibernate 5.1 it wasn't possible reference other from clause elements in the ON clause which is required to support implicit joins in ON clauses - // NOTE: H2 v2 issue: https://github.com/h2database/h2database/issues/3621 @Test - @Category({ NoDatanucleus.class, NoEclipselink.class, NoOpenJPA.class, NoHibernate42.class, NoHibernate43.class, NoHibernate50.class, NoMySQLOld.class, NoH2Latest.class }) + @Category({ NoDatanucleus.class, NoEclipselink.class, NoOpenJPA.class, NoHibernate42.class, NoHibernate43.class, NoHibernate50.class, NoMySQLOld.class }) public void testInliningFromSubqueryCte() { cbf.create(em, RecursiveEntity.class) .withRecursive(DocumentCTE.class) @@ -137,9 +135,8 @@ public void testInliningFromSubqueryCte() { } // TODO: Oracle requires a cycle clause #295 - // NOTE: H2 v2 issue: https://github.com/h2database/h2database/issues/3621 @Test - @Category({ NoDatanucleus.class, NoEclipselink.class, NoOpenJPA.class, NoMySQLOld.class, NoOracle.class, NoH2Latest.class }) + @Category({ NoDatanucleus.class, NoEclipselink.class, NoOpenJPA.class, NoMySQLOld.class, NoOracle.class }) public void testReusedNestedCte() { CriteriaBuilder cteBuilder = cbf.create(em, ParameterOrderEntity.class) .withRecursive(TestCTE.class) @@ -220,9 +217,8 @@ public void testReusedNestedCte() { } // TODO: Oracle requires a cycle clause #295 - // NOTE: H2 v2 issue: https://github.com/h2database/h2database/issues/3621 @Test - @Category({ NoDatanucleus.class, NoEclipselink.class, NoOpenJPA.class, NoMySQLOld.class, NoOracle.class, NoH2Latest.class }) + @Category({ NoDatanucleus.class, NoEclipselink.class, NoOpenJPA.class, NoMySQLOld.class, NoOracle.class }) public void testReusedNestedCte2() { CriteriaBuilder cteBuilder = cbf.create(em, ParameterOrderCte.class) .withRecursive(TestCTE.class) diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/InsertTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/InsertTest.java index ba18bf7717..62da29d2e4 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/InsertTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/InsertTest.java @@ -9,7 +9,7 @@ import java.util.List; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import com.blazebit.persistence.testsuite.base.jpa.category.NoMySQLOld; import com.blazebit.persistence.testsuite.tx.TxWork; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/Issue1114Test.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/Issue1114Test.java index a55c7ba94e..3f67dcb693 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/Issue1114Test.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/Issue1114Test.java @@ -20,7 +20,7 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import java.util.HashSet; import java.util.List; import java.util.function.Function; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/Issue1228Test.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/Issue1228Test.java index d45215674c..eb0a9b2a18 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/Issue1228Test.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/Issue1228Test.java @@ -9,8 +9,8 @@ import java.util.ArrayList; import java.util.List; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import org.junit.Test; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/Issue571Test.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/Issue571Test.java index 50a447a97f..815e80f936 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/Issue571Test.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/Issue571Test.java @@ -25,13 +25,13 @@ import org.junit.experimental.categories.Category; import org.junit.rules.ExpectedException; -import javax.persistence.Entity; -import javax.persistence.EntityManager; -import javax.persistence.GeneratedValue; -import javax.persistence.GenerationType; -import javax.persistence.Id; -import javax.persistence.IdClass; -import javax.persistence.ManyToOne; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityManager; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.IdClass; +import jakarta.persistence.ManyToOne; import java.io.Serializable; import java.util.Objects; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/JoinTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/JoinTest.java index 9ceb806bb6..9d7b8f33e0 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/JoinTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/JoinTest.java @@ -10,8 +10,8 @@ import java.util.List; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import com.blazebit.persistence.testsuite.base.jpa.category.NoDatanucleus; import com.blazebit.persistence.testsuite.base.jpa.category.NoEclipselink; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/JpqlFunctionTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/JpqlFunctionTest.java index d5f772d2ba..3a033cfa3d 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/JpqlFunctionTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/JpqlFunctionTest.java @@ -11,7 +11,7 @@ import java.util.Map; import java.util.regex.Pattern; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import com.blazebit.persistence.spi.JpqlFunction; import com.blazebit.persistence.testsuite.base.jpa.assertion.AssertStatement; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/JsonAndXmlTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/JsonAndXmlTest.java index b9f5c9a484..c3c534c8f4 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/JsonAndXmlTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/JsonAndXmlTest.java @@ -19,8 +19,8 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import java.util.Arrays; import java.util.Collections; import java.util.Iterator; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/JsonGetAndSetTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/JsonGetAndSetTest.java index f5f0e92e33..1f16b127f4 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/JsonGetAndSetTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/JsonGetAndSetTest.java @@ -19,8 +19,8 @@ import com.fasterxml.jackson.databind.JsonNode; import com.fasterxml.jackson.databind.ObjectMapper; import java.util.List; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import org.junit.Test; import org.junit.experimental.categories.Category; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/KeysetPaginationNullsTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/KeysetPaginationNullsTest.java index f4da7b7031..a664dd3f88 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/KeysetPaginationNullsTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/KeysetPaginationNullsTest.java @@ -16,8 +16,8 @@ import org.junit.runner.RunWith; import org.junit.runners.Parameterized; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import java.io.Serializable; import java.util.ArrayList; import java.util.Collection; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/KeysetPaginationPage1EdgeCaseFallbackTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/KeysetPaginationPage1EdgeCaseFallbackTest.java index 6b56d91476..0c0f852f1a 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/KeysetPaginationPage1EdgeCaseFallbackTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/KeysetPaginationPage1EdgeCaseFallbackTest.java @@ -16,8 +16,8 @@ import com.blazebit.persistence.testsuite.tx.TxVoidWork; import org.junit.Test; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/KeysetPaginationTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/KeysetPaginationTest.java index b4ffb0a8bf..914d490d43 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/KeysetPaginationTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/KeysetPaginationTest.java @@ -20,8 +20,8 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import java.util.List; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/LimitTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/LimitTest.java index f9a57dea3f..3a899c9b99 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/LimitTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/LimitTest.java @@ -26,7 +26,7 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import java.util.List; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/ListaggTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/ListaggTest.java index 3012f15afb..836c527685 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/ListaggTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/ListaggTest.java @@ -16,8 +16,8 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/MultipleJoinComplexExpressionTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/MultipleJoinComplexExpressionTest.java index 4248d7db4a..c42f071192 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/MultipleJoinComplexExpressionTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/MultipleJoinComplexExpressionTest.java @@ -9,7 +9,7 @@ import java.util.Locale; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; import com.blazebit.persistence.testsuite.base.jpa.category.NoEclipselink; import org.junit.Test; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/MultipleJoinTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/MultipleJoinTest.java index 37d933fc4e..4288fc35e8 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/MultipleJoinTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/MultipleJoinTest.java @@ -9,7 +9,7 @@ import java.util.Locale; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; import org.junit.Test; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/NonPrimaryKeyJoinColumnTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/NonPrimaryKeyJoinColumnTest.java index 818c17d7a1..287f54f24c 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/NonPrimaryKeyJoinColumnTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/NonPrimaryKeyJoinColumnTest.java @@ -28,7 +28,7 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertFalse; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/OptimizedKeysetPaginationNullsTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/OptimizedKeysetPaginationNullsTest.java index c6f87af488..7a4ae71cb2 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/OptimizedKeysetPaginationNullsTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/OptimizedKeysetPaginationNullsTest.java @@ -18,8 +18,8 @@ import org.junit.runner.RunWith; import org.junit.runners.Parameterized; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import java.io.Serializable; import java.util.ArrayList; import java.util.Collection; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/OptimizedKeysetPaginationPage1EdgeCaseFallbackTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/OptimizedKeysetPaginationPage1EdgeCaseFallbackTest.java index 871811c9b9..6b54f667a8 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/OptimizedKeysetPaginationPage1EdgeCaseFallbackTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/OptimizedKeysetPaginationPage1EdgeCaseFallbackTest.java @@ -19,8 +19,8 @@ import com.blazebit.persistence.testsuite.tx.TxVoidWork; import org.junit.Test; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertNotNull; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/OptimizedKeysetPaginationRowValueConstructorTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/OptimizedKeysetPaginationRowValueConstructorTest.java index 52f6648d04..03bdb73977 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/OptimizedKeysetPaginationRowValueConstructorTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/OptimizedKeysetPaginationRowValueConstructorTest.java @@ -22,8 +22,8 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import java.util.List; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/OptimizedKeysetPaginationTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/OptimizedKeysetPaginationTest.java index 10bc9c4266..f854f837a2 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/OptimizedKeysetPaginationTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/OptimizedKeysetPaginationTest.java @@ -24,8 +24,8 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import java.util.List; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/OrderByTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/OrderByTest.java index f7ef71e16e..9c7d9234ec 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/OrderByTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/OrderByTest.java @@ -22,7 +22,7 @@ import com.blazebit.persistence.testsuite.entity.Document; import org.junit.experimental.categories.Category; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; /** * diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/PaginationEmbeddedIdTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/PaginationEmbeddedIdTest.java index ff8b10fd70..677273b1fd 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/PaginationEmbeddedIdTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/PaginationEmbeddedIdTest.java @@ -18,8 +18,8 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/PaginationOneToOneTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/PaginationOneToOneTest.java index 9891c5004c..d865aa8b5f 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/PaginationOneToOneTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/PaginationOneToOneTest.java @@ -14,8 +14,8 @@ import com.blazebit.persistence.testsuite.tx.TxVoidWork; import org.junit.Test; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/PaginationTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/PaginationTest.java index 33bb172925..2a24f87cda 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/PaginationTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/PaginationTest.java @@ -27,8 +27,8 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import java.io.Serializable; import java.util.ArrayList; import java.util.List; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/ParameterAPITest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/ParameterAPITest.java index df24a1b412..d8dcad7efb 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/ParameterAPITest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/ParameterAPITest.java @@ -11,9 +11,9 @@ import org.junit.Assert; import org.junit.Test; -import javax.persistence.Parameter; -import javax.persistence.TemporalType; -import javax.persistence.Tuple; +import jakarta.persistence.Parameter; +import jakarta.persistence.TemporalType; +import jakarta.persistence.Tuple; import java.util.Calendar; import java.util.Date; import java.util.Set; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/PolymorphicJoinTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/PolymorphicJoinTest.java index 760ac8dbb7..dda05a283a 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/PolymorphicJoinTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/PolymorphicJoinTest.java @@ -7,7 +7,7 @@ import static org.junit.Assert.assertTrue; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; import com.blazebit.persistence.testsuite.base.jpa.category.NoEclipselink; import com.blazebit.persistence.testsuite.base.jpa.category.NoHibernate60; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/QueryResultCachingTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/QueryResultCachingTest.java index 51f50146f8..7ca9ece313 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/QueryResultCachingTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/QueryResultCachingTest.java @@ -16,7 +16,7 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.TypedQuery; +import jakarta.persistence.TypedQuery; import java.util.List; import java.util.Properties; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SelectNewObjectBuilderTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SelectNewObjectBuilderTest.java index 4de275b4d0..23a101288f 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SelectNewObjectBuilderTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SelectNewObjectBuilderTest.java @@ -14,7 +14,7 @@ import com.blazebit.persistence.testsuite.tx.TxVoidWork; import org.junit.Test; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import java.util.List; import static org.junit.Assert.assertArrayEquals; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SelectNewTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SelectNewTest.java index f34cf3b541..9f67da5648 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SelectNewTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SelectNewTest.java @@ -15,7 +15,7 @@ import com.blazebit.persistence.testsuite.tx.TxVoidWork; import org.junit.Test; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import java.lang.reflect.Constructor; import java.util.List; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SelectPolymorphicTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SelectPolymorphicTest.java index aaa6db5363..30e4c9a6de 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SelectPolymorphicTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SelectPolymorphicTest.java @@ -19,7 +19,7 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import java.util.List; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SelectTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SelectTest.java index 2a03976466..67a941d2b9 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SelectTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SelectTest.java @@ -10,8 +10,8 @@ import java.util.Calendar; import java.util.List; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import com.blazebit.persistence.testsuite.entity.DocumentType; import com.blazebit.persistence.testsuite.tx.TxVoidWork; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SetOperationTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SetOperationTest.java index 245d98ad93..b918f6092a 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SetOperationTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SetOperationTest.java @@ -9,8 +9,8 @@ import java.util.List; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import com.blazebit.persistence.CriteriaBuilder; import com.blazebit.persistence.FinalSetOperationCriteriaBuilder; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SingleValuedAssociationManyToOneTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SingleValuedAssociationManyToOneTest.java index 252ced2b16..efd2300974 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SingleValuedAssociationManyToOneTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SingleValuedAssociationManyToOneTest.java @@ -7,7 +7,7 @@ import static org.junit.Assert.assertEquals; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; import com.blazebit.persistence.testsuite.entity.Document; import org.junit.Assert; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SingleValuedAssociationOneToOneJoinTableTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SingleValuedAssociationOneToOneJoinTableTest.java index e13112e1ec..7cfa415759 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SingleValuedAssociationOneToOneJoinTableTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SingleValuedAssociationOneToOneJoinTableTest.java @@ -23,7 +23,7 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SingleValuedAssociationOneToOneTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SingleValuedAssociationOneToOneTest.java index fbcc3e4e60..e835f78873 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SingleValuedAssociationOneToOneTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SingleValuedAssociationOneToOneTest.java @@ -11,7 +11,7 @@ import org.junit.Assert; import org.junit.Test; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SizeTransformationTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SizeTransformationTest.java index 7a2b064395..d12cad08bc 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SizeTransformationTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SizeTransformationTest.java @@ -20,8 +20,8 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import java.util.List; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SubqueryTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SubqueryTest.java index ee4aace095..d96a4e41b6 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SubqueryTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/SubqueryTest.java @@ -8,8 +8,8 @@ import static org.junit.Assert.assertEquals; import static org.junit.Assert.assertTrue; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import com.blazebit.persistence.spi.FunctionRenderContext; import com.blazebit.persistence.spi.JpqlMacro; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/TablePerClassTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/TablePerClassTest.java index d74a9bfc53..f62dd31c43 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/TablePerClassTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/TablePerClassTest.java @@ -13,7 +13,7 @@ import org.junit.Assert; import org.junit.Test; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import java.util.List; /** diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/TreatedCorrelatedSubqueryTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/TreatedCorrelatedSubqueryTest.java index 1d23799eb4..eb98af1852 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/TreatedCorrelatedSubqueryTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/TreatedCorrelatedSubqueryTest.java @@ -18,7 +18,7 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import java.util.List; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/TreatedEntityJoinTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/TreatedEntityJoinTest.java index 3622545a51..704f997c9a 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/TreatedEntityJoinTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/TreatedEntityJoinTest.java @@ -22,7 +22,7 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import java.util.List; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/TupleTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/TupleTest.java index 4f4dc8d667..eb38901d84 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/TupleTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/TupleTest.java @@ -11,8 +11,8 @@ import com.blazebit.persistence.testsuite.tx.TxVoidWork; import org.junit.Test; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import static org.junit.Assert.assertEquals; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/UpdateEmbeddableComplexTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/UpdateEmbeddableComplexTest.java index d61b09222e..51562b513d 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/UpdateEmbeddableComplexTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/UpdateEmbeddableComplexTest.java @@ -26,7 +26,7 @@ import com.blazebit.persistence.testsuite.entity.IntIdEntity; import com.blazebit.persistence.testsuite.tx.TxVoidWork; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; /** * This kind of mapping is not required to be supported by a JPA implementation. diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/UpdatePolymorphicTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/UpdatePolymorphicTest.java index ac50ceac44..6bc625c04e 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/UpdatePolymorphicTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/UpdatePolymorphicTest.java @@ -36,7 +36,7 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import java.util.List; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/UpdateTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/UpdateTest.java index bd55e4c5c2..c7e6b3b204 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/UpdateTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/UpdateTest.java @@ -29,7 +29,7 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import java.util.ArrayList; import java.util.Arrays; import java.util.List; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/ValuesClauseTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/ValuesClauseTest.java index e8ec09a132..a6ff0c53c6 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/ValuesClauseTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/ValuesClauseTest.java @@ -30,9 +30,9 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; -import javax.persistence.TypedQuery; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; +import jakarta.persistence.TypedQuery; import javax.sql.DataSource; import java.sql.Connection; import java.util.Arrays; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/WhereTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/WhereTest.java index 036e51dfac..608147be1e 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/WhereTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/WhereTest.java @@ -18,7 +18,7 @@ import com.blazebit.persistence.testsuite.entity.Document; import com.blazebit.persistence.testsuite.entity.Person; -import javax.persistence.Tuple; +import jakarta.persistence.Tuple; /** * diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/WindowFunctionTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/WindowFunctionTest.java index 2d4e6dd04c..d4b3c62eae 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/WindowFunctionTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/WindowFunctionTest.java @@ -14,8 +14,8 @@ import org.junit.Test; import org.junit.experimental.categories.Category; -import javax.persistence.EntityManager; -import javax.persistence.Tuple; +import jakarta.persistence.EntityManager; +import jakarta.persistence.Tuple; import java.util.List; import static org.junit.Assert.assertNotNull; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/treat/builder/AbstractTreatVariationsTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/treat/builder/AbstractTreatVariationsTest.java index c37cede356..9177c336fe 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/treat/builder/AbstractTreatVariationsTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/treat/builder/AbstractTreatVariationsTest.java @@ -33,7 +33,7 @@ import org.junit.FixMethodOrder; import org.junit.runners.MethodSorters; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import java.util.ArrayList; import java.util.Arrays; import java.util.Iterator; diff --git a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/treat/jpql/AbstractTreatVariationsTest.java b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/treat/jpql/AbstractTreatVariationsTest.java index 99f69c8341..53420cf9b0 100644 --- a/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/treat/jpql/AbstractTreatVariationsTest.java +++ b/core/testsuite/src/test/java/com/blazebit/persistence/testsuite/treat/jpql/AbstractTreatVariationsTest.java @@ -33,8 +33,8 @@ import org.junit.experimental.categories.Category; import org.junit.runners.MethodSorters; -import javax.persistence.EntityManager; -import javax.persistence.TypedQuery; +import jakarta.persistence.EntityManager; +import jakarta.persistence.TypedQuery; import java.util.Arrays; import java.util.Iterator; import java.util.List; diff --git a/creating-a-release.md b/creating-a-release.md index 783f9fb78f..1c4a7ff966 100644 --- a/creating-a-release.md +++ b/creating-a-release.md @@ -17,14 +17,14 @@ A release involves various steps which are outlined here and should be kept up-t . Open `website/src/main/jbake/jbake.properties` and update `stable.version` to the latest released version . Open `website/pom.xml` and update the property `stable.version` to the latest released version, `snapshot.version` to the latest snapshot version and `series.version` to the current version series . Open `documentation/pom.xml` and update the property `stable.version` to the latest released version and `series.version` to the current version series -. Prepare a local Maven release via `mvnw -P "blazebit-release,h2,hibernate-5.6,deltaspike-1.9,spring-data-2.7.x" release:clean release:prepare "-Darguments=-DskipTests -DskipITs '-Djdk8.home=C:\Program Files\Eclipse Adoptium\jdk-8.0.332.9-hotspot'"` -. Actually deploy the release with `mvnw -P "blazebit-release,h2,hibernate-5.6,deltaspike-1.9,spring-data-2.7.x" release:perform "-Darguments=-DskipTests -DskipITs '-Djdk8.home=C:\Program Files\Eclipse Adoptium\jdk-8.0.332.9-hotspot' -DretryFailedDeploymentCount=10"` +. Prepare a local Maven release via `mvnw -P "blazebit-release,h2,hibernate-6.6,deltaspike-2.0,spring-data-3.3.x" release:clean release:prepare "-Darguments=-DskipTests -DskipITs"` +. Actually deploy the release with `mvnw -P "blazebit-release,h2,hibernate-6.6,deltaspike-2.0,spring-data-3.3.x" release:perform "-Darguments=-DskipTests -DskipITs -DretryFailedDeploymentCount=10"` . Goto https://oss.sonatype.org and login. In *Build Promotion* click on *Staging Repositories* then scroll down and find a repository named *comblazebit-...* . Click on the repository, then click *Close* and *Confirm*. Wait a few seconds, click *Refresh* and finally click *Release* and *Confirm* . Commit the changes and push the branch `git push origin`, as well as the created tag `git push origin TAG` . Create a GitHub release from the tag and use the same content as in `website/src/main/jbake/content/news/CURRENT_YEAR/blaze-persistence-VERSION-release.adoc` and add the _tar.gz_ and _zip_ artifacts of `blaze-persistence-distribution` as binaries to the release -. Push the new website changes only if you are working on the latest version series and first to the staging server by invoking `./build-deploy-website.sh staging '-Djdk8.home=C:\Program Files\Eclipse Adoptium\jdk-8.0.332.9-hotspot'` and if everything is alright push to production with `./build-deploy-website.sh prod '-Djdk8.home=C:\Program Files\Eclipse Adoptium\jdk-8.0.332.9-hotspot'` -. If you want to push just the documentation changes use `./build-deploy-documentation.sh staging '-Djdk8.home=C:\Program Files\Eclipse Adoptium\jdk-8.0.332.9-hotspot'` and if everything is alright also push to production with `./build-deploy-documentation.sh prod '-Djdk8.home=C:\Program Files\Eclipse Adoptium\jdk-8.0.332.9-hotspot'` +. Push the new website changes only if you are working on the latest version series and first to the staging server by invoking `./build-deploy-website.sh staging` and if everything is alright push to production with `./build-deploy-website.sh prod` +. If you want to push just the documentation changes use `./build-deploy-documentation.sh staging` and if everything is alright also push to production with `./build-deploy-documentation.sh prod` . Create tweet about new version . Update version in Quarkus ecosystem ci poms @@ -37,7 +37,7 @@ A private release involves the following steps . Make sure you have GPG installed and the executable is available on PATH . Make sure your Maven settings.xml has credentials for the server `blazebit` configured . Make sure your Maven settings.xml has a profile called `blazebit-release` with the property `gpg.passphrase` -. Make sure you have `C:\Program Files\Java\jdk-14` and `C:\Program Files\Eclipse Adoptium\jdk-8.0.332.9-hotspot` installed or update the `deploy-project-release.bat` script +. Make sure you have `C:\Program Files\Java\jdk-17` installed or update the `deploy-project-release.bat` script . Checkout the commercial branch for the minor version e.g. `1.5-commercial` . Invoke `mvn org.codehaus.mojo:versions-maven-plugin:2.1:set "-DnewVersion=1.5.X"` . Invoke `deploy-project-release.bat` diff --git a/deploy-project-release.bat b/deploy-project-release.bat index 1c259a3e56..5a4c7dcbe1 100644 --- a/deploy-project-release.bat +++ b/deploy-project-release.bat @@ -1,6 +1,6 @@ @echo off set default_project_path=%~dp0 -set default_jdk_path=C:\Program Files\Java\jdk-14 +set default_jdk_path=C:\Program Files\Java\jdk-17 set /p project_path="Path to project [%default_project_path%]: " @@ -16,4 +16,4 @@ if "%jdk_path%" == "" ( set JAVA_HOME=%jdk_path% echo "Using JAVA_HOME=%JAVA_HOME%" set MAVEN_OPTS="-Xmx1024m" -./mvnw -P "blazebit-release,h2,hibernate-5.6,deltaspike-1.9,spring-data-2.7.x" -f %project_path%\pom.xml install deploy:deploy -DskipTests -DskipITs "-Djdk8.home=C:\Program Files\Java\jdk1.8.0_181" -DaltDeploymentRepository=blazebit::default::https://nexus.blazebit.com/repository/maven-releases/ %* +./mvnw -P "blazebit-release,h2,hibernate-6.6,deltaspike-2.0,spring-data-3.3.x" -f %project_path%\pom.xml install deploy:deploy -DskipTests -DskipITs -DaltDeploymentRepository=blazebit::default::https://nexus.blazebit.com/repository/maven-releases/ %* diff --git a/dist/bom/pom.xml b/dist/bom/pom.xml index 47531a870d..dbba046eb8 100644 --- a/dist/bom/pom.xml +++ b/dist/bom/pom.xml @@ -42,222 +42,72 @@ ${project.version} compile - - ${project.groupId} - blaze-persistence-core-api-jakarta - ${project.version} - compile - ${project.groupId} blaze-persistence-core-parser ${project.version} runtime - - ${project.groupId} - blaze-persistence-core-parser-jakarta - ${project.version} - runtime - ${project.groupId} blaze-persistence-core-impl ${project.version} runtime - - ${project.groupId} - blaze-persistence-core-impl-jakarta - ${project.version} - runtime - ${project.groupId} blaze-persistence-entity-view-api ${project.version} compile - - ${project.groupId} - blaze-persistence-entity-view-api-jakarta - ${project.version} - compile - ${project.groupId} blaze-persistence-entity-view-impl ${project.version} runtime - - ${project.groupId} - blaze-persistence-entity-view-impl-jakarta - ${project.version} - runtime - ${project.groupId} blaze-persistence-entity-view-processor ${project.version} provided - - ${project.groupId} - blaze-persistence-entity-view-processor-jakarta - ${project.version} - provided - ${project.groupId} blaze-persistence-jpa-criteria-api ${project.version} compile - - ${project.groupId} - blaze-persistence-jpa-criteria-api-jakarta - ${project.version} - compile - ${project.groupId} blaze-persistence-jpa-criteria-impl ${project.version} runtime - - ${project.groupId} - blaze-persistence-jpa-criteria-impl-jakarta - ${project.version} - runtime - - - ${project.groupId} - blaze-persistence-jpa-criteria-jpa-2-compatibility - ${project.version} - compile - ${project.groupId} blaze-persistence-integration-jpa-base ${project.version} runtime - - ${project.groupId} - blaze-persistence-integration-jpa-base-jakarta - ${project.version} - runtime - - - ${project.groupId} - blaze-persistence-integration-hibernate-base - ${project.version} - runtime - - - ${project.groupId} - blaze-persistence-integration-hibernate-base-jakarta - ${project.version} - runtime - ${project.groupId} blaze-persistence-integration-hibernate6-base ${project.version} runtime - - ${project.groupId} - blaze-persistence-integration-hibernate-4.2 - ${project.version} - runtime - - - ${project.groupId} - blaze-persistence-integration-hibernate-4.3 - ${project.version} - runtime - - - ${project.groupId} - blaze-persistence-integration-hibernate-5 - ${project.version} - runtime - - - ${project.groupId} - blaze-persistence-integration-hibernate-5.2 - ${project.version} - runtime - - - ${project.groupId} - blaze-persistence-integration-hibernate-5.3 - ${project.version} - runtime - - - ${project.groupId} - blaze-persistence-integration-hibernate-5.4 - ${project.version} - runtime - - - ${project.groupId} - blaze-persistence-integration-hibernate-5.5 - ${project.version} - runtime - - - ${project.groupId} - blaze-persistence-integration-hibernate-5.5-jakarta - ${project.version} - runtime - - - ${project.groupId} - blaze-persistence-integration-hibernate-5.6 - ${project.version} - runtime - - - ${project.groupId} - blaze-persistence-integration-hibernate-5.6-jakarta - ${project.version} - runtime - ${project.groupId} blaze-persistence-integration-hibernate-6.2 ${project.version} runtime - - ${project.groupId} - blaze-persistence-integration-datanucleus - ${project.version} - runtime - - - ${project.groupId} - blaze-persistence-integration-datanucleus-5.1 - ${project.version} - runtime - ${project.groupId} blaze-persistence-integration-eclipselink ${project.version} runtime - - ${project.groupId} - blaze-persistence-integration-openjpa - ${project.version} - runtime - ${project.groupId} @@ -265,18 +115,6 @@ ${project.version} runtime - - ${project.groupId} - blaze-persistence-integration-entity-view-cdi-jakarta - ${project.version} - runtime - - - ${project.groupId} - blaze-persistence-integration-entity-view-spring - ${project.version} - compile - ${project.groupId} blaze-persistence-integration-entity-view-spring-6.0 @@ -301,60 +139,6 @@ ${project.version} compile - - com.blazebit - blaze-persistence-integration-spring-data-1.x - ${project.version} - compile - - - com.blazebit - blaze-persistence-integration-spring-data-2.0 - ${project.version} - compile - - - com.blazebit - blaze-persistence-integration-spring-data-2.1 - ${project.version} - compile - - - com.blazebit - blaze-persistence-integration-spring-data-2.2 - ${project.version} - compile - - - com.blazebit - blaze-persistence-integration-spring-data-2.3 - ${project.version} - compile - - - com.blazebit - blaze-persistence-integration-spring-data-2.4 - ${project.version} - compile - - - com.blazebit - blaze-persistence-integration-spring-data-2.5 - ${project.version} - compile - - - com.blazebit - blaze-persistence-integration-spring-data-2.6 - ${project.version} - compile - - - com.blazebit - blaze-persistence-integration-spring-data-2.7 - ${project.version} - compile - com.blazebit blaze-persistence-integration-spring-data-3.1 @@ -373,12 +157,6 @@ ${project.version} compile - - com.blazebit - blaze-persistence-integration-spring-data-webmvc-jakarta - ${project.version} - compile - com.blazebit blaze-persistence-integration-spring-data-webflux @@ -391,12 +169,6 @@ ${project.version} compile - - com.blazebit - blaze-persistence-integration-spring-hateoas-webmvc-jakarta - ${project.version} - compile - com.blazebit blaze-persistence-integration-deltaspike-data-api @@ -411,13 +183,7 @@ com.blazebit - blaze-persistence-integration-deltaspike-data-impl-1.7 - ${project.version} - runtime - - - com.blazebit - blaze-persistence-integration-deltaspike-data-impl-1.8 + blaze-persistence-integration-deltaspike-data-impl-2.0 ${project.version} runtime @@ -451,72 +217,30 @@ ${project.version} runtime - - com.blazebit - blaze-persistence-integration-jaxrs-jackson-jakarta - ${project.version} - runtime - - - com.blazebit - blaze-persistence-integration-jaxrs-jsonb-jakarta - ${project.version} - runtime - ${project.groupId} blaze-persistence-integration-jackson ${project.version} compile - - ${project.groupId} - blaze-persistence-integration-jackson-jakarta - ${project.version} - compile - com.blazebit blaze-persistence-integration-jsonb ${project.version} compile - - com.blazebit - blaze-persistence-integration-jsonb-jakarta - ${project.version} - compile - com.blazebit blaze-persistence-integration-graphql ${project.version} compile - - com.blazebit - blaze-persistence-integration-graphql-jakarta - ${project.version} - compile - com.blazebit blaze-persistence-integration-graphql-spqr ${project.version} compile - - com.blazebit - blaze-persistence-integration-graphql-spqr-jakarta - ${project.version} - compile - - - com.blazebit - blaze-persistence-integration-graphql-dgs - ${project.version} - compile - com.blazebit blaze-persistence-integration-graphql-dgs-7.0 @@ -525,13 +249,13 @@ com.blazebit - blaze-persistence-integration-quarkus + blaze-persistence-integration-quarkus-3 ${project.version} runtime com.blazebit - blaze-persistence-integration-quarkus-deployment + blaze-persistence-integration-quarkus-3-deployment ${project.version} runtime @@ -541,12 +265,6 @@ ${project.version} compile - - com.blazebit - blaze-persistence-integration-querydsl-expressions-jakarta - ${project.version} - compile - diff --git a/dist/full/pom.xml b/dist/full/pom.xml deleted file mode 100644 index 7fb68f4de8..0000000000 --- a/dist/full/pom.xml +++ /dev/null @@ -1,325 +0,0 @@ - - - - - 4.0.0 - - - com.blazebit - blaze-persistence-distribution-parent - 1.6.15-SNAPSHOT - ../pom.xml - - - blaze-persistence-distribution - pom - - Blazebit Persistence Distribution - - - - - - - ${project.groupId} - blaze-common-utils - - - - - - ${project.groupId} - blaze-persistence-core-api - - - ${project.groupId} - blaze-persistence-core-parser - - - ${project.groupId} - blaze-persistence-core-impl - - - ${project.groupId} - blaze-persistence-entity-view-api - - - ${project.groupId} - blaze-persistence-entity-view-impl - - - ${project.groupId} - blaze-persistence-jpa-criteria-api - - - ${project.groupId} - blaze-persistence-jpa-criteria-impl - - - ${project.groupId} - blaze-persistence-jpa-criteria-jpa-2-compatibility - - - ${project.groupId} - blaze-persistence-integration-jpa-base - - - ${project.groupId} - blaze-persistence-integration-hibernate-base - - - ${project.groupId} - blaze-persistence-integration-hibernate6-base - - - ${project.groupId} - blaze-persistence-integration-hibernate-4.2 - - - ${project.groupId} - blaze-persistence-integration-hibernate-4.3 - - - ${project.groupId} - blaze-persistence-integration-hibernate-5 - - - ${project.groupId} - blaze-persistence-integration-hibernate-5.2 - - - ${project.groupId} - blaze-persistence-integration-hibernate-5.3 - - - ${project.groupId} - blaze-persistence-integration-hibernate-5.4 - - - ${project.groupId} - blaze-persistence-integration-hibernate-5.5 - - - ${project.groupId} - blaze-persistence-integration-hibernate-5.5-jakarta - - - ${project.groupId} - blaze-persistence-integration-hibernate-5.6 - - - ${project.groupId} - blaze-persistence-integration-hibernate-5.6-jakarta - - - ${project.groupId} - blaze-persistence-integration-hibernate-6.2 - - - ${project.groupId} - blaze-persistence-integration-datanucleus - - - ${project.groupId} - blaze-persistence-integration-datanucleus-5.1 - - - ${project.groupId} - blaze-persistence-integration-eclipselink - - - ${project.groupId} - blaze-persistence-integration-openjpa - - - - ${project.groupId} - blaze-persistence-integration-entity-view-cdi - - - - ${project.groupId} - blaze-persistence-integration-entity-view-spring - - - ${project.groupId} - blaze-persistence-integration-entity-view-spring-6.0 - - - ${project.groupId} - blaze-persistence-integration-spring-data-base - - - ${project.groupId} - blaze-persistence-integration-spring-data-base-3.1 - - - ${project.groupId} - blaze-persistence-integration-spring-data-base-3.3 - - - ${project.groupId} - blaze-persistence-integration-spring-data-1.x - - - ${project.groupId} - blaze-persistence-integration-spring-data-2.0 - - - ${project.groupId} - blaze-persistence-integration-spring-data-2.1 - - - ${project.groupId} - blaze-persistence-integration-spring-data-2.2 - - - ${project.groupId} - blaze-persistence-integration-spring-data-2.3 - - - ${project.groupId} - blaze-persistence-integration-spring-data-2.4 - - - ${project.groupId} - blaze-persistence-integration-spring-data-2.5 - - - ${project.groupId} - blaze-persistence-integration-spring-data-2.6 - - - ${project.groupId} - blaze-persistence-integration-spring-data-2.7 - - - ${project.groupId} - blaze-persistence-integration-spring-data-3.1 - - - ${project.groupId} - blaze-persistence-integration-spring-data-3.3 - - - ${project.groupId} - blaze-persistence-integration-spring-data-webmvc - - - ${project.groupId} - blaze-persistence-integration-spring-data-webmvc-jakarta - - - ${project.groupId} - blaze-persistence-integration-spring-data-webflux - - - ${project.groupId} - blaze-persistence-integration-deltaspike-data-api - - - ${project.groupId} - blaze-persistence-integration-deltaspike-data-base - - - ${project.groupId} - blaze-persistence-integration-deltaspike-data-impl-1.7 - - - ${project.groupId} - blaze-persistence-integration-deltaspike-data-impl-1.8 - - - ${project.groupId} - blaze-persistence-integration-deltaspike-data-rest-api - - - ${project.groupId} - blaze-persistence-integration-deltaspike-data-rest-impl - - - ${project.groupId} - blaze-persistence-integration-graphql - - - ${project.groupId} - blaze-persistence-integration-graphql-spqr - - - ${project.groupId} - blaze-persistence-integration-graphql-dgs - - - ${project.groupId} - blaze-persistence-integration-graphql-dgs-7.0 - - - ${project.groupId} - blaze-persistence-integration-spring-hateoas-webmvc - - - ${project.groupId} - blaze-persistence-integration-spring-hateoas-webmvc-jakarta - - - ${project.groupId} - blaze-persistence-integration-jackson - - - ${project.groupId} - blaze-persistence-integration-jsonb - - - ${project.groupId} - blaze-persistence-integration-jaxrs - - - ${project.groupId} - blaze-persistence-integration-jaxrs-jackson - - - ${project.groupId} - blaze-persistence-integration-jaxrs-jsonb - - - ${project.groupId} - blaze-persistence-integration-quarkus - - - ${project.groupId} - blaze-persistence-integration-quarkus-deployment - - - ${project.groupId} - blaze-persistence-integration-querydsl-expressions - - - - - - - maven-assembly-plugin - - - assemble - package - - single - - - - src/main/distribution/assembly.xml - - false - blaze-persistence-dist-${project.version} - - - - - - - - diff --git a/dist/full/src/main/distribution/assembly.xml b/dist/full/src/main/distribution/assembly.xml deleted file mode 100644 index 8ec8b13bb9..0000000000 --- a/dist/full/src/main/distribution/assembly.xml +++ /dev/null @@ -1,116 +0,0 @@ - - - - distribution - - zip - tar.gz - - - - ${project.basedir}/../.. - - README* - LICENSE* - - . - true - - - - - - com.blazebit:blaze-common-utils - - ${artifact.artifactId}-${artifact.version}.${artifact.extension} - lib/required/blaze-common-utils - - - - com.blazebit:blaze-persistence-core-* - - ${artifact.artifactId}-${project.version}.${artifact.extension} - lib/required/core - - - - com.blazebit:blaze-persistence-entity-view-* - - ${artifact.artifactId}-${project.version}.${artifact.extension} - lib/entity-view - - - - com.blazebit:blaze-persistence-jpa-criteria-* - - ${artifact.artifactId}-${project.version}.${artifact.extension} - lib/jpa-criteria - - - - com.blazebit:blaze-persistence-integration-jpa-base - com.blazebit:blaze-persistence-integration-jpa-base-jakarta - com.blazebit:blaze-persistence-integration-hibernate-* - - ${artifact.artifactId}-${project.version}.${artifact.extension} - lib/integration/hibernate - - - - com.blazebit:blaze-persistence-integration-jpa-base - com.blazebit:blaze-persistence-integration-datanucleus* - - ${artifact.artifactId}-${project.version}.${artifact.extension} - lib/integration/datanucleus - - - - com.blazebit:blaze-persistence-integration-jpa-base - com.blazebit:blaze-persistence-integration-eclipselink* - - ${artifact.artifactId}-${project.version}.${artifact.extension} - lib/integration/eclipselink - - - - com.blazebit:blaze-persistence-integration-jpa-base - com.blazebit:blaze-persistence-integration-openjpa* - - ${artifact.artifactId}-${project.version}.${artifact.extension} - lib/integration/openjpa - - - - com.blazebit:blaze-persistence-integration-quarkus - com.blazebit:blaze-persistence-integration-quarkus-runtime - - ${artifact.artifactId}-${project.version}.${artifact.extension} - lib/integration/quarkus - - - - com.blazebit:blaze-persistence-integration-querydsl-expressions - com.blazebit:blaze-persistence-integration-querydsl-expressions-jakarta - - ${artifact.artifactId}-${project.version}.${artifact.extension} - lib/integration/querydsl - - - - com.blazebit:blaze-persistence-integration-entity-view-* - com.blazebit:blaze-persistence-integration-spring-* - com.blazebit:blaze-persistence-integration-deltaspike-data-* - com.blazebit:blaze-persistence-integration-jaxrs* - com.blazebit:blaze-persistence-integration-jackson* - com.blazebit:blaze-persistence-integration-graphql* - - ${artifact.artifactId}-${project.version}.${artifact.extension} - lib/integration/entity-view - - - diff --git a/dist/pom.xml b/dist/pom.xml index cc36aaa126..92bc31c4c9 100644 --- a/dist/pom.xml +++ b/dist/pom.xml @@ -22,25 +22,4 @@ bom - - - - blazebit-release - - - 1.9 - - - bom - full - - - - dist - - bom - full - - - diff --git a/documentation/pom.xml b/documentation/pom.xml index 27d8a5d176..b0bdc12c9d 100644 --- a/documentation/pom.xml +++ b/documentation/pom.xml @@ -22,7 +22,7 @@ 1.6.0-alpha.7 1.6.14 - 1.6 + 2.0 diff --git a/documentation/src/main/asciidoc/core/manual/en_US/getting_started.adoc b/documentation/src/main/asciidoc/core/manual/en_US/getting_started.adoc index e239d741ff..25518680c8 100644 --- a/documentation/src/main/asciidoc/core/manual/en_US/getting_started.adoc +++ b/documentation/src/main/asciidoc/core/manual/en_US/getting_started.adoc @@ -56,24 +56,6 @@ The required dependencies for the core module are ---- -or if you are using Jakarta JPA - -[source,xml] ----- - - com.blazebit - blaze-persistence-core-api-jakarta - ${blaze-persistence.version} - compile - - - com.blazebit - blaze-persistence-core-impl-jakarta - ${blaze-persistence.version} - runtime - ----- - Depending on the JPA provider that should be used, one of the following integrations is required [[maven-setup-hibernate62]] @@ -89,162 +71,6 @@ Depending on the JPA provider that should be used, one of the following integrat ---- -[[maven-setup-hibernate56-jakarta]] -===== Hibernate 5.6+ Jakarta - -[source,xml] ----- - - com.blazebit - blaze-persistence-integration-hibernate-5.6-jakarta - ${blaze-persistence.version} - runtime - ----- - -[[maven-setup-hibernate56]] -===== Hibernate 5.6 - -[source,xml] ----- - - com.blazebit - blaze-persistence-integration-hibernate-5.6 - ${blaze-persistence.version} - runtime - ----- - -[[maven-setup-hibernate55-jakarta]] -===== Hibernate 5.5 Jakarta - -[source,xml] ----- - - com.blazebit - blaze-persistence-integration-hibernate-5.5-jakarta - ${blaze-persistence.version} - runtime - ----- - -[[maven-setup-hibernate55]] -===== Hibernate 5.5 - -[source,xml] ----- - - com.blazebit - blaze-persistence-integration-hibernate-5.5 - ${blaze-persistence.version} - runtime - ----- - -[[maven-setup-hibernate54]] -===== Hibernate 5.4 - -[source,xml] ----- - - com.blazebit - blaze-persistence-integration-hibernate-5.4 - ${blaze-persistence.version} - runtime - ----- - -[[maven-setup-hibernate53]] -===== Hibernate 5.3 - -[source,xml] ----- - - com.blazebit - blaze-persistence-integration-hibernate-5.3 - ${blaze-persistence.version} - runtime - ----- - -[[maven-setup-hibernate52]] -===== Hibernate 5.2 - -[source,xml] ----- - - com.blazebit - blaze-persistence-integration-hibernate-5.2 - ${blaze-persistence.version} - runtime - ----- - -[[maven-setup-hibernate5]] -===== Hibernate 5+ - -[source,xml] ----- - - com.blazebit - blaze-persistence-integration-hibernate-5 - ${blaze-persistence.version} - runtime - ----- - -[[maven-setup-hibernate43]] -===== Hibernate 4.3 - -[source,xml] ----- - - com.blazebit - blaze-persistence-integration-hibernate-4.3 - ${blaze-persistence.version} - runtime - ----- - -[[maven-setup-hibernate42]] -===== Hibernate 4.2 - -[source,xml] ----- - - com.blazebit - blaze-persistence-integration-hibernate-4.2 - ${blaze-persistence.version} - runtime - ----- - -[[maven-setup-datanucleus51]] -===== Datanucleus 5.1 - -[source,xml] ----- - - com.blazebit - blaze-persistence-integration-datanucleus-5.1 - ${blaze-persistence.version} - runtime - ----- - -[[maven-setup-datanucleus]] -===== Datanucleus 4 and 5 - -[source,xml] ----- - - com.blazebit - blaze-persistence-integration-datanucleus - ${blaze-persistence.version} - runtime - ----- - [[maven-setup-eclipselink]] ===== EclipseLink @@ -258,19 +84,6 @@ Depending on the JPA provider that should be used, one of the following integrat ---- -[[maven-setup-openjpa]] -===== OpenJPA - -[source,xml] ----- - - com.blazebit - blaze-persistence-integration-openjpa - ${blaze-persistence.version} - runtime - ----- - [[maven-setup-querydsl-integration]] ===== Querydsl integration @@ -286,18 +99,6 @@ When you work with Querydsl you can additionally have first class integration by ---- -or if you are using Jakarta JPA - -[source,xml] ----- - - com.blazebit - blaze-persistence-integration-querydsl-expressions-jakarta - ${blaze-persistence.version} - compile - ----- - [[anchor-environment]] === Environments diff --git a/documentation/src/main/asciidoc/core/manual/en_US/querydsl.adoc b/documentation/src/main/asciidoc/core/manual/en_US/querydsl.adoc index 9988e9971e..7c171253cb 100644 --- a/documentation/src/main/asciidoc/core/manual/en_US/querydsl.adoc +++ b/documentation/src/main/asciidoc/core/manual/en_US/querydsl.adoc @@ -31,25 +31,7 @@ As outlined in the <> you need the following com.blazebit - blaze-persistence-integration-hibernate-5.6 - ${blaze-persistence.version} - runtime - ----- - -or if you are using Jakarta JPA - -[source,xml] ----- - - com.blazebit - blaze-persistence-integration-querydsl-expressions - ${blaze-persistence.version} - compile - - - com.blazebit - blaze-persistence-integration-hibernate-5.6-jakarta + blaze-persistence-integration-hibernate-6.2 ${blaze-persistence.version} runtime diff --git a/documentation/src/main/asciidoc/entity-view/manual/en_US/getting_started.adoc b/documentation/src/main/asciidoc/entity-view/manual/en_US/getting_started.adoc index cb96893f94..8cbba0a35f 100644 --- a/documentation/src/main/asciidoc/entity-view/manual/en_US/getting_started.adoc +++ b/documentation/src/main/asciidoc/entity-view/manual/en_US/getting_started.adoc @@ -48,24 +48,6 @@ The required dependencies for the entity view module are ---- -or if you are using Jakarta JPA - -[source,xml] ----- - - com.blazebit - blaze-persistence-entity-view-api-jakarta - ${blaze-persistence.version} - compile - - - com.blazebit - blaze-persistence-entity-view-impl-jakarta - ${blaze-persistence.version} - runtime - ----- - Depending on the environment, there are some integrations that help you with configuration [[maven-setup-apt]] @@ -83,18 +65,6 @@ The annotation processor will generate static entity view metamodels, static ent ---- -or if you are using Jakarta JPA - -[source,xml] ----- - - com.blazebit - blaze-persistence-entity-view-processor-jakarta - ${blaze-persistence.version} - provided - ----- - [[maven-setup-cdi-integration]] ===== CDI integration @@ -108,33 +78,9 @@ or if you are using Jakarta JPA ---- -or if you are using Jakarta JPA - -[source,xml] ----- - - com.blazebit - blaze-persistence-integration-entity-view-cdi - ${blaze-persistence.version} - runtime - ----- - [[maven-setup-spring-integration]] ===== Spring integration -[source,xml] ----- - - com.blazebit - blaze-persistence-integration-entity-view-spring - ${blaze-persistence.version} - compile - ----- - -or if you are using Jakarta APIs and Spring 6+ - [source,xml] ---- @@ -154,21 +100,19 @@ When you work with Spring Data you can additionally have first class integration ---- com.blazebit - blaze-persistence-integration-spring-data-2.7 + blaze-persistence-integration-spring-data-3.3 ${blaze-persistence.version} compile ---- -For Spring-Data version 2.6, 2.5, 2.4, 2.3, 2.2, 2.1, 2.0 or 1.x use the artifact with the respective suffix `2.6`, `2.5`, `2.4`, `2.3`, `2.2`, `2.1`, `2.0`, `1.x`. - -If you are using Jakarta APIs and Spring Framework 6+ / Spring Boot 3+, use this +For Spring-Data version 3.2 and 3.1, use this [source,xml] ---- com.blazebit - blaze-persistence-integration-spring-data-3.3 + blaze-persistence-integration-spring-data-3.1 ${blaze-persistence.version} compile @@ -195,36 +139,6 @@ NOTE: The Spring Data integration depends on the _jpa-criteria_ module ---- -or if you are using Jakarta JPA - -[source,xml] ----- - - com.blazebit - blaze-persistence-jpa-criteria-api-jakarta - ${blaze-persistence.version} - compile - - - com.blazebit - blaze-persistence-jpa-criteria-impl-jakarta - ${blaze-persistence.version} - runtime - ----- - -If a JPA provider that does not implement the JPA 2.1 specification like Hibernate 4.2 or OpenJPA is used, the following compatibility dependency is also required. - -[source,xml] ----- - - com.blazebit - blaze-persistence-jpa-criteria-jpa-2-compatibility - ${blaze-persistence.version} - compile - ----- - [[maven-setup-spring-hateoas-integration]] ===== Spring HATEOAS integration @@ -240,18 +154,6 @@ When you work with Spring HATEOAS you can additionally have first class support ---- -or if you are using Jakarta APIs and Spring Framework 6+ / Spring Boot 3+ use - -[source,xml] ----- - - com.blazebit - blaze-persistence-integration-spring-hateoas-webmvc-jakarta - ${blaze-persistence.version} - compile - ----- - More information about the integration can be found in the <>. [[quarkus-setup]] @@ -263,7 +165,7 @@ To use the Quarkus extension you need to add the following Maven dependency to y ---- com.blazebit - blaze-persistence-integration-quarkus + blaze-persistence-integration-quarkus-3 ${blaze-persistence.version} ---- diff --git a/documentation/src/main/asciidoc/entity-view/manual/en_US/graphql.adoc b/documentation/src/main/asciidoc/entity-view/manual/en_US/graphql.adoc index d6b5d29ca7..198cf9677e 100644 --- a/documentation/src/main/asciidoc/entity-view/manual/en_US/graphql.adoc +++ b/documentation/src/main/asciidoc/entity-view/manual/en_US/graphql.adoc @@ -22,18 +22,6 @@ To use the GraphQL integration you need the following Maven dependencies: ---- -or if you are using Jakarta JPA - -[source,xml] ----- - - com.blazebit - blaze-persistence-integration-graphql-jakarta - ${blaze-persistence.version} - compile - ----- - Note that the integration works with the de facto standard runtime for GraphQL which is `graphql-java`. At least version 17.3 is required. === Usage @@ -416,17 +404,6 @@ To use the SPQR GraphQL integration you need the following Maven dependencies: compile ---- - -or if you are using Jakarta JPA - -[source,xml] ----- - - com.blazebit - blaze-persistence-integration-graphql-spqr-jakarta - ${blaze-persistence.version} - compile - ---- The SPQR configuration is very simple and since the framework is fully declarative, you don't need a dedicated GraphQL schema definition. diff --git a/documentation/src/main/asciidoc/entity-view/manual/en_US/jaxrs.adoc b/documentation/src/main/asciidoc/entity-view/manual/en_US/jaxrs.adoc index 28349b0219..b7312bb84f 100644 --- a/documentation/src/main/asciidoc/entity-view/manual/en_US/jaxrs.adoc +++ b/documentation/src/main/asciidoc/entity-view/manual/en_US/jaxrs.adoc @@ -25,18 +25,6 @@ To use the Jackson integration directly you need the following Maven dependencie ---- -or if you are using Jakarta JPA - -[source,xml] ----- - - com.blazebit - blaze-persistence-integration-jaxrs-jackson-jakarta - ${blaze-persistence.version} - runtime - ----- - To use the JSONB integration directly you need the following Maven dependencies: [source,xml] @@ -49,18 +37,6 @@ To use the JSONB integration directly you need the following Maven dependencies: ---- -or if you are using Jakarta JPA - -[source,xml] ----- - - com.blazebit - blaze-persistence-integration-jaxrs-jsonb-jakarta - ${blaze-persistence.version} - runtime - ----- - [[jaxrs-features]] === Features diff --git a/documentation/src/main/asciidoc/entity-view/manual/en_US/serialization_support.adoc b/documentation/src/main/asciidoc/entity-view/manual/en_US/serialization_support.adoc index 538bcbeb00..c868b57bbb 100644 --- a/documentation/src/main/asciidoc/entity-view/manual/en_US/serialization_support.adoc +++ b/documentation/src/main/asciidoc/entity-view/manual/en_US/serialization_support.adoc @@ -47,18 +47,6 @@ To use the Jackson integration directly you need the following Maven dependencie ---- -or if you are using Jakarta JPA - -[source,xml] ----- - - com.blazebit - blaze-persistence-integration-jackson-jakarta - ${blaze-persistence.version} - compile - ----- - If you are using JAX-RS, Spring WebMvc or Spring WebFlux, consider using the already existing integrations instead to avoid unnecessary work. ==== Usage @@ -93,18 +81,6 @@ To use the JSONB integration directly you need the following Maven dependencies: ---- -or if you are using Jakarta JPA - -[source,xml] ----- - - com.blazebit - blaze-persistence-integration-jsonb-jakarta - ${blaze-persistence.version} - compile - ----- - If you are using JAX-RS, Spring WebMvc or Spring WebFlux, consider using the already existing integrations instead to avoid unnecessary work. ==== Usage diff --git a/documentation/src/main/asciidoc/entity-view/manual/en_US/spring_data.adoc b/documentation/src/main/asciidoc/entity-view/manual/en_US/spring_data.adoc index ffc133cc44..ba401a16af 100644 --- a/documentation/src/main/asciidoc/entity-view/manual/en_US/spring_data.adoc +++ b/documentation/src/main/asciidoc/entity-view/manual/en_US/spring_data.adoc @@ -16,27 +16,25 @@ In short, the following Maven dependencies are required ---- com.blazebit - blaze-persistence-integration-spring-data-2.7 + blaze-persistence-integration-spring-data-3.3 ${blaze-persistence.version} compile com.blazebit - blaze-persistence-integration-hibernate-5.6 + blaze-persistence-integration-hibernate-6.2 ${blaze-persistence.version} runtime ---- -For Spring-Data version 2.6, 2.5, 2.4, 2.3, 2.2, 2.1, 2.0 or 1.x use the `blaze-persistence-integration-spring-data` artifact with the respective suffix `2.6`, `2.5` `2.4`, `2.3`, `2.2`, `2.1`, `2.0`, `1.x`. - -If you are using Jakarta APIs and Spring Framework 6+ / Spring Boot 3+, use this +For Spring-Data version 3.2 or 3.1, use this [source,xml] ---- com.blazebit - blaze-persistence-integration-spring-data-3.3 + blaze-persistence-integration-spring-data-3.1 ${blaze-persistence.version} compile @@ -283,18 +281,6 @@ To setup the project for Spring Data WebMvc you have to add the following additi ---- -or if you are using Jakarta APIs and Spring 6+ - -[source,xml] ----- - - com.blazebit - blaze-persistence-integration-spring-data-webmvc-jakarta - ${blaze-persistence.version} - compile - ----- - ==== Usage First, a keyset pagination enabled repository is needed which can be done by using `KeysetAwarePage` as return type. diff --git a/documentation/src/main/asciidoc/entity-view/manual/en_US/spring_hateoas.adoc b/documentation/src/main/asciidoc/entity-view/manual/en_US/spring_hateoas.adoc index fc97df6bf1..c63329cded 100644 --- a/documentation/src/main/asciidoc/entity-view/manual/en_US/spring_hateoas.adoc +++ b/documentation/src/main/asciidoc/entity-view/manual/en_US/spring_hateoas.adoc @@ -18,24 +18,6 @@ In short, the following Maven dependencies are required ${blaze-persistence.version} compile - - com.blazebit - blaze-persistence-integration-hibernate-5.6 - ${blaze-persistence.version} - runtime - ----- - -or if you are using Jakarta APIs and Spring 6+ - -[source,xml] ----- - - ${project.groupId} - blaze-persistence-integration-spring-hateoas-webmvc-jakarta - ${blaze-persistence.version} - compile - com.blazebit blaze-persistence-integration-hibernate-6.2 diff --git a/entity-view/api-jakarta/pom.xml b/entity-view/api-jakarta/pom.xml deleted file mode 100644 index fba3e5d5e6..0000000000 --- a/entity-view/api-jakarta/pom.xml +++ /dev/null @@ -1,227 +0,0 @@ - - - - - 4.0.0 - - - com.blazebit - blaze-persistence-entity-view - 1.6.15-SNAPSHOT - ../pom.xml - - - blaze-persistence-entity-view-api-jakarta - jar - - - com.blazebit.persistence.view - - - - - ${project.groupId} - blaze-persistence-entity-view-api - provided - - - jakarta.persistence - jakarta.persistence-api - ${version.jakarta-jpa-api} - provided - - - ${project.groupId} - blaze-persistence-core-api-jakarta - - - - - - - maven-antrun-plugin - - - transform-jar - package - - run - - - - - - - - - - - - - - - - - - - - - - transform-sources-jar - package - - run - - - - - - - - - - - - - - - - - - - - - - - - transform-javadoc - package - - run - - - - - - - - - - - - - - - - - - - - - - - - - unpack-classes - package - - - - - - - run - - - - - - org.eclipse.transformer - org.eclipse.transformer.cli - 0.5.0 - - - ant-contrib - ant-contrib - 1.0b3 - - - ant - ant - - - - - biz.aQute.bnd - biz.aQute.bnd.transform - ${version.bnd} - compile - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - attach-artifacts - package - - attach-artifact - - - - - ${project.build.directory}/${project.build.finalName}-sources.jar - sources - jar - - - - - - - - - - - blazebit-release - - - - org.codehaus.mojo - build-helper-maven-plugin - - - attach-artifacts - package - - attach-artifact - - - - - ${project.build.directory}/${project.build.finalName}-sources.jar - sources - jar - - - ${project.build.directory}/${project.build.finalName}-javadoc.jar - javadoc - jar - - - - - - - - - - - - diff --git a/entity-view/api-jar/pom.xml b/entity-view/api-jar/pom.xml deleted file mode 100644 index d2fbf1352f..0000000000 --- a/entity-view/api-jar/pom.xml +++ /dev/null @@ -1,121 +0,0 @@ - - - - - 4.0.0 - - - com.blazebit - blaze-persistence-entity-view - 1.6.15-SNAPSHOT - ../pom.xml - - - blaze-persistence-entity-view-api-jar - jar - - - com.blazebit.persistence.view - - - - - ${project.groupId} - blaze-persistence-core-api-jar - - - ${project.groupId} - blaze-persistence-entity-view-api - - - - - - - org.apache.maven.plugins - maven-shade-plugin - - - package - - shade - - - true - - - ${project.groupId}:blaze-persistence-entity-view-api - - META-INF/versions/** - module-info.class - - - - - - - - - - - - - blazebit-release - - - - maven-dependency-plugin - - - shade-javadoc - - copy - - - - - ${project.groupId} - blaze-persistence-entity-view-api - ${project.version} - jar - javadoc - true - ${project.build.directory} - ${project.artifactId}-${project.version}-javadoc.jar - - - - - - - - org.codehaus.mojo - build-helper-maven-plugin - - - attach-artifacts - package - - attach-artifact - - - - - ${project.build.directory}/${project.artifactId}-${project.version}-javadoc.jar - javadoc - jar - - - - - - - - - - - - diff --git a/entity-view/api/pom.xml b/entity-view/api/pom.xml index ac5bfd006d..27ca7e0bea 100644 --- a/entity-view/api/pom.xml +++ b/entity-view/api/pom.xml @@ -29,45 +29,21 @@ blaze-persistence-core-api - - org.apache.openejb - javaee-api + jakarta.persistence + jakarta.persistence-api + provided + + + jakarta.transaction + jakarta.transaction-api + provided + + + jakarta.enterprise + jakarta.enterprise.cdi-api provided - - - - org.moditect - moditect-maven-plugin - - - add-module-infos - package - - add-module-info - - - - - module ${module.name} { - requires transitive com.blazebit.persistence.core; - exports com.blazebit.persistence.view; - exports com.blazebit.persistence.view.change; - exports com.blazebit.persistence.view.filter; - exports com.blazebit.persistence.view.metamodel; - exports com.blazebit.persistence.view.spi; - exports com.blazebit.persistence.view.spi.type; - uses com.blazebit.persistence.view.spi.EntityViewConfigurationProvider; - } - - - - - - - - diff --git a/entity-view/api/src/main/java/com/blazebit/persistence/view/CorrelationBuilder.java b/entity-view/api/src/main/java/com/blazebit/persistence/view/CorrelationBuilder.java index 8f2855ace6..173d5ee265 100644 --- a/entity-view/api/src/main/java/com/blazebit/persistence/view/CorrelationBuilder.java +++ b/entity-view/api/src/main/java/com/blazebit/persistence/view/CorrelationBuilder.java @@ -9,7 +9,7 @@ import com.blazebit.persistence.FromProvider; import com.blazebit.persistence.JoinOnBuilder; -import javax.persistence.metamodel.EntityType; +import jakarta.persistence.metamodel.EntityType; /** * A builder for correlating a basis with an entity class. diff --git a/entity-view/api/src/main/java/com/blazebit/persistence/view/EntityViewManager.java b/entity-view/api/src/main/java/com/blazebit/persistence/view/EntityViewManager.java index 8edba18f16..38cf3bfcd8 100644 --- a/entity-view/api/src/main/java/com/blazebit/persistence/view/EntityViewManager.java +++ b/entity-view/api/src/main/java/com/blazebit/persistence/view/EntityViewManager.java @@ -12,7 +12,7 @@ import com.blazebit.persistence.view.change.SingularChangeModel; import com.blazebit.persistence.view.metamodel.ViewMetamodel; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import java.util.Map; /** diff --git a/entity-view/api/src/main/java/com/blazebit/persistence/view/LockMode.java b/entity-view/api/src/main/java/com/blazebit/persistence/view/LockMode.java index 037d27410d..707d6593bc 100644 --- a/entity-view/api/src/main/java/com/blazebit/persistence/view/LockMode.java +++ b/entity-view/api/src/main/java/com/blazebit/persistence/view/LockMode.java @@ -22,12 +22,12 @@ public enum LockMode { */ OPTIMISTIC, /** - * The pessimistic read locking mode will acquire a {@link javax.persistence.LockModeType#PESSIMISTIC_READ} for the entity when reading the entity view. + * The pessimistic read locking mode will acquire a {@link jakarta.persistence.LockModeType#PESSIMISTIC_READ} for the entity when reading the entity view. * This lock mode is only useful within the bounds of a single transaction as the lock is bound to it. */ PESSIMISTIC_READ, /** - * The pessimistic write locking mode will acquire a {@link javax.persistence.LockModeType#PESSIMISTIC_WRITE} for the entity when reading the entity view. + * The pessimistic write locking mode will acquire a {@link jakarta.persistence.LockModeType#PESSIMISTIC_WRITE} for the entity when reading the entity view. * This lock mode is only useful within the bounds of a single transaction as the lock is bound to it. */ PESSIMISTIC_WRITE, diff --git a/entity-view/api/src/main/java/com/blazebit/persistence/view/MappingInverse.java b/entity-view/api/src/main/java/com/blazebit/persistence/view/MappingInverse.java index fa5d2b0609..e3869eaa11 100644 --- a/entity-view/api/src/main/java/com/blazebit/persistence/view/MappingInverse.java +++ b/entity-view/api/src/main/java/com/blazebit/persistence/view/MappingInverse.java @@ -5,8 +5,8 @@ package com.blazebit.persistence.view; -import javax.persistence.OneToMany; -import javax.persistence.OneToOne; +import jakarta.persistence.OneToMany; +import jakarta.persistence.OneToOne; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/entity-view/api/src/main/java/com/blazebit/persistence/view/OptimisticLockException.java b/entity-view/api/src/main/java/com/blazebit/persistence/view/OptimisticLockException.java index ecf53cab6b..d5da6fed20 100644 --- a/entity-view/api/src/main/java/com/blazebit/persistence/view/OptimisticLockException.java +++ b/entity-view/api/src/main/java/com/blazebit/persistence/view/OptimisticLockException.java @@ -11,7 +11,7 @@ * @author Christian Beikov * @since 1.2.0 */ -public class OptimisticLockException extends javax.persistence.OptimisticLockException { +public class OptimisticLockException extends jakarta.persistence.OptimisticLockException { /** * The entity view object that caused the exception. diff --git a/entity-view/api/src/main/java/com/blazebit/persistence/view/PostCommit.java b/entity-view/api/src/main/java/com/blazebit/persistence/view/PostCommit.java index d55018c6ec..f39e5988e3 100644 --- a/entity-view/api/src/main/java/com/blazebit/persistence/view/PostCommit.java +++ b/entity-view/api/src/main/java/com/blazebit/persistence/view/PostCommit.java @@ -5,7 +5,7 @@ package com.blazebit.persistence.view; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/entity-view/api/src/main/java/com/blazebit/persistence/view/PostCommitListener.java b/entity-view/api/src/main/java/com/blazebit/persistence/view/PostCommitListener.java index 71b83bf7f0..56177d0404 100644 --- a/entity-view/api/src/main/java/com/blazebit/persistence/view/PostCommitListener.java +++ b/entity-view/api/src/main/java/com/blazebit/persistence/view/PostCommitListener.java @@ -5,7 +5,7 @@ package com.blazebit.persistence.view; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; /** * A listener for getting a callback after committing a flush for an entity view. diff --git a/entity-view/api/src/main/java/com/blazebit/persistence/view/PostPersist.java b/entity-view/api/src/main/java/com/blazebit/persistence/view/PostPersist.java index bfee40aae0..46d51329e8 100644 --- a/entity-view/api/src/main/java/com/blazebit/persistence/view/PostPersist.java +++ b/entity-view/api/src/main/java/com/blazebit/persistence/view/PostPersist.java @@ -5,7 +5,7 @@ package com.blazebit.persistence.view; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/entity-view/api/src/main/java/com/blazebit/persistence/view/PostPersistEntityListener.java b/entity-view/api/src/main/java/com/blazebit/persistence/view/PostPersistEntityListener.java index 3b2bc52010..1960aa3d03 100644 --- a/entity-view/api/src/main/java/com/blazebit/persistence/view/PostPersistEntityListener.java +++ b/entity-view/api/src/main/java/com/blazebit/persistence/view/PostPersistEntityListener.java @@ -5,7 +5,7 @@ package com.blazebit.persistence.view; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; /** * A listener for getting a callback after persisting a creatable view. diff --git a/entity-view/api/src/main/java/com/blazebit/persistence/view/PostPersistListener.java b/entity-view/api/src/main/java/com/blazebit/persistence/view/PostPersistListener.java index 271fb74b09..5b57cc4ed0 100644 --- a/entity-view/api/src/main/java/com/blazebit/persistence/view/PostPersistListener.java +++ b/entity-view/api/src/main/java/com/blazebit/persistence/view/PostPersistListener.java @@ -5,7 +5,7 @@ package com.blazebit.persistence.view; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; /** * A listener for getting a callback after persisting a creatable view. diff --git a/entity-view/api/src/main/java/com/blazebit/persistence/view/PostRemove.java b/entity-view/api/src/main/java/com/blazebit/persistence/view/PostRemove.java index c9d147970d..29fbaf6b7a 100644 --- a/entity-view/api/src/main/java/com/blazebit/persistence/view/PostRemove.java +++ b/entity-view/api/src/main/java/com/blazebit/persistence/view/PostRemove.java @@ -5,7 +5,7 @@ package com.blazebit.persistence.view; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/entity-view/api/src/main/java/com/blazebit/persistence/view/PostRemoveListener.java b/entity-view/api/src/main/java/com/blazebit/persistence/view/PostRemoveListener.java index f054e45a7a..7095b2076a 100644 --- a/entity-view/api/src/main/java/com/blazebit/persistence/view/PostRemoveListener.java +++ b/entity-view/api/src/main/java/com/blazebit/persistence/view/PostRemoveListener.java @@ -5,7 +5,7 @@ package com.blazebit.persistence.view; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; /** * A listener for getting a callback after a view is removed. diff --git a/entity-view/api/src/main/java/com/blazebit/persistence/view/PostRollback.java b/entity-view/api/src/main/java/com/blazebit/persistence/view/PostRollback.java index 84b26deb70..09478c786e 100644 --- a/entity-view/api/src/main/java/com/blazebit/persistence/view/PostRollback.java +++ b/entity-view/api/src/main/java/com/blazebit/persistence/view/PostRollback.java @@ -5,7 +5,7 @@ package com.blazebit.persistence.view; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/entity-view/api/src/main/java/com/blazebit/persistence/view/PostRollbackListener.java b/entity-view/api/src/main/java/com/blazebit/persistence/view/PostRollbackListener.java index 5c28186c5a..496e3b7738 100644 --- a/entity-view/api/src/main/java/com/blazebit/persistence/view/PostRollbackListener.java +++ b/entity-view/api/src/main/java/com/blazebit/persistence/view/PostRollbackListener.java @@ -5,7 +5,7 @@ package com.blazebit.persistence.view; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; /** * A listener for getting a callback after rolling back a flush for an entity view. diff --git a/entity-view/api/src/main/java/com/blazebit/persistence/view/PostUpdate.java b/entity-view/api/src/main/java/com/blazebit/persistence/view/PostUpdate.java index 9c66d13d0f..734df978f5 100644 --- a/entity-view/api/src/main/java/com/blazebit/persistence/view/PostUpdate.java +++ b/entity-view/api/src/main/java/com/blazebit/persistence/view/PostUpdate.java @@ -5,7 +5,7 @@ package com.blazebit.persistence.view; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; diff --git a/entity-view/api/src/main/java/com/blazebit/persistence/view/PostUpdateListener.java b/entity-view/api/src/main/java/com/blazebit/persistence/view/PostUpdateListener.java index 78741e4944..0ae1552e31 100644 --- a/entity-view/api/src/main/java/com/blazebit/persistence/view/PostUpdateListener.java +++ b/entity-view/api/src/main/java/com/blazebit/persistence/view/PostUpdateListener.java @@ -5,7 +5,7 @@ package com.blazebit.persistence.view; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; /** * A listener for getting a callback after updating an updatable view. diff --git a/entity-view/api/src/main/java/com/blazebit/persistence/view/PrePersist.java b/entity-view/api/src/main/java/com/blazebit/persistence/view/PrePersist.java index c1a63db93b..8b2168c3e3 100644 --- a/entity-view/api/src/main/java/com/blazebit/persistence/view/PrePersist.java +++ b/entity-view/api/src/main/java/com/blazebit/persistence/view/PrePersist.java @@ -5,14 +5,14 @@ package com.blazebit.persistence.view; -import javax.persistence.EntityManager; +import jakarta.persistence.EntityManager; import java.lang.annotation.ElementType; import java.lang.annotation.Retention; import java.lang.annotation.RetentionPolicy; import java.lang.annotation.Target; /** - * Annotation to mark a method to be executed before a call to {@link javax.persistence.EntityManager#persist(Object)} when flushing + * Annotation to mark a method to be executed before a call to {@link jakarta.persistence.EntityManager#persist(Object)} when flushing * the creatable entity view containing this method via {@link EntityViewManager#save(EntityManager, Object)}. * A method annotated with @PrePersist may optionally have the following parameters *