For example, if the option filter is applied using the annotation syntax (@filter), no *Criteria classes are generated. Using the regular form (filter Foo) the classes are generated.
The same applies at least for pagination, too (which I have tested also).
Motivation for or Use Case
We are using the annotation-based form for entity options. However, this is not working anymore with JHipster 8.6.0
Reproduce the error
create a default jhipster app (run jhipster and just press enter for all questions)
no *Criteria classes (e.g. src/main/java/com/mycompany/myapp/service/criteria/FooCriteria.java) are generated and src/main/java/com/mycompany/myapp/service/FooQueryService.java does not contain pagination logic.
Related issues
Suggest a Fix
JHipster Version(s)
JHipster 8.6.0
JHipster configuration
##### **JHipster configuration, a `.yo-rc.json` file generated in the root folder**
<details>
<summary>.yo-rc.json file</summary>
<pre>
{
"generator-jhipster": {
"applicationType": "monolith",
"authenticationType": "jwt",
"baseName": "jhipsterExample",
"buildTool": "maven",
"cacheProvider": "ehcache",
"clientFramework": "angular",
"clientTestFrameworks": [],
"clientTheme": "none",
"creationTimestamp": 1721917146123,
"databaseType": "sql",
"devDatabaseType": "postgresql",
"devServerPort": 4200,
"enableHibernateCache": true,
"enableSwaggerCodegen": false,
"enableTranslation": true,
"entities": [
"Foo"
],
"feignClient": null,
"jhipsterVersion": "8.6.0",
"languages": [
"en"
],
"lastLiquibaseTimestamp": 1721917480000,
"messageBroker": false,
"microfrontend": null,
"microfrontends": [],
"nativeLanguage": "en",
"packageName": "com.mycompany.myapp",
"prodDatabaseType": "postgresql",
"reactive": false,
"searchEngine": false,
"serverPort": null,
"serverSideOptions": [],
"serviceDiscoveryType": false,
"syncUserWithIdp": null,
"testFrameworks": [],
"websocket": false,
"withAdminUi": true
}
}
</pre>
</details>
##### **Environment and Tools**
openjdk version "17.0.12" 2024-07-16
OpenJDK Runtime Environment Homebrew (build 17.0.12+0)
OpenJDK 64-Bit Server VM Homebrew (build 17.0.12+0, mixed mode, sharing)
git version 2.45.2
node: v20.15.1
npm: 10.7.0
Docker version 27.0.3, build 7d4bcd8
##### **JDL for the Entity configuration(s) `entityName.json` files generated in the `.jhipster` directory**
<details>
<summary>JDL entity definitions</summary>
<pre>
@ChangelogDate("20240725142440")
@Paginate("pagination")
entity Foo {
name String required
foo Boolean required
}
service Foo with serviceClass
search Foo with no
filter Foo
</pre>
</details>
Entity configuration(s) entityName.json files generated in the .jhipster directory
Browsers and Operating System
macOS Sonoma 14.5
the problem is independent of the browser
[x] Checking this box is mandatory (this is just to show you read everything)
Overview of the issue
For example, if the option
filter
is applied using the annotation syntax (@filter
), no*Criteria
classes are generated. Using the regular form (filter Foo
) the classes are generated.The same applies at least for
pagination
, too (which I have tested also).Motivation for or Use Case
We are using the annotation-based form for entity options. However, this is not working anymore with JHipster 8.6.0
Reproduce the error
jhipster
and just press enter for all questions)JDL definitions
jhipster jdl schema.jdl
*Criteria
classes (e.g.src/main/java/com/mycompany/myapp/service/criteria/FooCriteria.java
) are generated andsrc/main/java/com/mycompany/myapp/service/FooQueryService.java
does not contain pagination logic.Related issues
Suggest a Fix
JHipster Version(s)
JHipster 8.6.0
JHipster configuration
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System
macOS Sonoma 14.5
the problem is independent of the browser
[x] Checking this box is mandatory (this is just to show you read everything)