jhipster / generator-jhipster

JHipster is a development platform to quickly generate, develop, & deploy modern web applications & microservice architectures.
https://www.jhipster.tech
Apache License 2.0
21.5k stars 4.02k forks source link

A negative integer shall be a number #21263

Closed vw98075 closed 9 months ago

vw98075 commented 1 year ago
Overview of the issue

In a JDL file, I have the following field

changeSinceLastClose  Integer min(-999) max(999) required 

in an entity.

With the Faker in the dev environment, some negative integers are generated for the field. But in the admin UI, the submit button is greyed out if a negative integer is in the field (see the screenshot).

Motivation for or Use Case
Reproduce the error
Related issues
Suggest a Fix
JHipster Version(s)

7.9.3

JHipster configuration

{
  "generator-jhipster": {
    "applicationType": "monolith",
    "authenticationType": "jwt",
    "baseName": "abc",
    "blueprints": [],
    "buildTool": "gradle",
    "cacheProvider": "ehcache",
    "clientFramework": "vue",
    "clientPackageManager": "npm",
    "clientTheme": "spacelab",
    "clientThemeVariant": "light",
    "creationTimestamp": 1677562600067,
    "databaseType": "sql",
    "devDatabaseType": "h2Memory",
    "devServerPort": 9060,
    "dtoSuffix": "DTO",
    "enableGradleEnterprise": false,
    "enableHibernateCache": false,
    "enableSwaggerCodegen": false,
    "enableTranslation": false,
    "entities": [
   ...
    ],
    "entitySuffix": "",
    "jhiPrefix": "jhi",
    "jhipsterVersion": "7.9.3",
    "jwtSecretKey": ...
    "languages": ["en", "fr"],
    "lastLiquibaseTimestamp": 1677563028000,
    "messageBroker": false,
    "microfrontend": false,
    "microfrontends": [],
    "monorepository": true,
    "nativeLanguage": "en",
    "otherModules": [],
    "packageName": "com.xyz.abc",
    "pages": [],
    "prodDatabaseType": "postgresql",
    "reactive": false,
    "searchEngine": false,
    "serverPort": "8080",
    "serverSideOptions": [],
    "serviceDiscoveryType": "no",
    "skipCheckLengthOfIdentifier": false,
    "skipClient": false,
    "skipCommitHook": true,
    "skipFakeData": false,
    "skipUserManagement": false,
    "testFrameworks": [],
    "websocket": false,
    "withAdminUi": true
  }
}
Entity configuration(s) entityName.json files generated in the .jhipster directory
Browsers and Operating System
vw98075 commented 1 year ago

Screenshot_select-area_20230227221940

atomfrede commented 1 year ago

Did you check with angular? I could think of a vue only issue.

vw98075 commented 1 year ago

It likely is a Vue only issue. I don't use Angular.

qmonmert commented 9 months ago

@DanielFran I confirm the bug

I try to find a solution