Code development platform for open source projects from the European Union institutions

Skip to content
Snippets Groups Projects
Commit de2f5588 authored by Joze RIHTARSIC's avatar Joze RIHTARSIC
Browse files

fix the comment

parent be30db18
No related branches found
No related tags found
No related merge requests found
......@@ -51,8 +51,8 @@ public class UserDao extends BaseDao<DBUser> {
if (!StringUtils.isBlank(user.getUsername())){
user.setUsername(user.getUsername().toLowerCase());
}
// if certificate id is null then do not store certificate object to database
// because of unique constraint and null value in mysql is also subject to the constraint!
// if certificate id is null/empty then do not store certificate object to database
// because of unique constraint and empty value in mysql is also subject to the constraint!
if (user.getCertificate() != null && StringUtils.isBlank(user.getCertificate().getCertificateId() )) {
user.setCertificate(null);
}
......
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