jHipster 8.1.0 JDL generated @OneToOne and @ManyToOne relationship was annotated with FetchType.LAZY, getting the attribute of the entity causes LazyInitializationException No Session #25241
Labels
Milestone
Overview of the issue
JDL generated @OnetoOne relationship was annotated with FetchType.LAZY, getting the attribute of the entity causes LazyInitializationException. Previously it wasn't like that in jHipster 7.9.+
Reproduce the error
Suggest a Fix
JHipster Version(s)
8.1.0
Previously @OnetoOne relationships were annotated as per normal in jHipster 7.9.3+ as far as I remember.
JHipster configuration
.yo-rc.json file
Environment and Tools
openjdk version "21.0.2" 2024-01-16 LTS
OpenJDK Runtime Environment Temurin-21.0.2+13 (build 21.0.2+13-LTS)
OpenJDK 64-Bit Server VM Temurin-21.0.2+13 (build 21.0.2+13-LTS, mixed mode, sharing)
git version 2.40.1
node: v18.19.0
npm: 10.2.3
Docker version 25.0.3, build 4debf41
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryBrowsers and Operating System
Ubuntu 23.10 and Firefox
The text was updated successfully, but these errors were encountered: