Skip to content
Snippets Groups Projects
Commit 4f9cd4fe authored by buczekp's avatar buczekp
Browse files

[LMS-2336] updated constraint violation messages

SVN: 22200
parent a95556d2
No related branches found
No related tags found
No related merge requests found
...@@ -51,10 +51,9 @@ public final class DataAccessExceptionTranslator ...@@ -51,10 +51,9 @@ public final class DataAccessExceptionTranslator
public final static String FOREIGN_KEY_VIOLATION_FORMAT = public final static String FOREIGN_KEY_VIOLATION_FORMAT =
"%s is being used. Delete all connected data %s first."; "%s is being used. Delete all connected data %s first.";
public final static String DETAILED_FOREIGN_KEY_VIOLATION_FORMAT = public final static String DETAILED_FOREIGN_KEY_VIOLATION_FORMAT = FOREIGN_KEY_VIOLATION_FORMAT
FOREIGN_KEY_VIOLATION_FORMAT + " To find out which exactly objects are connected to this object "
+ " To find out which exactly objects are connected to this object " + "go to its Detail view or use Search.";
+ "go to its Detail view or use Search.";
private DataAccessExceptionTranslator() private DataAccessExceptionTranslator()
{ {
...@@ -137,13 +136,13 @@ public final class DataAccessExceptionTranslator ...@@ -137,13 +136,13 @@ public final class DataAccessExceptionTranslator
switch (entityKindOrNull) switch (entityKindOrNull)
{ {
case DATA_SET: case DATA_SET:
return "(child data sets)"; return "";
case EXPERIMENT: case EXPERIMENT:
return "(attachments, data sets, samples)"; return "(data sets, samples)";
case MATERIAL: case MATERIAL:
return ""; return "";
case SAMPLE: case SAMPLE:
return "(attachments, data sets, contained and generated samples)"; return "(data sets, contained and generated samples)";
} }
return ""; return "";
} }
......
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