diff --git a/jans-orm/sql/src/main/java/io/jans/orm/sql/impl/SqlEntryManager.java b/jans-orm/sql/src/main/java/io/jans/orm/sql/impl/SqlEntryManager.java index b6690e229a9..7e0fb92c498 100644 --- a/jans-orm/sql/src/main/java/io/jans/orm/sql/impl/SqlEntryManager.java +++ b/jans-orm/sql/src/main/java/io/jans/orm/sql/impl/SqlEntryManager.java @@ -989,7 +989,7 @@ protected boolean isSupportForceUpdate() { } private String getBaseObjectClassForDataOperation(String[] objectClasses) { - if (ArrayHelper.isNotEmpty(objectClasses) && objectClasses.length > 0) { + if (ArrayHelper.isNotEmpty(objectClasses) && objectClasses.length > 1) { throw new MappingException("SQL ORM supports only one OC!"); }