Skip to content

Commit 2881d45

Browse files
committed
Simplify error messages for unsupported persistent types.
1 parent 80395a4 commit 2881d45

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

doma-core/src/main/java/org/seasar/doma/message/Message.java

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -479,9 +479,7 @@ public enum Message implements MessageResource {
479479
DOMA4093("The field annotated with @Version must be numeric."),
480480
DOMA4095("The field annotated with @GeneratedValue must be numeric."),
481481
DOMA4096(
482-
"The class \"{0}\" is not supported as a persistent type. "
483-
+ "If you intend to map the class to the external domain class with @ExternalDomain, the configuration may be not enough. "
484-
+ "Check the class annotated with @DomainConverters and the annotation processing option \"doma.domain.converters\"."),
482+
"The class \"{0}\" is not supported as a persistent type. By using @ExternalDomain, you can make that type persistent."),
485483
DOMA4097("The return type must be {0}."),
486484
DOMA4098("The type of the parameter annotated with @Out must be org.seasar.doma.jdbc.Reference."),
487485
DOMA4100("{0} is illegal as the type argument of Reference."),
@@ -852,10 +850,7 @@ public enum Message implements MessageResource {
852850
DOMA4297(
853851
"The embeddable class \"{0}\" cannot be used as a persistent property in the embeddable class."),
854852
DOMA4298(
855-
"The class \"{0}\" is not supported as a persistent type. "
856-
+ "If you intend to map the class to the external domain class with @ExternalDomain, "
857-
+ "the configuration may be not enough. "
858-
+ "Check the class annotated with @DomainConverters and the annotation processing option \"doma.domain.converters\"."),
853+
"The class \"{0}\" is not supported as a persistent type. By using @ExternalDomain, you can make that type persistent."),
859854
DOMA4299("The raw type of the class \"{0}\" cannot be used as a persistent property."),
860855
DOMA4301(
861856
"The type argument of the class \"{0}\" that is a wildcard or type variable cannot be used as a persistent property."),

0 commit comments

Comments
 (0)