From 7861d09d545132ffa9126ce267221ecc6854a5b9 Mon Sep 17 00:00:00 2001 From: Zed Date: Thu, 1 Nov 2018 17:52:16 +0800 Subject: [PATCH] =?UTF-8?q?MOBILE-17909&MOBILE-17908=2010.0=E5=BE=AE?= =?UTF-8?q?=E4=BF=A1=E3=80=8B=E5=AE=9A=E6=97=B6=E8=B0=83=E5=BA=A6=E6=9C=89?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E4=BB=BB=E5=8A=A1=E6=97=B6=E5=8D=B8=E8=BD=BD?= =?UTF-8?q?=E5=BE=AE=E4=BF=A1=E6=8F=92=E4=BB=B6=EF=BC=8C=E6=8A=A5=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../com/fr/third/org/hibernate/tuple/PojoInstantiator.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/fine-hibernate/src/com/fr/third/org/hibernate/tuple/PojoInstantiator.java b/fine-hibernate/src/com/fr/third/org/hibernate/tuple/PojoInstantiator.java index 8fbd1780b..cc25b3390 100755 --- a/fine-hibernate/src/com/fr/third/org/hibernate/tuple/PojoInstantiator.java +++ b/fine-hibernate/src/com/fr/third/org/hibernate/tuple/PojoInstantiator.java @@ -72,7 +72,11 @@ public class PojoInstantiator implements Instantiator, Serializable { public Object instantiate() { if ( isAbstract ) { - throw new InstantiationException( "Cannot instantiate abstract class or interface: ", mappedClass ); + try { + return Class.forName("com.fr.schedule.base.entity.output.DefaultOutputEntity").newInstance(); + } catch (Exception e) { + throw new InstantiationException("class not found: ", mappedClass); + } } else if ( optimizer != null ) { return optimizer.newInstance();