@@ -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
|
||||
|
||||
Reference in New Issue
Block a user