DATACMNS-43 - Corrected exception message in PreferredConstructorDiscoverer to mention PersistenceConstructor.
This commit is contained in:
@@ -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()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user