Skip to content
Snippets Groups Projects
Commit 7126a049 authored by felmer's avatar felmer
Browse files

bug fixed: %s in validation message hasn't been resolved.

SVN: 26388
parent ab113789
No related branches found
No related tags found
No related merge requests found
...@@ -103,7 +103,8 @@ public abstract class AbstractDAO extends HibernateDaoSupport ...@@ -103,7 +103,8 @@ public abstract class AbstractDAO extends HibernateDaoSupport
String msg = ""; String msg = "";
for (ConstraintViolation v : violations) for (ConstraintViolation v : violations)
{ {
msg += ", " + v.getMessage(); Object invalidValue = v.getInvalidValue();
msg += ", " + String.format(v.getMessage(), invalidValue);
} }
throw new DataIntegrityViolationException(msg.substring(2)); throw new DataIntegrityViolationException(msg.substring(2));
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment