You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently, when using elasticsearch as part of your application, the generated application does not only save actual payload fields into the corresponding index, but also fields like isPersisted. This is, because when generating this field, it is annotated with @Transient (jakarta.persistence.Transient) but not with @org.springframework.data.annotation.Transient.
Motivation for or Use Case
As this field isPersistedis useless information for an elasticsearch index, we should also just generate the other Transient annotation as well.
This is the place, where this field is currently generated. The second annotation is nowhere else to be found, but should be somewhere...
Related issues
Suggest a Fix
JHipster Version(s)
8.7.1
JHipster configuration
To provide all information we need, you should run jhipster info in the project root folder (or workspaces root for microservices), and
copy/paste the result here. jhipster info removes sentitive information like rememberKey, jwtSecretKey. Double check if there is any other sensitive info.
As alternative you can add a JDL wrapped in below structure
JDL definitions
JDL content here
The information is mandatory for bug reports. This will allow us to use automated tests and genarate the broken sample using jhipster from-issue command.
Browsers and Operating System
Checking this box is mandatory (this is just to show you read everything)
The text was updated successfully, but these errors were encountered:
Overview of the issue
Currently, when using elasticsearch as part of your application, the generated application does not only save actual payload fields into the corresponding index, but also fields like
isPersisted
. This is, because when generating this field, it is annotated with@Transient
(jakarta.persistence.Transient) but not with@org.springframework.data.annotation.Transient
.Motivation for or Use Case
As this field
isPersisted
is useless information for an elasticsearch index, we should also just generate the otherTransient
annotation as well.Reproduce the error
https://github.com/jhipster/generator-jhipster/blob/89f377426892a987ab410687d121122a4950e17b/generators/spring-data-relational/templates/src/main/java/_package_/_entityPackage_/domain/_persistClass_.java.jhi.spring_data_persistable.ejs#L38C18-L41
This is the place, where this field is currently generated. The second annotation is nowhere else to be found, but should be somewhere...
Related issues
Suggest a Fix
JHipster Version(s)
8.7.1
JHipster configuration
To provide all information we need, you should run
jhipster info
in the project root folder (or workspaces root for microservices), andcopy/paste the result here.
jhipster info
removes sentitive information like rememberKey, jwtSecretKey. Double check if there is any other sensitive info.As alternative you can add a JDL wrapped in below structure
JDL definitions
The information is mandatory for bug reports. This will allow us to use automated tests and genarate the broken sample using
jhipster from-issue
command.Browsers and Operating System
The text was updated successfully, but these errors were encountered: