[hibernate/hibernate-orm] 1bc512: HHH-20692 Propagate Jakarta Annotations security a...
by Yoann Rodière
Branch: refs/heads/8.0
Home: https://github.com/hibernate/hibernate-orm
Commit: 1bc512c9f3d185bdecff43c5f8166c36849b2b91
https://github.com/hibernate/hibernate-orm/commit/1bc512c9f3d185bdecff43c...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2026-07-23 (Thu, 23 Jul 2026)
Changed paths:
M documentation/src/main/asciidoc/repositories/Configuration.adoc
M migration-guide.adoc
A tooling/metamodel-generator/src/jakartaData/java/org/hibernate/processor/test/data/securityannotation/SecuredBook.java
A tooling/metamodel-generator/src/jakartaData/java/org/hibernate/processor/test/data/securityannotation/SecuredBookRepository.java
A tooling/metamodel-generator/src/jakartaData/java/org/hibernate/processor/test/data/securityannotation/SecurityAnnotationTest.java
M tooling/metamodel-generator/src/main/java/org/hibernate/processor/ClassWriter.java
M tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AbstractAnnotatedMethod.java
M tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMetaEntity.java
M tooling/metamodel-generator/src/main/java/org/hibernate/processor/util/TypeUtils.java
M whats-new.adoc
Log Message:
-----------
HHH-20692 Propagate Jakarta Annotations security annotations on repository interfaces to implementations
The annotation processor now copies security annotations from the
jakarta.annotation.security package (@DenyAll, @PermitAll, @RolesAllowed)
from repository interfaces to generated implementations, alongside the
existing @InterceptorBinding propagation.
Also fixes ClassWriter to properly quote String annotation values
(e.g. @RolesAllowed role names) in generated source.
See: https://github.com/jakartaee/data/issues/1293
Assisted-By: Claude Code <noreply(a)anthropic.com>
Commit: 40bd536db77d016bd45907122c52a782642ef9eb
https://github.com/hibernate/hibernate-orm/commit/40bd536db77d016bd459071...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2026-07-23 (Thu, 23 Jul 2026)
Changed paths:
M documentation/src/main/asciidoc/repositories/Configuration.adoc
M migration-guide.adoc
M tooling/metamodel-generator/src/jakartaData/java/org/hibernate/processor/test/data/securityannotation/SecuredBookRepository.java
M tooling/metamodel-generator/src/jakartaData/java/org/hibernate/processor/test/data/securityannotation/SecurityAnnotationTest.java
M tooling/metamodel-generator/src/main/java/org/hibernate/processor/util/TypeUtils.java
M whats-new.adoc
Log Message:
-----------
HHH-20692 Support all jakarta.annotation.security annotations on repository interfaces
Include @DeclareRoles and @RunAs alongside @DenyAll, @PermitAll, and
@RolesAllowed. The processor now copies all five security annotations
from repository interfaces to generated implementations.
See: https://github.com/jakartaee/data/issues/1293
Assisted-By: Claude Code <noreply(a)anthropic.com>
Commit: d34e11933764631764811945933a842d03399bbf
https://github.com/hibernate/hibernate-orm/commit/d34e1193376463176481194...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2026-07-23 (Thu, 23 Jul 2026)
Changed paths:
M documentation/src/main/asciidoc/repositories/Configuration.adoc
M tooling/metamodel-generator/src/jakartaData/java/org/hibernate/processor/test/data/securityannotation/SecurityAnnotationTest.java
M tooling/metamodel-generator/src/main/java/org/hibernate/processor/Context.java
M tooling/metamodel-generator/src/main/java/org/hibernate/processor/HibernateProcessor.java
M tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AbstractAnnotatedMethod.java
M tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMetaEntity.java
M tooling/metamodel-generator/src/main/java/org/hibernate/processor/util/TypeUtils.java
M whats-new.adoc
Log Message:
-----------
HHH-20692 Acknowledge security annotations support in repositories is Hibernate ORM specific
Adapt language in documentation.
Add suppressJakartaDataSecurityAnnotations processor option to allow
disabling propagation of jakarta.annotation.security annotations from
repository interfaces to generated implementations.
Assisted-By: Claude Code <noreply(a)anthropic.com>
Compare: https://github.com/hibernate/hibernate-orm/compare/8fd9b230fc64...d34e119...
To unsubscribe from these emails, change your notification settings at https://github.com/hibernate/hibernate-orm/settings/notifications
1 month, 1 week
[hibernate/hibernate-orm] aa67a4: HHH-20692 Propagate Jakarta Annotations security a...
by Yoann Rodière
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: aa67a491441a2b65018dbea4cdb65409e7f7e888
https://github.com/hibernate/hibernate-orm/commit/aa67a491441a2b65018dbea...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2026-07-23 (Thu, 23 Jul 2026)
Changed paths:
M documentation/src/main/asciidoc/repositories/Configuration.adoc
A tooling/metamodel-generator/src/jakartaData/java/org/hibernate/processor/test/data/securityannotation/SecuredBook.java
A tooling/metamodel-generator/src/jakartaData/java/org/hibernate/processor/test/data/securityannotation/SecuredBookRepository.java
A tooling/metamodel-generator/src/jakartaData/java/org/hibernate/processor/test/data/securityannotation/SecurityAnnotationTest.java
M tooling/metamodel-generator/src/main/java/org/hibernate/processor/ClassWriter.java
M tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AbstractAnnotatedMethod.java
M tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMetaEntity.java
M tooling/metamodel-generator/src/main/java/org/hibernate/processor/util/TypeUtils.java
Log Message:
-----------
HHH-20692 Propagate Jakarta Annotations security annotations on repository interfaces to implementations
The annotation processor now copies security annotations from the
jakarta.annotation.security package (@DenyAll, @PermitAll, @RolesAllowed)
from repository interfaces to generated implementations, alongside the
existing @InterceptorBinding propagation.
Also fixes ClassWriter to properly quote String annotation values
(e.g. @RolesAllowed role names) in generated source.
See: https://github.com/jakartaee/data/issues/1293
Assisted-By: Claude Code <noreply(a)anthropic.com>
Commit: b9ad807ee25d6d2a819da98c491c514c0e844677
https://github.com/hibernate/hibernate-orm/commit/b9ad807ee25d6d2a819da98...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2026-07-23 (Thu, 23 Jul 2026)
Changed paths:
M documentation/src/main/asciidoc/repositories/Configuration.adoc
M tooling/metamodel-generator/src/jakartaData/java/org/hibernate/processor/test/data/securityannotation/SecuredBookRepository.java
M tooling/metamodel-generator/src/jakartaData/java/org/hibernate/processor/test/data/securityannotation/SecurityAnnotationTest.java
M tooling/metamodel-generator/src/main/java/org/hibernate/processor/util/TypeUtils.java
Log Message:
-----------
HHH-20692 Support all jakarta.annotation.security annotations on repository interfaces
Include @DeclareRoles and @RunAs alongside @DenyAll, @PermitAll, and
@RolesAllowed. The processor now copies all five security annotations
from repository interfaces to generated implementations.
See: https://github.com/jakartaee/data/issues/1293
Assisted-By: Claude Code <noreply(a)anthropic.com>
Commit: 2d52f0bbffd312fe4441da8915f5c23de3953373
https://github.com/hibernate/hibernate-orm/commit/2d52f0bbffd312fe4441da8...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2026-07-23 (Thu, 23 Jul 2026)
Changed paths:
M documentation/src/main/asciidoc/repositories/Configuration.adoc
M tooling/metamodel-generator/src/jakartaData/java/org/hibernate/processor/test/data/securityannotation/SecurityAnnotationTest.java
M tooling/metamodel-generator/src/main/java/org/hibernate/processor/Context.java
M tooling/metamodel-generator/src/main/java/org/hibernate/processor/HibernateProcessor.java
M tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AbstractAnnotatedMethod.java
M tooling/metamodel-generator/src/main/java/org/hibernate/processor/annotation/AnnotationMetaEntity.java
M tooling/metamodel-generator/src/main/java/org/hibernate/processor/util/TypeUtils.java
Log Message:
-----------
HHH-20692 Acknowledge security annotations support in repositories is Hibernate ORM specific
Adapt language in documentation.
Add suppressJakartaDataSecurityAnnotations processor option to allow
disabling propagation of jakarta.annotation.security annotations from
repository interfaces to generated implementations.
Assisted-By: Claude Code <noreply(a)anthropic.com>
Compare: https://github.com/hibernate/hibernate-orm/compare/c634cba783b6...2d52f0b...
To unsubscribe from these emails, change your notification settings at https://github.com/hibernate/hibernate-orm/settings/notifications
1 month, 1 week
[hibernate/hibernate-orm] 69bc92: HHH-20708 Add reproducer test for DROP SCHEMA IF E...
by Yoann Rodière
Branch: refs/heads/main
Home: https://github.com/hibernate/hibernate-orm
Commit: 69bc92927c7b01bffb1b88643e54f7d16a6fbe75
https://github.com/hibernate/hibernate-orm/commit/69bc92927c7b01bffb1b886...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2026-07-23 (Thu, 23 Jul 2026)
Changed paths:
A hibernate-core/src/test/java/org/hibernate/orm/test/schema/SchemaDropIfExistsTest.java
M hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
Log Message:
-----------
HHH-20708 Add reproducer test for DROP SCHEMA IF EXISTS / CREATE SCHEMA IF NOT EXISTS
Assisted-By: Claude Code <noreply(a)anthropic.com>
Commit: 495ae9c1a578ef6a1c53f41d98b407b4994489b3
https://github.com/hibernate/hibernate-orm/commit/495ae9c1a578ef6a1c53f41...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2026-07-23 (Thu, 23 Jul 2026)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/dialect/CockroachDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/H2Dialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/HANADialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/HSQLDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQLDialect.java
Log Message:
-----------
HHH-20708 Use IF EXISTS / IF NOT EXISTS in schema DDL for dialects that support it
Assisted-By: Claude Code <noreply(a)anthropic.com>
Commit: de9ede23869b6951b64675902c73b23de9468d29
https://github.com/hibernate/hibernate-orm/commit/de9ede23869b6951b646759...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2026-07-23 (Thu, 23 Jul 2026)
Changed paths:
M hibernate-core/src/main/java/org/hibernate/dialect/CockroachDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/Dialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/H2Dialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/HANADialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/HSQLDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/PostgreSQLDialect.java
M hibernate-core/src/main/java/org/hibernate/dialect/SQLServerDialect.java
M hibernate-testing/src/main/java/org/hibernate/testing/orm/junit/DialectFeatureChecks.java
Log Message:
-----------
HHH-20708 Move schema IF EXISTS / IF NOT EXISTS logic to Dialect superclass
Refactor: instead of each dialect overriding getCreateSchemaCommand() and
getDropSchemaCommand(), introduce supportsSchemaIfNotExists() and
supportsSchemaIfExists() boolean methods in Dialect. The superclass
handles DDL generation, and dialects just declare their capabilities.
Assisted-By: Claude Code <noreply(a)anthropic.com>
Commit: c634cba783b6948ee272e95537fe4e190e5945b9
https://github.com/hibernate/hibernate-orm/commit/c634cba783b6948ee272e95...
Author: Yoann Rodière <yoann(a)hibernate.org>
Date: 2026-07-23 (Thu, 23 Jul 2026)
Changed paths:
M whats-new.adoc
Log Message:
-----------
HHH-20708 Add what's new entry for schema IF EXISTS / IF NOT EXISTS
Assisted-By: Claude Code <noreply(a)anthropic.com>
Compare: https://github.com/hibernate/hibernate-orm/compare/5f812385a669...c634cba...
To unsubscribe from these emails, change your notification settings at https://github.com/hibernate/hibernate-orm/settings/notifications
1 month, 1 week
[hibernate/hibernate-orm] d86047: HHH-20414 - Deprecated generator removals (#13049)
by Jan Schatteman
Branch: refs/heads/wip/9.0
Home: https://github.com/hibernate/hibernate-orm
Commit: d8604723c98184b5710f83b10419d0c21aa4b516
https://github.com/hibernate/hibernate-orm/commit/d8604723c98184b5710f83b...
Author: Jan Schatteman <jrenaat(a)users.noreply.github.com>
Date: 2026-07-22 (Wed, 22 Jul 2026)
Changed paths:
M documentation/src/main/asciidoc/userguide/chapters/domain/identifiers.adoc
M hibernate-core/src/main/java/org/hibernate/boot/model/internal/GeneratorStrategies.java
M hibernate-core/src/main/java/org/hibernate/boot/model/internal/StrictIdGeneratorResolverSecondPass.java
R hibernate-core/src/main/java/org/hibernate/id/AbstractUUIDGenerator.java
R hibernate-core/src/main/java/org/hibernate/id/ForeignGenerator.java
R hibernate-core/src/main/java/org/hibernate/id/GUIDGenerator.java
M hibernate-core/src/main/java/org/hibernate/id/IdentifierGeneratorHelper.java
R hibernate-core/src/main/java/org/hibernate/id/UUIDGenerationStrategy.java
R hibernate-core/src/main/java/org/hibernate/id/UUIDGenerator.java
R hibernate-core/src/main/java/org/hibernate/id/UUIDHexGenerator.java
M hibernate-core/src/main/java/org/hibernate/id/uuid/CustomVersionOneStrategy.java
M hibernate-core/src/main/java/org/hibernate/id/uuid/StandardRandomStrategy.java
M hibernate-core/src/main/java/org/hibernate/id/uuid/UuidVersion6Strategy.java
M hibernate-core/src/main/java/org/hibernate/id/uuid/UuidVersion7Strategy.java
M hibernate-core/src/main/java/org/hibernate/internal/AbstractSharedSessionContract.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/id/entities/Monkey.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/id/entities/SoundSystem.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/id/sequences/entities/Monkey.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/id/sequences/entities/SoundSystem.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/onetoone/OptionalOneToOneMappedByTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/onetoone/OwnerAddress.java
M hibernate-core/src/test/java/org/hibernate/orm/test/annotations/onetoone/Person.java
M hibernate-core/src/test/java/org/hibernate/orm/test/boot/models/foreigngenerator/Info.java
M hibernate-core/src/test/java/org/hibernate/orm/test/id/uuid/generator/UUID2GeneratorBinaryUniqueIdentifierIdTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/id/uuid/generator/UUID2GeneratorStringUniqueIdentifierIdTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/id/uuid/generator/UUID2GeneratorUniqueIdentifierIdTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/id/uuid/strategy/CustomStrategyTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/generated/override/GenericGeneratorOverrideTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/identifier/UuidCustomGeneratedValueTest.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/identifier/uuid/implicit/Book.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/identifier/uuid/implicit2/Book.java
M hibernate-core/src/test/java/org/hibernate/orm/test/mapping/identifier/uuid/implicit2/Implicit2UuidGenerationTests.java
R hibernate-core/src/test/java/org/hibernate/orm/test/mapping/identifier/uuid/implicit3/Book.java
R hibernate-core/src/test/java/org/hibernate/orm/test/mapping/identifier/uuid/implicit3/Implicit3UuidGenerationTests.java
M hibernate-core/src/test/resources/org/hibernate/orm/test/cuk/Person.hbm.xml
M hibernate-core/src/test/resources/org/hibernate/orm/test/entitymode/map/basic/ProductLine.hbm.xml
M hibernate-core/src/test/resources/org/hibernate/orm/test/extralazy/Child.hbm.xml
M hibernate-core/src/test/resources/org/hibernate/orm/test/extralazy/Parent.hbm.xml
M hibernate-core/src/test/resources/org/hibernate/orm/test/hql/FooBarCopy.hbm.xml
M hibernate-core/src/test/resources/org/hibernate/orm/test/legacy/Baz.hbm.xml
M hibernate-core/src/test/resources/org/hibernate/orm/test/legacy/CustomSQL.hbm.xml
M hibernate-core/src/test/resources/org/hibernate/orm/test/legacy/FooBar.hbm.xml
M hibernate-core/src/test/resources/org/hibernate/orm/test/legacy/Holder.hbm.xml
M hibernate-core/src/test/resources/org/hibernate/orm/test/propertyref/basic/Person.hbm.xml
M tooling/hibernate-reveng/src/main/java/org/hibernate/tool/reveng/internal/core/binder/PrimaryKeyBinder.java
M tooling/hibernate-reveng/src/main/java/org/hibernate/tool/reveng/internal/core/dialect/SQLServerMetaDataDialect.java
M tooling/hibernate-reveng/src/main/java/org/hibernate/tool/reveng/internal/export/java/EntityPOJOClass.java
M tooling/hibernate-reveng/src/test/java/org/hibernate/tool/reveng/jdbc2cfg/OneToOne/TestCase.java
Log Message:
-----------
HHH-20414 - Deprecated generator removals (#13049)
HHH-20414 - Remove deprecated id generators
* ForeignGenerator
* UUIDHexGenerator
* GUIDGenerator
* UUIDGenerator and UUIDGenerationStrategy
Signed-off-by: Jan Schatteman <jschatte(a)redhat.com>
Co-authored-by: Claude Sonnet 4.5 <noreply(a)anthropic.com>
To unsubscribe from these emails, change your notification settings at https://github.com/hibernate/hibernate-orm/settings/notifications
1 month, 1 week