diff --git a/j-lawyer-client/lib/j-lawyer-cloud/j-lawyer-cloud.jar b/j-lawyer-client/lib/j-lawyer-cloud/j-lawyer-cloud.jar
index 3eb0d9cb2..02474dc70 100644
Binary files a/j-lawyer-client/lib/j-lawyer-cloud/j-lawyer-cloud.jar and b/j-lawyer-client/lib/j-lawyer-cloud/j-lawyer-cloud.jar differ
diff --git a/j-lawyer-client/src/com/jdimension/jlawyer/client/configuration/DocumentNameTemplatesSetupDialog.form b/j-lawyer-client/src/com/jdimension/jlawyer/client/configuration/DocumentNameTemplatesSetupDialog.form
index c2ce557df..05da03dfd 100644
--- a/j-lawyer-client/src/com/jdimension/jlawyer/client/configuration/DocumentNameTemplatesSetupDialog.form
+++ b/j-lawyer-client/src/com/jdimension/jlawyer/client/configuration/DocumentNameTemplatesSetupDialog.form
@@ -366,6 +366,7 @@
+
diff --git a/j-lawyer-client/src/com/jdimension/jlawyer/client/configuration/DocumentNameTemplatesSetupDialog.java b/j-lawyer-client/src/com/jdimension/jlawyer/client/configuration/DocumentNameTemplatesSetupDialog.java
index 2d8f0ec41..fe5288fdc 100644
--- a/j-lawyer-client/src/com/jdimension/jlawyer/client/configuration/DocumentNameTemplatesSetupDialog.java
+++ b/j-lawyer-client/src/com/jdimension/jlawyer/client/configuration/DocumentNameTemplatesSetupDialog.java
@@ -893,6 +893,7 @@ public void keyReleased(java.awt.event.KeyEvent evt) {
jLabel10.setFont(jLabel10.getFont());
jLabel10.setText("y m d (y...Jahr m...Monat d...Tag)");
+ jLabel10.setToolTipText("Platzhalter für Jahr / Monat / Tag sind in eckigen Klammern anzugeben:\n\n[yy] - zweistellige Jahreszahl\n[yyyy] - vierstellige Jahreszahl\n[mm] - Monat\n[dd] - Tag");
jLabel11.setFont(jLabel11.getFont());
jLabel11.setText("weitere Zeichen als fixe Bestandteile");
diff --git a/j-lawyer-server-entities/src/java/db/migration/V2_7_0_15__UpdateDocumentNameTpls.sql b/j-lawyer-server-entities/src/java/db/migration/V2_7_0_15__UpdateDocumentNameTpls.sql
new file mode 100644
index 000000000..f22958c92
--- /dev/null
+++ b/j-lawyer-server-entities/src/java/db/migration/V2_7_0_15__UpdateDocumentNameTpls.sql
@@ -0,0 +1,3 @@
+update document_name_tpls set schema_syntax='[yyyy]-[mm]-[dd]_DATEINAME' where id='default-tpl';
+insert into server_settings(settingKey, settingValue) values('jlawyer.server.database.version','2.7.0.15') ON DUPLICATE KEY UPDATE settingValue = '2.7.0.15';
+commit;
\ No newline at end of file
diff --git a/j-lawyer-server/j-lawyer-server-ejb/src/java/com/jdimension/jlawyer/server/utils/FileNameGenerator.java b/j-lawyer-server/j-lawyer-server-ejb/src/java/com/jdimension/jlawyer/server/utils/FileNameGenerator.java
index 03316fffb..63833652b 100644
--- a/j-lawyer-server/j-lawyer-server-ejb/src/java/com/jdimension/jlawyer/server/utils/FileNameGenerator.java
+++ b/j-lawyer-server/j-lawyer-server-ejb/src/java/com/jdimension/jlawyer/server/utils/FileNameGenerator.java
@@ -678,17 +678,17 @@ public class FileNameGenerator {
public static boolean compilePattern(String pattern) throws InvalidSchemaPatternException {
- if (pattern.contains("yyy") && !pattern.contains("yyyy")) {
+ if (pattern.contains("[yyy]") && !pattern.contains("[yyyy]")) {
throw new InvalidSchemaPatternException("y muss als yy oder yyyy enthalten sein");
}
- if (pattern.contains("yyyyy")) {
+ if (pattern.contains("[yyyyy]")) {
throw new InvalidSchemaPatternException("y muss als yy oder yyyy enthalten sein");
}
- if (pattern.contains("mmm")) {
+ if (pattern.contains("[mmm]")) {
throw new InvalidSchemaPatternException("m muss als m oder mm enthalten sein");
}
- if (pattern.contains("ddd")) {
+ if (pattern.contains("[ddd]")) {
throw new InvalidSchemaPatternException("d muss als d oder dd enthalten sein");
}
@@ -730,27 +730,27 @@ private static synchronized String next(String pattern, Date date, String fileNa
}
// fixed values
- while (pattern.contains("yyyy")) {
- pattern = pattern.replace("yyyy", longYear.format(current));
+ while (pattern.contains("[yyyy]")) {
+ pattern = pattern.replace("[yyyy]", longYear.format(current));
}
- while (pattern.contains("yy")) {
- pattern = pattern.replace("yy", shortYear.format(current));
+ while (pattern.contains("[yy")) {
+ pattern = pattern.replace("[yy]", shortYear.format(current));
}
- while (pattern.contains("mm")) {
- pattern = pattern.replace("mm", longMonth.format(current));
+ while (pattern.contains("[mm]")) {
+ pattern = pattern.replace("[mm]", longMonth.format(current));
}
- while (pattern.contains("m")) {
- pattern = pattern.replace("m", shortMonth.format(current));
+ while (pattern.contains("[m]")) {
+ pattern = pattern.replace("[m]", shortMonth.format(current));
}
-
- while (pattern.contains("dd")) {
- pattern = pattern.replace("dd", longDay.format(current));
+
+ while (pattern.contains("[dd]")) {
+ pattern = pattern.replace("[dd]", longDay.format(current));
}
- while (pattern.contains("d")) {
- pattern = pattern.replace("d", shortDay.format(current));
+ while (pattern.contains("[d]")) {
+ pattern = pattern.replace("[d]", shortDay.format(current));
}
-
+
// variable values
pattern = pattern.replace("DATEINAME", fileName);