From 83e4384c3e4d21cf73839f4778c132ca9a7df95b Mon Sep 17 00:00:00 2001 From: Florian Lopes Date: Tue, 26 Jun 2018 06:44:59 +0200 Subject: [PATCH] HHH-12734 Add original exception when selected strategy could not be loaded --- .../boot/registry/selector/internal/StrategySelectorImpl.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hibernate-core/src/main/java/org/hibernate/boot/registry/selector/internal/StrategySelectorImpl.java b/hibernate-core/src/main/java/org/hibernate/boot/registry/selector/internal/StrategySelectorImpl.java index 83ceec1d87..be2a450fa0 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/registry/selector/internal/StrategySelectorImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/registry/selector/internal/StrategySelectorImpl.java @@ -130,7 +130,8 @@ public class StrategySelectorImpl implements StrategySelector { } catch (ClassLoadingException e) { throw new StrategySelectionException( - "Unable to resolve name [" + name + "] as strategy [" + strategy.getName() + "]" + "Unable to resolve name [" + name + "] as strategy [" + strategy.getName() + "]", + e ); } }