I have a problem when I run the app after jdl file is imported, It doesn't edit OnModelCreation Method to define relationship and cannot be executed
NOTE: It works well if I don't import jdl file.
Motivation for or Use Case
I was so close show to the company how to create fastest project using jhipster-dotnetcore
Reproduce the error
Create a monolitic app in mysql then import the jdl (below), then run application
Log
2024-10-28 22:39:23.716 FATL 24672 --- [ 1] Program : Host terminated unexpectedly
System.InvalidOperationException: The dependent side could not be determined for the one-to-one relationship between 'Person.PresentationPage' and 'PresentationPage.Person'. To identify the dependent side of the relationship, configure the foreign key property. If these navigations should not be part of the same relationship, configure them independently via separate method chains in 'OnModelCreating'. See https://go.microsoft.com/fwlink/?LinkId=724062 for more details.
at Microsoft.EntityFrameworkCore.Infrastructure.ModelValidator.ValidateRelationships(IModel model, IDiagnosticsLogger`1 logger)
Related issues
N
Suggest a Fix
N
JHipster Version(s)
8.1.0
JHipster configuration
Monolitic
Mysql
Entity configuration(s) entityName.json files generated in the .jhipster directory
WARNING! Since JHipster v8, the jhipster command will not use the locally installed generator-jhipster.
If you want to execute the locally installed generator-jhipster, run: npx jhipster
INFO! No custom commands found within blueprint: generator-jhipster-dotnetcore at C:\Projects\jhipster\netcore-test-mysql-monolite\node_modules\generator-jhipster-dotnetcore
Overview of the issue
I have a problem when I run the app after jdl file is imported, It doesn't edit OnModelCreation Method to define relationship and cannot be executed
NOTE: It works well if I don't import jdl file.
Motivation for or Use Case
I was so close show to the company how to create fastest project using jhipster-dotnetcore
Reproduce the error
Create a monolitic app in mysql then import the jdl (below), then run application
Log
Related issues
N
Suggest a Fix
N
JHipster Version(s)
8.1.0
JHipster configuration
Monolitic Mysql
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryWARNING! Since JHipster v8, the jhipster command will not use the locally installed generator-jhipster. If you want to execute the locally installed generator-jhipster, run: npx jhipster INFO! No custom commands found within blueprint: generator-jhipster-dotnetcore at C:\Projects\jhipster\netcore-test-mysql-monolite\node_modules\generator-jhipster-dotnetcore
██╗ ██║ ██╔═══██║ ██║ ██╔════╝ ╚═══██╗ ██║ ██╔═══╝ ██╔══██║ ╚██████╔╝ ██║ ██║ ████████╗ ██║ ██████╔╝ ██║ ████████╗ ██║ ╚██╗ ╚═════╝ ╚═╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═════╝ ╚═╝ ╚═══════╝ ╚═╝ ╚═╝ https://www.jhipster.tech Welcome to JHipster v8.1.0
Welcome to the JHipster Information Sub-Generator
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
Environment and Tools
'java' command could not be found
git version 2.47.0.windows.1
node: v20.17.0 npm: 10.9.0
Docker version 27.2.0, build 3ab4256
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Congratulations, JHipster execution is complete! If you find JHipster useful consider sponsoring the project https://www.jhipster.tech/sponsors/
Thanks for using JHipster!
ApplicationContext
Browsers and Operating System
Windows 11