0

Is there anyway I can include the SQL for a hibernate exception in Grails? I know I can use SQL logging and then cross correlate threads, request id etc, but it would be nice if there was some configuration I could use for this.

So if hibernate throws a StaleStateException, I can see the SQL it was trying to execute at that time?

Thanks

dublintech
  • 16,815
  • 29
  • 84
  • 115

1 Answers1

0

Grails does not provide anything specific to help with this and as far as I know there is nothing in Hibernate to directly correlate an exception with the SQL which relates to the cause of the exception.

Jeff Scott Brown
  • 26,804
  • 2
  • 30
  • 47