JBoss List Archives
Sign In
Sign Up
Sign In
Sign Up
Manage this list
2025
January
2024
December
November
October
September
August
July
June
May
April
March
February
January
2023
December
November
October
September
August
July
June
May
April
March
February
January
2022
December
November
October
September
August
July
June
May
April
March
February
January
2021
December
November
October
September
August
July
June
May
April
March
February
January
2020
December
November
October
September
August
July
June
May
April
March
February
January
2019
December
November
October
September
August
July
June
May
April
March
February
January
2018
December
November
October
September
August
July
June
May
April
March
February
January
2017
December
November
October
September
August
July
June
May
April
March
February
January
2016
December
November
October
September
August
July
June
May
April
March
February
January
2015
December
November
October
September
August
July
June
May
April
March
February
January
2014
December
November
October
September
August
July
June
May
April
March
February
January
2013
December
November
October
September
August
July
June
May
April
March
February
January
2012
December
November
October
September
August
July
June
May
April
March
February
January
2011
December
November
October
September
August
July
June
May
April
March
February
January
2010
December
November
October
September
August
July
June
May
April
March
February
January
2009
December
November
October
September
August
July
June
May
April
March
February
January
2008
December
November
October
September
August
July
June
May
April
March
February
January
2007
December
November
October
September
August
July
June
May
April
March
February
January
2006
December
November
October
September
August
List overview
Download
thread
[hibernate-issues] [JIRA] (HHH-15611) CustomEntityDirtinessStrategy is always calling findDirty independent whether canDirtyCheck would return true
jwedding (JIRA)
Tuesday, 18 October 2022
Tue, 18 Oct '22
9:25 a.m.
jwedding (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=60a7b6e...
) *created* an issue Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiNjI5MDA5YTI4...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-15611?atlOrigin=eyJpIjoiNjI5MD...
) HHH-15611 (
https://hibernate.atlassian.net/browse/HHH-15611?atlOrigin=eyJpIjoiNjI5MD...
) CustomEntityDirtinessStrategy is always calling findDirty independent whether canDirtyCheck would return true (
https://hibernate.atlassian.net/browse/HHH-15611?atlOrigin=eyJpIjoiNjI5MD...
) Issue Type: Bug Affects Versions: 5.6.12, 6.1.4 Assignee: Unassigned Components: hibernate-core Created: 18/Oct/2022 07:25 AM Priority: Major Reporter: jwedding (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=60a7b6e...
) Hi, I noticed a kind of inconvenient/inconsistent behaviour when using CustomEntityDirtinessStrategy : For checking whether an entity in general is dirty, a call to canDirtyCheck is made (which is fine): 5.6 / 6.1:
https://github.com/hibernate/hibernate-orm/blob/5.6/hibernate-core/src/ma...
(
https://github.com/hibernate/hibernate-orm/blob/5.6/hibernate-core/src/ma...
) //
https://github.com/hibernate/hibernate-orm/blob/6.1/hibernate-core/src/ma...
(
https://github.com/hibernate/hibernate-orm/blob/6.1/hibernate-core/src/ma...
) But then when searching for dirty attributes, the same check is not made anymore to the CustomEntityDirtinessStrategy therefore calling findDirty , even if the strategy is not capable of defining if the entity (and in my opinion implicitly its attributes) are dirty 5.6 // 6.1:
https://github.com/hibernate/hibernate-orm/blob/5.6/hibernate-core/src/ma...
(
https://github.com/hibernate/hibernate-orm/blob/5.6/hibernate-core/src/ma...
) //
https://github.com/hibernate/hibernate-orm/blob/6.1/hibernate-core/src/ma...
(
https://github.com/hibernate/hibernate-orm/blob/6.1/hibernate-core/src/ma...
) This is not docuemented and actually not expected in my opinion… (
https://hibernate.atlassian.net/browse/HHH-15611#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-15611#add-comment?atlOrigin=ey...
) Get Jira notifications on your phone! Download the Jira Cloud app for Android (
https://play.google.com/store/apps/details?id=com.atlassian.android.jira....
) or iOS (
https://itunes.apple.com/app/apple-store/id1006972087?pt=696495&ct=Em...
) This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100209- sha1:597f6a7 )
Attachments:
attachment.html
(text/html — 20.4 KB)
0
/
0
Reply
Back to the thread
Back to the list