From 426c6c81110f8e5e69290dd940aaad01cda3a229 Mon Sep 17 00:00:00 2001 From: rob bygrave Date: Tue, 20 Nov 2018 11:33:16 +1300 Subject: [PATCH] #1554 - Improve exception message for BeanNotEnhancedException --- .../ebeaninternal/server/deploy/BeanDescriptorManager.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/io/ebeaninternal/server/deploy/BeanDescriptorManager.java b/src/main/java/io/ebeaninternal/server/deploy/BeanDescriptorManager.java index 8234c4ce4..7a536f687 100644 --- a/src/main/java/io/ebeaninternal/server/deploy/BeanDescriptorManager.java +++ b/src/main/java/io/ebeaninternal/server/deploy/BeanDescriptorManager.java @@ -1557,8 +1557,8 @@ public class BeanDescriptorManager implements BeanDescriptorMap { Class beanClass = desc.getBeanType(); if (!hasEntityBeanInterface(beanClass)) { - String msg = "Bean " + beanClass + " is not enhanced? If you are running in IDEA or Eclipse check" + - " that the enhancement plugin is installed. See https://ebean.io/docs/trouble-shooting#not-enhanced"; + String msg = "Bean " + beanClass + " is not enhanced? Check packages specified in ebean.mf. If you are running in IDEA or " + + "Eclipse check that the enhancement plugin is installed. See https://ebean.io/docs/trouble-shooting#not-enhanced"; throw new BeanNotEnhancedException(msg); } @@ -1588,7 +1588,7 @@ public class BeanDescriptorManager implements BeanDescriptorMap { // ok to stop and treat just the same as Object.class return; } - throw new BeanNotEnhancedException("Super type " + superclass + " is not enhanced? See https://ebean.io/docs/trouble-shooting#not-enhanced"); + throw new BeanNotEnhancedException("Super type " + superclass + " is not enhanced? Check the packages specified in ebean.mf See https://ebean.io/docs/trouble-shooting#not-enhanced"); } // recursively continue up the inheritance hierarchy