Skip to content

Commit 0aa8a8c

Browse files
authored
Enhance error message for unsupported persistent type (#1292)
2 parents dd5bb14 + 7646d6e commit 0aa8a8c

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

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

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -479,7 +479,9 @@ 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. By using @ExternalDomain, you can make that type persistent."),
482+
"The class \"{0}\" is not supported as a persistent type. "
483+
+ "By using @ExternalDomain, you can make that type persistent. "
484+
+ "Or, did you perhaps forget to specify @Association or @Transient for the field?"),
483485
DOMA4097("The return type must be {0}."),
484486
DOMA4098("The type of the parameter annotated with @Out must be org.seasar.doma.jdbc.Reference."),
485487
DOMA4100("{0} is illegal as the type argument of Reference."),

0 commit comments

Comments
 (0)