Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
SIGPUBLIC
unantes-orientation-active
Commits
f13abdf3
Commit
f13abdf3
authored
Sep 30, 2021
by
Kevin Robert
Browse files
Correction de la génération d'uuid pour les références.
parent
d6405ba4
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main/java/com/unantes/orientactive/converter/bean/Item.java
View file @
f13abdf3
...
...
@@ -58,7 +58,7 @@ public abstract class Item implements ApiConvertible {
if
(
StringUtils
.
isBlank
(
this
.
reference
))
{
final
String
uuid
=
UUID
.
randomUUID
().
toString
();
// Le "-" risque de poser problème avec le SPEL.
this
.
reference
=
uuid
.
replace
(
"-"
,
StringUtils
.
EMPTY
);
this
.
reference
=
"r"
+
uuid
.
replace
(
"-"
,
StringUtils
.
EMPTY
);
}
ValidationUtils
.
validateReference
(
this
.
reference
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment