[hibernate/hibernate-orm] 3ecdd8: HHH-10398 Allow MOD column naming to be driven by ...
by Chris Cranford
Branch: refs/heads/master
Home: https://github.com/hibernate/hibernate-orm
Commit: 3ecdd860a376f7bfb4250b10329bbeb25b045e2e
https://github.com/hibernate/hibernate-orm/commit/3ecdd860a376f7bfb4250b1...
Author: Chris Cranford <chris(a)hibernate.org>
Date: 2019-10-01 (Tue, 01 Oct 2019)
Changed paths:
M documentation/src/main/asciidoc/userguide/chapters/envers/Envers.adoc
A hibernate-envers/src/main/java/org/hibernate/envers/boot/internal/ImprovedModifiedColumnNamingStrategy.java
A hibernate-envers/src/main/java/org/hibernate/envers/boot/internal/LegacyModifiedColumnNamingStrategy.java
A hibernate-envers/src/main/java/org/hibernate/envers/boot/internal/ModifiedColumnNamingStrategyRegistrationProvider.java
A hibernate-envers/src/main/java/org/hibernate/envers/boot/spi/ModifiedColumnNamingStrategy.java
M hibernate-envers/src/main/java/org/hibernate/envers/configuration/EnversSettings.java
M hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/GlobalConfiguration.java
M hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/AuditMetadataGenerator.java
M hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/MetadataTools.java
M hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/AuditedPropertiesReader.java
M hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/ComponentAuditedPropertiesReader.java
M hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/reader/PropertyAuditingData.java
A hibernate-envers/src/main/resources/META-INF/services/org.hibernate.boot.registry.selector.StrategyRegistrationProvider
A hibernate-envers/src/test/java/org/hibernate/envers/test/integration/modifiedflags/naming/ImprovedColumnNamingStrategyTest.java
A hibernate-envers/src/test/java/org/hibernate/envers/test/integration/modifiedflags/naming/LegacyColumnNamingStrategyTest.java
A hibernate-envers/src/test/java/org/hibernate/envers/test/integration/modifiedflags/naming/OtherEntity.java
A hibernate-envers/src/test/java/org/hibernate/envers/test/integration/modifiedflags/naming/OtherEntityId.java
A hibernate-envers/src/test/java/org/hibernate/envers/test/integration/modifiedflags/naming/SingleIdEntity.java
A hibernate-envers/src/test/java/org/hibernate/envers/test/integration/modifiedflags/naming/TestEmbeddable.java
A hibernate-envers/src/test/java/org/hibernate/envers/test/integration/modifiedflags/naming/TestEntity.java
Log Message:
-----------
HHH-10398 Allow MOD column naming to be driven by a strategy
In the past the MOD columns were constructed based on the property name,
therefore if users specified a @Column/@JoinColumn like annotation and
changed the underlying schema column, the MOD column would continue to
be derived based on the property name.
This enhancement introduces a new ModifiedColumnNamingStrategy SPI that
comes with two implementations, a default/legacy mode that maintains
the prior naming model and an improved mode that will derive the MOD
name based on the naming strategy ORM used to derive the column name.
Commit: f78877a607f478841df9b9b462655501735384fa
https://github.com/hibernate/hibernate-orm/commit/f78877a607f478841df9b9b...
Author: Chris Cranford <chris(a)hibernate.org>
Date: 2019-10-01 (Tue, 01 Oct 2019)
Changed paths:
M hibernate-envers/src/main/resources/META-INF/services/org.hibernate.boot.registry.selector.StrategyRegistrationProvider
M hibernate-envers/src/main/resources/OSGI-INF/blueprint/blueprint.xml
Log Message:
-----------
HHH-10398 Allow MOD column naming to be driven by a strategy
* Fixes OSGI integration with missing service lookup registration
Commit: b606759e61cfaf128c500d889ec743f50f10ad98
https://github.com/hibernate/hibernate-orm/commit/b606759e61cfaf128c500d8...
Author: Chris Cranford <chris(a)hibernate.org>
Date: 2019-10-01 (Tue, 01 Oct 2019)
Changed paths:
M hibernate-envers/src/main/java/org/hibernate/envers/boot/internal/ImprovedModifiedColumnNamingStrategy.java
M hibernate-envers/src/main/java/org/hibernate/envers/boot/internal/LegacyModifiedColumnNamingStrategy.java
M hibernate-envers/src/main/java/org/hibernate/envers/boot/spi/ModifiedColumnNamingStrategy.java
M hibernate-envers/src/main/java/org/hibernate/envers/configuration/EnversSettings.java
Log Message:
-----------
HHH-10398 Allow MOD column naming to be driven by a strategy
* Fixed javadoc comments
* Various code suggested code changes from review
Compare: https://github.com/hibernate/hibernate-orm/compare/0084f82b1aac...b606759...
5 years, 1 month