Skip to content

Pagination is not being generated #786

@ivanmonteiro

Description

@ivanmonteiro
Overview of the issue

When I import entitities by JDL no pagination is generated, even with paginate * with pagination set in the JDL.
I'm using the main version of jhipster.net with angular as the frontend.

Motivation for or Use Case
Reproduce the error

Create a file named myapp.jdl with the following contents:

entity Employee {
    name String maxlength(20)
}

dto * with mapstruct
paginate * with pagination
service all with serviceImpl

and then run
jhipster import-jdl myapp.jdl

The generated ..jhipster/employee.json will contain "pagination": "no", instead of "pagination": "pagination".

Oddly, if I run jhipster import-jdl myapp.jdl --json-only the ..jhipster/employee.json will contain "pagination": "pagination" as expected. But when I try to re-generate the entity files with jhipster --with-entities pagination is set no "no" for unknown reasos. So pagination is not generated.

As @nicolas63 said it migh be a regression from upgrading to jhipster v7.

Related issues
Suggest a Fix
JHipster Version(s)
JHipster configuration
Entity configuration(s) entityName.json files generated in the .jhipster directory
Browsers and Operating System
  • Checking this box is mandatory (this is just to show you read everything)

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug 🐞Something isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions