Issues
- cascade remove does not correctly remove all entities with a mappedBy relation when the ManyToOne side is a EmbeddedIdHHH-19367
- Upgrade hibernate-models to 1.0.0.CR1HHH-19366Resolved issue: HHH-19366Steve Ebersole
- Add compatibility with OpenSearch 3.0.0HSEARCH-5363
- Upgrade to Elasticsearch client 9.0.0HSEARCH-5362Resolved issue: HSEARCH-5362Marko Bekhta
- Add Elasticsearch 9.0.0 compatibilityHSEARCH-5361Resolved issue: HSEARCH-5361Marko Bekhta
- Test against the latest Elasticsearch 8.17.5HSEARCH-5360Resolved issue: HSEARCH-5360Marko Bekhta
- Add GaussDB dialect supportHHH-19365chenzhida
- Introduce simplified dynamic query buildersHHH-19364Steve Ebersole
- Allow creating criteria queries to indicate if its interpretations are cacheableHHH-19363
- Improve JsonHelper to handle more org.hibernate.metamodel.mapping types for serializationHHH-19362Marco Belladelli
- Test against wildfly-preview 36.0.0.FinalHV-2101Resolved issue: HV-2101Marko Bekhta
- Upgrade to GSON 2.13.0HSEARCH-5359Resolved issue: HSEARCH-5359Marko Bekhta
- Move TiDB to hibernate-community-dialects and stop regular testingHHH-19361Resolved issue: HHH-19361Christian Beikov
- consider moving CustomEntityDirtinessStrategy and EntityNameResolver to new packageHHH-19360Gavin King
- The identifier returns null if the lazy loaded entity id is declared in the superclassHHH-19359
- Update Hibernate ORM dependency to 6.6.14.FinalHBX-2980
- Add a "What's New" document for seriesHHH-19358Resolved issue: HHH-19358Steve Ebersole
- Fail faster if an enclosing instance parameter is encountered in a projection constructor on JDK 25+HSEARCH-5358Resolved issue: HSEARCH-5358Marko Bekhta
- deprecate hibernate.discard_pc_on_closeHHH-19357Resolved issue: HHH-19357Gavin King
- Hibernate ignores certain row when updating @ElementCollection with @Embeddedable itemsHHH-19356
- bug in HQL trunc() function on OracleHHH-19355
- Problem with extract(day from ..HHH-19354Resolved issue: HHH-19354
- Column type validation is wrong for timestampsHHH-19353
- Warn users about misuse of the constraint annotationHV-2100
- Upgrade to Maven 4HV-2099
- move legacy LimitHandlers to community dialects moduleHHH-19352
- Introduce suggesters as part of the DSLHSEARCH-5357
- Introduce the extended (platform) BOMHSEARCH-5356
- Hibernate SQL fails on syntax error “with” when locking is usedHHH-19351
- SessionBuilder exposes SPI typesHHH-19350Resolved issue: HHH-19350Gavin King
- rework ImmutableEntityUpdateQueryHandlingMode and immutable_entity_update_query_handling_modeHHH-19349Resolved issue: HHH-19349Gavin King
- Expose methods in StatelessSessionImpl and SessionImplHHH-19348Resolved issue: HHH-19348Davide D'Alto
- Move the description of features and enhancements to a file published as part of documentationHV-2098
- Move the description of features and enhancements to a file published as part of documentationHSEARCH-5355
- Move the description of features and enhancements to a file published as part of documentationHHH-19347
- Hibernate 6.6.12 uses 1/0 instead of TRUE/FALSE with postgresqlHHH-19346
- EntityManager#remove checks for entity state are too strictHHH-19345Resolved issue: HHH-19345Christian Beikov
- Bytecode enhancer is broken in 6.6.12HHH-19344
- Incorrect generation of SQL query in a special case when using inheritance and select from multiple tablesHHH-19343
- Switch to Central Publishing Portal API for publishing to Maven CentralHV-2097
- Use JReleaser to publish hibernate artifactsHV-2096
- Assertion error when running query that loads association containing transient instanceHHH-19342
- Switch to Central Publishing Portal API for publishing to Maven CentralHSEARCH-5354
- Use JReleaser to publish hibernate artifactsHHH-19341Marko Bekhta
- Broken link: https://hibernate.org/documentation/6.0/migration-guide/WEBSITE-676Resolved issue: WEBSITE-676
- Upgrade to Apache Lucene 10.2.0HSEARCH-5353Resolved issue: HSEARCH-5353Marko Bekhta
- Clean up logger impls from misused importsHSEARCH-5352Resolved issue: HSEARCH-5352Marko Bekhta
- Switch to JReleaser for nexus publishingHSEARCH-5351Marko Bekhta
- Make TypedParameterValue a recordHHH-19340Resolved issue: HHH-19340Gavin King
- Better leverage for-update-of to help minimize situations where follow-on is neededHHH-19339
50 of
cascade remove does not correctly remove all entities with a mappedBy relation when the ManyToOne side is a EmbeddedId
Description
Details
Details
Details
Created 1 hour ago
Updated 1 hour ago
Activity
Show:
See the original discussion at
When clearing collections on both sides of a bidirectional relationship within the same transaction without an intermediate persistAndFlush(), relationship entities are not properly removed from the database.
ProjectEntity has
after creating three projects and connecting them (pe1 -> pe2 -> pe3) I use the following code to disconnect pe2 from pe1 and pe3:
Expected behavior
Clearing collections on both sides of a bidirectional relationship within the same transaction without an intermediate persistAndFlush(), should properly remove entities from the database.
Actual behavior
It seems that only for the collection that was cleared last (incomingRelations) the orphanRemoval works as expected.
How to Reproduce?
I created a repo to reproduce the bug:
Execute the only test to reproduce it
Output of
uname -a
orver
No response
Output of
java -version
Java version: 21.0.6, vendor: Inc., runtime: /Users/.../Library/Java/JavaVirtualMachines/corretto-21.0.6/Contents/Home
Quarkus version or git rev
3.19.4
Build tool (ie. output of
mvnw --version
orgradlew --version
)Apache Maven 3.9.9 (8e8579a9e76f7d015ee5ec7bfcdc97d26018693