Ruslan Masjuk (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
) *created* an issue
Hibernate ORM (
https://hibernate.atlassian.net/browse/HHH?atlOrigin=eyJpIjoiM2Q2MWM2Zjg3...
) / Bug (
https://hibernate.atlassian.net/browse/HHH-17036?atlOrigin=eyJpIjoiM2Q2MW...
) HHH-17036 (
https://hibernate.atlassian.net/browse/HHH-17036?atlOrigin=eyJpIjoiM2Q2MW...
) Issue HHH-16701 is still reproducible (
https://hibernate.atlassian.net/browse/HHH-17036?atlOrigin=eyJpIjoiM2Q2MW...
)
Issue Type: Bug Affects Versions: 6.2.6 Assignee: Unassigned Attachments: stacktrace.txt
Created: 05/Aug/2023 03:12 AM Priority: Major Reporter: Ruslan Masjuk (
https://hibernate.atlassian.net/secure/ViewProfile.jspa?accountId=557058%...
)
https://github.com/homiodev/homio-app/blob/5b9cd33017a8ad93f715600c97aec0...
The above line of code throws “persister” is null.
Please, take into account that method beforeDelete(…) executes by:
EventListenerRegistry registry =
sessionFactory.getServiceRegistry().getService(EventListenerRegistry.class);
registry.getEventListenerGroup(EventType.PRE_DELETE).appendListener(event -> {
Object entity = event.getEntity();
if (entity instanceof BaseEntity baseEntity) {
if (baseEntity.isDisableDelete()) {
throw new IllegalStateException( "Unable to remove entity"
);
}
baseEntity.beforeDelete(entityContext);
}
return false ;
});
Also, calling TransactionSynchronizationManager.isActualTransactionActive() return true
(
https://hibernate.atlassian.net/browse/HHH-17036#add-comment?atlOrigin=ey...
) Add Comment (
https://hibernate.atlassian.net/browse/HHH-17036#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#100233- sha1:06f5c37 )