relationship ManyToOne {
Profile{user(id) required} to User{profile}
}
例如,该配置文件在属性中有您的bio,只有您可以更新或删除它,但每个人都应该看到它。
if (!SecurityUtils.isCurrentUserInRole(AuthoritiesConstants.ADMIN)) {
return ResponseEntity.badRequest().headers(HeaderUtil.createFailureAlert(ENTITY_NAME, "Not-authorized", "You need to be logged in to perform this action")).body(null);
}
我想如果我可以通过使用Profile-User关系获得用户,我可以将其与Profile.User.Login文件,但我只有Profile.User.Id我不知道如何得到Profile.User.Login文件
谢谢