dev check null company
Test Workflow / test (push) Successful in 2s

This commit is contained in:
vladp
2026-01-29 21:46:37 +07:00
parent c539b1fbc2
commit fb5642db9e
4 changed files with 11 additions and 3 deletions
@@ -90,6 +90,14 @@ public class User {
@JsonIgnore
private ProtectedFileCheck protectedFileCheck;
public String getCompanyName() {
if (company != null) {
return company.getCompanyName();
} else {
return null;
}
}
@ManyToOne(fetch = FetchType.LAZY)
@JoinColumn(name = "company_id")
@ToString.Exclude