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

JHipster .NET Core: Entity regeneration fails after JDL import with --single-entity #1464

Open
1 task done
jfcode27 opened this issue May 23, 2024 · 0 comments
Open
1 task done

Comments

@jfcode27
Copy link

jfcode27 commented May 23, 2024

Overview of the issue

The error "Cannot read properties of undefined (reading 'length')" occurs when regenerating an entity using jhipster-dotnetcore:entity only for entities that have relationships. This happens after importing a JDL file and attempting to regenerate a specific entity with the --single-entity flag.

Motivation for or Use Case

I need to regenerate an entity in my JHipster .NET Core project while maintaining existing entities and introducing modifications from a JDL file.

Reproduce the error

  1. Import a JDL file using: jhipster-dotnetcore import-jdl jdl.jh --json-only
  2. Run the entity regeneration command for a specific entity: jhipster-dotnetcore entity EntityName --single-entity

Expected behavior

The entity should be regenerated using the information from the JDL file, while preserving existing entities and configurations.

JHipster Version(s)

  • "generator-jhipster": "8.1.0",
    "generator-jhipster-dotnetcore": "^4.1.0"

Mandatory Checkbox

  • Checking this box is mandatory (this is just to show you read everything)
image
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

1 participant