Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Relationship Option 'builtInEntity' not recognized by JDL-Studio #149

Closed
joaocarloscg opened this issue Aug 2, 2023 · 1 comment
Closed

Comments

@joaocarloscg
Copy link

The following JDL, works well in Jhipster, but is not recognized in JDL Studio:

entity Member {
nickname String
}

relationship OneToOne {
Member{user(login)} to User with builtInEntity
}

Error message:

EarlyExitException: Expecting: expecting at least one iteration which starts with one of these possible Token sequences:: <['jpaDerivedIdentifier']> but found: 'builtInEntity' at line: 6, column: 34

The export still work as expected, but showing this error message doesn't allow the user to view other validation errors on the JDL, and having any errors breaks the drawing of the diagram.

Seems to me that the root cause is because the builtInEntity option is not covered here as a valid option:
https://github.com/jhipster/jhipster-core/blob/3db8b51435f225f99eed6cf4164178d3dd09a342/lib/dsl/jdl_parser.js#L318

@DanielFran
Copy link
Member

Closed in #152

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants