Fixed bug I introduced with new configuration setting earlier.

git-svn-id: https://svn.apache.org/repos/asf/openjpa/trunk@567904 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Patrick Linskey 2007-08-21 01:46:38 +00:00
parent ebcec6e55b
commit fb1c554c4b
1 changed files with 4 additions and 3 deletions

View File

@ -214,9 +214,10 @@ public class ImplHelper {
* @since 1.0.0
*/
public static boolean isManagedType(OpenJPAConfiguration conf, Class type) {
return (PersistenceCapable.class.isAssignableFrom(type) || conf == null)
|| (type != null && conf.getRuntimeClassOptimization()
&& PCRegistry.isRegistered(type));
return (PersistenceCapable.class.isAssignableFrom(type)
|| (type != null
&& (conf == null || conf.getRuntimeClassOptimization())
&& PCRegistry.isRegistered(type)));
}
/**