You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I encountered a warning when defining a one-to-one relationship between UserDetails and the built-in User entity in JHipster. The warning states:
WARNING! Ignoring 'UserDetails' definitions as it is using a built-in Entity 'user': 'otherEntityRelationshipName' is set with value 'userDetails' at relationship 'user' but no back-reference was found
Despite various attempts to adjust the relationship structure, the issue persists.
JHipster JDL
JDL definitions
Examples of relationships I have tried
relationship OneToOne {
UserDetails to User with builtInEntity
}
relationship OneToOne {
UserDetails{user(login) required} to User with builtInEntity
}
none worked
We don’t have support to relationships on the User side implemented.
One To One relationships require bidirectional relationship, which is not supported on User side.
That’s the reason for the warning.
@ken4ward something is broken?
The feature is missing that’s the reason for the warning.
To avoid the warning you can convert to a ManyToOne relationship.
@mshima Is it just a warning or it truly impacts the relationship as suggested by the warning log? I have used ManyToOne and it worked without the warning. However using it implies there'll be multiple records of userdetails per user. Thanks a lot for your quick response
Uh oh!
There was an error while loading. Please reload this page.
Overview of the issue
I encountered a warning when defining a one-to-one relationship between
UserDetails
and the built-inUser
entity in JHipster. The warning states:Despite various attempts to adjust the relationship structure, the issue persists.
JHipster JDL
JDL definitions
jhipster from-issue
command.Motivation for or Use Case
This issue prevents proper association of additional user details with the built-in
User
entity, limiting customization and extension.Reproduce the error
UserDetails
entity.User
entity.Related issues
Suggest a Fix
Potential solutions attempted:
{user}
toUserDetails
{user}
bindingJHipster Version(s)
8.10.0
Browsers and Operating System
The text was updated successfully, but these errors were encountered: