Hi All - I'm running a Grails 3.3 service and I wo...
# general
p
Hi All - I'm running a Grails 3.3 service and I would like to able to infer a reliable ID for Transactions (from an instance of org.hibernate.Transaction backed by org.hibernate.engine.transaction.internal.TransactionImpl). This is for auditing purposes, so it would help to be able to use a Transaction Id of some kind to organise my audit events. I'm not inclined to rely on the hashCode of the Transaction instance. Wondering is there any way to provide even a custom TransactionImpl (one which will have a reliable random ID assigned in the constructor) and to configure grails so that that implementation might be used instead? If anyone has any advice please let me know. Thanks!