fix user timetable url

This commit is contained in:
Anton Romanov 2019-05-18 13:00:02 +04:00
parent 56f083e757
commit d076f35ff7

View File

@ -26,7 +26,7 @@ import java.util.Set;
@Entity @Entity
@Table(name = "users") @Table(name = "users")
public class User extends BaseEntity { public class User extends BaseEntity {
private final static String USER_ABBREVIATE_TEMPLATE = "%s %s%s"; private final static String USER_ABBREVIATE_TEMPLATE = "%s %s %s";
@NotNull @NotNull
@Pattern(regexp = Constants.LOGIN_REGEX) @Pattern(regexp = Constants.LOGIN_REGEX)
@ -232,7 +232,7 @@ public class User extends BaseEntity {
public String getUserAbbreviate() { public String getUserAbbreviate() {
return String.format(USER_ABBREVIATE_TEMPLATE, return String.format(USER_ABBREVIATE_TEMPLATE,
lastName == null ? "" : lastName, lastName == null ? "" : lastName,
firstName == null ? "" : firstName.substring(0, 1) + ".", firstName == null ? "" : firstName.substring(0, 1),
patronymic == null ? "" : patronymic.substring(0, 1) + "."); patronymic == null ? "" : patronymic.substring(0, 1));
} }
} }