[ERROR] /Users/theo/Documents/perso/jhipster-cache/src/main/java/com/mycompany/myapp/domain/Country.java:[2,33] package org.hibernate.annotations does not exist
[ERROR] /Users/theo/Documents/perso/jhipster-cache/src/main/java/com/mycompany/myapp/domain/Country.java:[3,33] package org.hibernate.annotations does not exist
Motivation for or Use Case
Project should compile.
Reproduce the error
Generate the app using the JDL below:
JDL file
application {
config {
databaseType mongodb
}
entities Country
}
entity Country {
name String
}
Related issues
Suggest a Fix
Looks like enableHibernateCache equals true instead of being false when having a non-SQL database. Maybe the parser in JHipster Core should force false when importing a JDL with a non-SQL database.
Overview of the issue
Compilation errors below:
Motivation for or Use Case
Project should compile.
Reproduce the error
Generate the app using the JDL below:
JDL file
Related issues
Suggest a Fix
Looks like
enableHibernateCache
equalstrue
instead of beingfalse
when having a non-SQL database. Maybe the parser in JHipster Core should forcefalse
when importing a JDL with a non-SQL database.JHipster Version(s)
JHipster configuration, a
.yo-rc.json
file generated in the root folder.yo-rc.json file
JDL for the Entity configuration(s)
entityName.json
files generated in the.jhipster
directoryJDL entity definitions
Environment and Tools
openjdk version "12.0.2" 2019-07-16 OpenJDK Runtime Environment AdoptOpenJDK (build 12.0.2+10) Eclipse OpenJ9 VM AdoptOpenJDK (build openj9-0.15.1, JRE 12 Mac OS X amd64-64-Bit Compressed References 20190915_201 (JIT enabled, AOT enabled) OpenJ9 - 0f66c6431 OMR - ec782f26 JCL - 9984ea0dd9 based on jdk-12.0.2+10)
git version 2.25.0
node: v10.18.1
npm: 6.13.4
yarn: 1.21.1
Docker version 19.03.5, build 633a0ea
docker-compose version 1.25.2, build 698e2846