DATACMNS-43 - Corrected exception message in PreferredConstructorDiscoverer to mention PersistenceConstructor.

This commit is contained in:
Oliver Gierke
2011-06-07 11:50:28 -07:00
parent 364a84ffb8
commit d5300ed1bc

View File

@@ -80,7 +80,7 @@ public class PreferredConstructorDiscoverer<T> {
if (!noArgConstructorFound && numberOfArgConstructors > 1) {
throw new IllegalArgumentException(
String.format("Multiple constructors with arguments found in class %s! Annotate " +
"one with @PreferedConstructor explicitly to select it to be used in " +
"one with @PersistenceConstructor explicitly to select it to be used in " +
"persistence operations.", rawOwningType.getName()));
}
}