java - Is it possible to receive URL from DataAccessException in hibernate spring? -
i use spring hibernate framework , in catch query update receive
dataaccessexception for write in error log receive url of database, sql error etc. possible receive dataaccessexception type? thanks.
there sources of dataaccessexception, methods defined, wrapper on exception, there nothing see. take consideration, not exception database may throw, should other exceptions, such jdbcexception.
the things need can still retrieved:
- get sql error via ex.getmessage();
- get database url hibernate session.
- show real query sql using hibernate.
Comments
Post a Comment