diff --git a/hibernate-core/src/main/java/org/hibernate/boot/internal/MetadataImpl.java b/hibernate-core/src/main/java/org/hibernate/boot/internal/MetadataImpl.java index 3e4dc86856..54fed5d471 100644 --- a/hibernate-core/src/main/java/org/hibernate/boot/internal/MetadataImpl.java +++ b/hibernate-core/src/main/java/org/hibernate/boot/internal/MetadataImpl.java @@ -81,7 +81,7 @@ import static org.hibernate.cfg.AvailableSettings.EVENT_LISTENER_PREFIX; * @author Gail Badner */ public class MetadataImpl implements MetadataImplementor, Serializable { - private static final Pattern LISTENER_SEPARATION_PATTERN = Pattern.compile( " ," ); + private static final Pattern LISTENER_SEPARATION_PATTERN = Pattern.compile( "\\s*,\\s*" ); private final UUID uuid; private final MetadataBuildingOptions metadataBuildingOptions;