jhipster / generator-jhipster-entity-audit

JHipster module to enable entity audit and audit log page
Apache License 2.0
136 stars 77 forks source link

Unable to Build Hibernate SessionFactory #85

Closed gigantedocil closed 2 years ago

gigantedocil commented 6 years ago

Hi, I'm trying to use this generator to add the auditing functionalities to my entities on a monolithic JHipster application. The generation works well, but when I run ./mvnw the following happens:

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactory' defined in class path resource [org/springframework/boot/autoconfigure/orm/jpa/HibernateJpaAutoConfiguration.class]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: default] Unable to build Hibernate SessionFactory

And I can't run the app. I've tried using the yo jhipster-entity-audit default first and then using the yo jhipster-entity-audit and selecting only 2 entities, but the error still happens.

deepu105 commented 6 years ago

what version of JHipster are you using? please post your .yo-rc.json files

gigantedocil commented 6 years ago

I'm using the v4.14.1.

My .yo-rc.json is the following:

{ "generator-jhipster": { "promptValues": { "packageName": "com.organon.pomar" }, "jhipsterVersion": "4.14.1", "baseName": "POMAR", "packageName": "com.organon.pomar", "packageFolder": "com/organon/pomar", "serverPort": "8080", "authenticationType": "jwt", "cacheProvider": "ehcache", "enableHibernateCache": true, "websocket": false, "databaseType": "sql", "devDatabaseType": "h2Disk", "prodDatabaseType": "mysql", "searchEngine": false, "messageBroker": false, "serviceDiscoveryType": false, "buildTool": "maven", "enableSocialSignIn": false, "enableSwaggerCodegen": false, "jwtSecretKey": "312512c45a2cae64bd05d6e639bc77487cf42719", "clientFramework": "angularX", "useSass": false, "clientPackageManager": "yarn", "applicationType": "monolith", "testFrameworks": [], "jhiPrefix": "jhi", "enableTranslation": false }, "generator-jhipster-entity-audit": { "auditFramework": "custom" } }

DanielFran commented 2 years ago

Closing seems fixed with latest version