[hibernate/hibernate-orm] 3e6fcd: unify new ValueGenerationStrategy interfaces with ...
by Gavin King
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 3e6fcdeda3a8d04f249e4bbe0c12cbda29c0d8e3
https://github.com/hibernate/hibernate-orm/commit/3e6fcdeda3a8d04f249e4bb...
Author: Gavin <gavin(a)hibernate.org>
Date: 2022-11-29 (Tue, 29 Nov 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/cfg/annotations/PropertyBinder.java
M hibernate-core/src/main/java/org/hibernate/mapping/Property.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/AttributeMapping.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/GeneratedValueResolver.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/AbstractSingularAttributeMapping.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/BasicAttributeMapping.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/EmbeddedAttributeMapping.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/MappingModelCreationHelper.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/VirtualEmbeddedAttributeMapping.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/mutation/AbstractMutationCoordinator.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/mutation/InsertCoordinator.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/mutation/UpdateCoordinatorStandard.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/spi/SqlExpressionResolver.java
A hibernate-core/src/main/java/org/hibernate/sql/model/ast/builder/ColumnValuesTableMutationBuilder.java
M hibernate-core/src/main/java/org/hibernate/sql/model/ast/builder/RestrictedTableMutationBuilder.java
M hibernate-core/src/main/java/org/hibernate/sql/model/ast/builder/TableDeleteBuilder.java
M hibernate-core/src/main/java/org/hibernate/sql/model/ast/builder/TableInsertBuilder.java
M hibernate-core/src/main/java/org/hibernate/sql/model/ast/builder/TableUpdateBuilder.java
M hibernate-core/src/main/java/org/hibernate/tuple/AbstractNonIdentifierAttribute.java
M hibernate-core/src/main/java/org/hibernate/tuple/BaselineAttributeInformation.java
M hibernate-core/src/main/java/org/hibernate/tuple/InDatabaseValueGenerationStrategy.java
M hibernate-core/src/main/java/org/hibernate/tuple/InMemoryValueGenerationStrategy.java
M hibernate-core/src/main/java/org/hibernate/tuple/NonIdentifierAttribute.java
M hibernate-core/src/main/java/org/hibernate/tuple/PropertyFactory.java
M hibernate-core/src/main/java/org/hibernate/tuple/StandardProperty.java
M hibernate-core/src/main/java/org/hibernate/tuple/ValueGeneration.java
A hibernate-core/src/main/java/org/hibernate/tuple/ValueGenerationStrategy.java
M hibernate-core/src/main/java/org/hibernate/tuple/entity/EntityMetamodel.java
M hibernate-core/src/main/java/org/hibernate/type/ComponentType.java
M hibernate-envers/src/main/java/org/hibernate/envers/configuration/internal/metadata/AuditMetadataGenerator.java
Log Message:
-----------
unify new ValueGenerationStrategy interfaces with existing ValueGeneration stuff
- introduce ValueGenerationStrategy to abstract over IMVGS and IDVGS
- make ValueGeneration a mixin of IMVGS with IDVGS
- make IDVGS accept a Dialect for SQL fragment generation
(it was based on an obsolete version of ValueGeneration)
- adapt all the code which only handled single-column value generation
to handle multiple columns, as introduced by IDVGS
Still to do: the whole AnnotationValueGeneration stuff still requires the use
of the mixin interface, and you can't use IMVGS or IDVGS directly. That bit is
going to require a bit more thinking about backward compatibility.
2 years
[hibernate/hibernate-orm] 94e2b5: HHH-15393 - Improve write-paths to use mapping model
by Steve Ebersole
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 94e2b599e4b3dfba843b63e68ca154bbd0e3635e
https://github.com/hibernate/hibernate-orm/commit/94e2b599e4b3dfba843b63e...
Author: Steve Ebersole <steve(a)hibernate.org>
Date: 2022-11-29 (Tue, 29 Nov 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/mutation/internal/MutationExecutorPostInsert.java
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/mutation/internal/MutationExecutorServiceInitiator.java
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/mutation/internal/MutationExecutorStandard.java
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/mutation/internal/PreparedStatementDetailsStandard.java
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/mutation/internal/StandardMutationExecutorService.java
M hibernate-core/src/main/java/org/hibernate/engine/jdbc/mutation/package-info.java
M hibernate-core/src/main/java/org/hibernate/persister/collection/mutation/package-info.java
A hibernate-core/src/main/java/org/hibernate/persister/entity/mutation/package-info.java
M hibernate-core/src/main/java/org/hibernate/sql/model/MutationOperation.java
Log Message:
-----------
HHH-15393 - Improve write-paths to use mapping model
2 years
[hibernate/hibernate-orm] 9ccb71: HHH-15393 - Improve write-paths to use mapping model
by Steve Ebersole
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 9ccb71847bb2312532c1acbbda80934dab6ac53b
https://github.com/hibernate/hibernate-orm/commit/9ccb71847bb2312532c1acb...
Author: Steve Ebersole <steve(a)hibernate.org>
Date: 2022-11-29 (Tue, 29 Nov 2022)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQLSqlAstTranslator.java
M hibernate-core/src/main/java/org/hibernate/persister/collection/mutation/UpdateRowsCoordinatorOneToMany.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/AbstractEntityPersister.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/mutation/DeleteCoordinator.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/mutation/InsertCoordinator.java
M hibernate-core/src/main/java/org/hibernate/sql/ast/spi/AbstractSqlAstTranslator.java
M hibernate-core/src/main/java/org/hibernate/sql/model/ast/builder/TableUpdateBuilderSkipped.java
Log Message:
-----------
HHH-15393 - Improve write-paths to use mapping model
2 years
[hibernate/hibernate-orm] 2b8b33: Fix Oracle rowid and sybase value generation issues
by Christian Beikov
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 2b8b33e69424db5ad244aa41f8ab32574ccbe149
https://github.com/hibernate/hibernate-orm/commit/2b8b33e69424db5ad244aa4...
Author: Christian Beikov <christian.beikov(a)gmail.com>
Date: 2022-11-29 (Tue, 29 Nov 2022)
Changed paths:
M documentation/src/test/java/org/hibernate/userguide/locking/VersionSourceTest.java
M hibernate-core/src/main/java/org/hibernate/metamodel/mapping/internal/EntityRowIdMappingImpl.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/mutation/InsertCoordinator.java
M hibernate-core/src/main/java/org/hibernate/persister/entity/mutation/UpdateCoordinatorStandard.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/CurrentTimestampAnnotationTests.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/InDbGenerationsWithAnnotationsTests.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/temporals/GeneratedInstantTests.java
Log Message:
-----------
Fix Oracle rowid and sybase value generation issues
2 years