[hibernate/hibernate-orm] 41c71b: HHH-13779 (5.4) - Foreign key schema migrator shou...
by Emmanuel Duchastenier
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 41c71bfed7d8eb74bd0574ed7bd2552d055dcf46
https://github.com/hibernate/hibernate-orm/commit/41c71bfed7d8eb74bd0574e...
Author: Emmanuel Duchastenier <emmanuel.duchastenier(a)bonitasoft.com>
Date: 2021-04-30 (Fri, 30 Apr 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/tool/schema/internal/AbstractSchemaMigrator.java
A hibernate-core/src/test/java/org/hibernate/tool/schema/internal/AbstractSchemaMigratorTest.java
Log Message:
-----------
HHH-13779 (5.4) - Foreign key schema migrator should be case-insensitive
This avoids re-creating existing foreign keys with a different name,
after migrating from Hibernate 4 to Hibernate 5 (as implicit naming
convention has changed).
Actually, some RDBMS allow it (PostgreSQL, MySQL, MS SQL Server, ...)
and duplicate the same key, whereas others (Oracle, ...) do not
allow it and Schema update fails.
This fix ignores the case of the table and column name when checking
if a equivalent Foreign Key already exists (whatever its name)
Closes https://hibernate.atlassian.net/browse/HHH-13779
(cherry picked from commit 0b819863f2cee41c7067d7e3656356f0b1221ef1)
3 years, 7 months
[hibernate/hibernate-orm] 14b35b: HHH-14273 Support for jakarta.persistence prefixed...
by Christian Beikov
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 14b35bb3b6b6e66b9aa52da4439afebee2b7475a
https://github.com/hibernate/hibernate-orm/commit/14b35bb3b6b6e66b9aa52da...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2021-04-30 (Fri, 30 Apr 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/annotations/QueryHints.java
M hibernate-core/src/main/java/org/hibernate/boot/internal/ClassLoaderAccessImpl.java
M hibernate-core/src/main/java/org/hibernate/boot/internal/MetadataBuilderImpl.java
M hibernate-core/src/main/java/org/hibernate/boot/internal/SessionFactoryOptionsBuilder.java
M hibernate-core/src/main/java/org/hibernate/cfg/AvailableSettings.java
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/QueryHintDefinition.java
M hibernate-core/src/main/java/org/hibernate/engine/spi/EffectiveEntityGraph.java
M hibernate-core/src/main/java/org/hibernate/graph/GraphSemantic.java
M hibernate-core/src/main/java/org/hibernate/internal/FastSessionServices.java
M hibernate-core/src/main/java/org/hibernate/internal/SessionFactoryImpl.java
M hibernate-core/src/main/java/org/hibernate/internal/SessionImpl.java
M hibernate-core/src/main/java/org/hibernate/jpa/QueryHints.java
M hibernate-core/src/main/java/org/hibernate/jpa/boot/internal/EntityManagerFactoryBuilderImpl.java
M hibernate-core/src/main/java/org/hibernate/jpa/boot/internal/PersistenceXmlParser.java
M hibernate-core/src/main/java/org/hibernate/jpa/boot/spi/Bootstrap.java
M hibernate-core/src/main/java/org/hibernate/jpa/boot/spi/ProviderChecker.java
M hibernate-core/src/main/java/org/hibernate/jpa/internal/util/LockOptionsHelper.java
M hibernate-core/src/main/java/org/hibernate/query/internal/AbstractProducedQuery.java
M hibernate-core/src/main/java/org/hibernate/resource/beans/spi/ManagedBeanRegistryInitiator.java
M hibernate-core/src/main/java/org/hibernate/tool/schema/internal/Helper.java
M hibernate-core/src/main/java/org/hibernate/tool/schema/internal/HibernateSchemaManagementTool.java
M hibernate-core/src/main/java/org/hibernate/tool/schema/internal/SchemaCreatorImpl.java
M hibernate-core/src/main/java/org/hibernate/tool/schema/spi/SchemaManagementToolCoordinator.java
Log Message:
-----------
HHH-14273 Support for jakarta.persistence prefixed String properties
Commit: eb8b8620d7eee974b37ee421eb8044f4e818c5ff
https://github.com/hibernate/hibernate-orm/commit/eb8b8620d7eee974b37ee42...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2021-04-30 (Fri, 30 Apr 2021)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/cfg/beanvalidation/BeanValidationIntegrator.java
M hibernate-core/src/main/java/org/hibernate/cfg/beanvalidation/GroupsPerOperation.java
M hibernate-core/src/main/java/org/hibernate/cfg/beanvalidation/TypeSafeActivator.java
M hibernate-core/src/main/java/org/hibernate/resource/beans/spi/ManagedBeanRegistryInitiator.java
Log Message:
-----------
HHH-14274 Support for jakarta prefixed String properties for integrations
Commit: ff9e9eebc9992c7bc9128e9bf33d4b51b2bee7a4
https://github.com/hibernate/hibernate-orm/commit/ff9e9eebc9992c7bc9128e9...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2021-04-30 (Fri, 30 Apr 2021)
Changed paths:
M build.gradle
M gradle/libraries.gradle
A hibernate-core-jakarta/hibernate-core-jakarta.gradle
M hibernate-core/hibernate-core.gradle
R hibernate-core/src/test/bundles/cfgxmlpar/META-INF/persistence.xml
R hibernate-core/src/test/bundles/cfgxmlpar/org/hibernate/jpa/test/pack/cfgxmlpar/hibernate.cfg.xml
R hibernate-core/src/test/bundles/defaultpar/META-INF/orm.xml
R hibernate-core/src/test/bundles/defaultpar/META-INF/persistence.xml
R hibernate-core/src/test/bundles/defaultpar/org/hibernate/jpa/test/pack/defaultpar/Mouse.hbm.xml
R hibernate-core/src/test/bundles/defaultpar_1_0/META-INF/orm.xml
R hibernate-core/src/test/bundles/defaultpar_1_0/META-INF/persistence.xml
R hibernate-core/src/test/bundles/defaultpar_1_0/org/hibernate/jpa/test/pack/defaultpar_1_0/Mouse1.hbm.xml
R hibernate-core/src/test/bundles/excludehbmpar/META-INF/orm2.xml
R hibernate-core/src/test/bundles/excludehbmpar/META-INF/persistence.xml
R hibernate-core/src/test/bundles/excludehbmpar/org/hibernate/jpa/test/pack/excludehbmpar/Mouse.hbm.xml
R hibernate-core/src/test/bundles/explicitpar/META-INF/orm.xml
R hibernate-core/src/test/bundles/explicitpar/META-INF/persistence.xml
R hibernate-core/src/test/bundles/explicitpar2/META-INF/orm.xml
R hibernate-core/src/test/bundles/explicitpar2/META-INF/persistence.xml
R hibernate-core/src/test/bundles/explodedpar/META-INF/persistence.xml
R hibernate-core/src/test/bundles/explodedpar/org/hibernate/jpa/test/pack/explodedpar/Elephant.hbm.xml
R hibernate-core/src/test/bundles/externaljar/META-INF/orm.xml
R hibernate-core/src/test/bundles/overridenpar/META-INF/persistence.xml
R hibernate-core/src/test/bundles/overridenpar/overridenpar.properties
R hibernate-core/src/test/bundles/space par/META-INF/persistence.xml
A hibernate-core/src/test/bundles/templates/cfgxmlpar/META-INF/persistence.xml
A hibernate-core/src/test/bundles/templates/cfgxmlpar/org/hibernate/jpa/test/pack/cfgxmlpar/hibernate.cfg.xml
A hibernate-core/src/test/bundles/templates/defaultpar/META-INF/orm.xml
A hibernate-core/src/test/bundles/templates/defaultpar/META-INF/persistence.xml
A hibernate-core/src/test/bundles/templates/defaultpar/org/hibernate/jpa/test/pack/defaultpar/Mouse.hbm.xml
A hibernate-core/src/test/bundles/templates/defaultpar_1_0/META-INF/orm.xml
A hibernate-core/src/test/bundles/templates/defaultpar_1_0/META-INF/persistence.xml
A hibernate-core/src/test/bundles/templates/defaultpar_1_0/org/hibernate/jpa/test/pack/defaultpar_1_0/Mouse1.hbm.xml
A hibernate-core/src/test/bundles/templates/excludehbmpar/META-INF/orm2.xml
A hibernate-core/src/test/bundles/templates/excludehbmpar/META-INF/persistence.xml
A hibernate-core/src/test/bundles/templates/excludehbmpar/org/hibernate/jpa/test/pack/excludehbmpar/Mouse.hbm.xml
A hibernate-core/src/test/bundles/templates/explicitpar/META-INF/orm.xml
A hibernate-core/src/test/bundles/templates/explicitpar/META-INF/persistence.xml
A hibernate-core/src/test/bundles/templates/explicitpar2/META-INF/orm.xml
A hibernate-core/src/test/bundles/templates/explicitpar2/META-INF/persistence.xml
A hibernate-core/src/test/bundles/templates/explodedpar/META-INF/persistence.xml
A hibernate-core/src/test/bundles/templates/explodedpar/org/hibernate/jpa/test/pack/explodedpar/Elephant.hbm.xml
A hibernate-core/src/test/bundles/templates/externaljar/META-INF/orm.xml
A hibernate-core/src/test/bundles/templates/overridenpar/META-INF/persistence.xml
A hibernate-core/src/test/bundles/templates/overridenpar/overridenpar.properties
A hibernate-core/src/test/bundles/templates/space par/META-INF/persistence.xml
A hibernate-core/src/test/bundles/templates/war/WEB-INF/classes/META-INF/orm.xml
A hibernate-core/src/test/bundles/templates/war/WEB-INF/classes/META-INF/persistence.xml
A hibernate-core/src/test/bundles/templates/war/WEB-INF/classes/org/hibernate/jpa/test/pack/war/Mouse.hbm.xml
R hibernate-core/src/test/bundles/war/WEB-INF/classes/META-INF/orm.xml
R hibernate-core/src/test/bundles/war/WEB-INF/classes/META-INF/persistence.xml
R hibernate-core/src/test/bundles/war/WEB-INF/classes/org/hibernate/jpa/test/pack/war/Mouse.hbm.xml
A hibernate-envers-jakarta/hibernate-envers-jakarta.gradle
M hibernate-envers/hibernate-envers.gradle
A hibernate-jboss-jta/hibernate-jboss-jta.gradle
A hibernate-testing-jakarta/hibernate-testing-jakarta.gradle
M hibernate-testing/hibernate-testing.gradle
A hibernate-transaction-client/hibernate-transaction-client.gradle
A hibernate-transaction-spi/hibernate-transaction-spi.gradle
A rules/jakarta-direct-modelgen.properties
A rules/jakarta-direct.properties
A rules/jakarta-renames.properties
A rules/jakarta-versions.properties
M settings.gradle
A tooling/metamodel-generator-jakarta/hibernate-jpamodelgen-jakarta.gradle
M tooling/metamodel-generator/src/main/java/org/hibernate/jpamodelgen/ClassWriter.java
M tooling/metamodel-generator/src/main/java/org/hibernate/jpamodelgen/Context.java
Log Message:
-----------
HHH-13946 Create Jakarta artifacts for hibernate-core, hibernate-envers, hibernate-jpamodelgen and hibernate-testing
Commit: c29b2d27ee66b0da2af2a640b5c2179c6454a983
https://github.com/hibernate/hibernate-orm/commit/c29b2d27ee66b0da2af2a64...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2021-04-30 (Fri, 30 Apr 2021)
Changed paths:
A ci/jpa-2.2-tck.Jenkinsfile
A ci/jpa-3.0-tck.Jenkinsfile
M gradle/libraries.gradle
M hibernate-core-jakarta/hibernate-core-jakarta.gradle
M hibernate-envers-jakarta/hibernate-envers-jakarta.gradle
M hibernate-jboss-jta/hibernate-jboss-jta.gradle
M hibernate-testing-jakarta/hibernate-testing-jakarta.gradle
M hibernate-transaction-client/hibernate-transaction-client.gradle
R hibernate-transaction-spi/hibernate-transaction-spi.gradle
M settings.gradle
Log Message:
-----------
HHH-14577 Add Jenkinsfiles for running TCKs
Compare: https://github.com/hibernate/hibernate-orm/compare/cd97e59d2174...c29b2d2...
3 years, 7 months