jhipster

How to delete an entity after creating it using jhipster?

时光毁灭记忆、已成空白 提交于 2019-12-03 05:40:40
问题 I have created 3 entities (Author, Book, Library) using "yo jhipster:entity" command but in one entity (Library) I had a ManyToMany relationship (to Book) but that caused "mappedBy reference an unknown target entity property: com.tst.testdomain.domain.Book.librarys in com.tst.testdomain.docmain.Library.books" so what is the clean way of deleted the Library entity. Would a command like "yo jhipster:entitydelete" be useful? 回答1: I use git scm for this. It's not just the generated files that

Using ROLES in jhipster?

匿名 (未验证) 提交于 2019-12-03 01:48:02
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 由 翻译 强力驱动 问题: I tried to add and change roles in jhipster. First I just tried to change one use case's role to admin from user. Then I tested it and user can add employee even if the roles is ROLE_ADMIN so it didn't change anything. I added new role as well, called MANAGER. I edited AuthoritiesConstants.java and added new role to JHI_AUTHORITY-table. Should I do something else or is this enough to get this working? state ( 'employee.new' , { parent : 'employee' , url : '/new' , data : { roles : [ 'ROLE_ADMIN' ], }, onEnter : [ '$stateParams' , '

jhipster run embedded jar with prod profile - issue with liquibase

匿名 (未验证) 提交于 2019-12-03 00:59:01
可以将文章内容翻译成中文,广告屏蔽插件可能会导致该功能失效(如失效,请关闭广告屏蔽插件后再试): 问题: I have packaged my app with : mvn -Pprod package Then I ran java -jar myapp-0.0.1-SNAPSHOT.war it works fine. But if I run : java -jar myapp-0.0.1-SNAPSHOT.war --spring.profiles.active=prod I am getting this error: [ERROR] org.springframework.boot.context.embedded.tomcat.ServletContextInitializerLifecycleListener - Error starting Tomcat context: org.springframework.beans.factory.BeanCreationException [WARN] org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext - Exception encountered during context

Error: ENOENT: no such file or directory, scandir

十年热恋 提交于 2019-12-03 00:56:25
I scaffold an app using jhipster which is microservice gateway using cassandra db and using maven to build which was building fine after scaffold.i ran gulp command to for the live reload of ui. i made a change slighlty in navbar and home page of it. which was also working file & made some changes in the json files of home & navbar & do some minor changes as adding the search box and other. it failed to reload. I stop the gulp & maven & restarted them. maven is building but again not loading the site in localhost when i ran gulp it is showing me this error. gulp fs.js:952 return binding

Unable to register MBean [HikariDataSource (HikariPool-0)] with key 'dataSource'

筅森魡賤 提交于 2019-12-02 20:25:19
I am getting below error in prod mode for (Java8+Oauth2+MySql+Hazelcast+no clustered http sessions) combination. Dev mode has worked fine. Unable to register MBean [HikariDataSource (HikariPool-0)] with key 'dataSou rce'; nested exception is javax.management.InstanceAlreadyExistsException: com.z axxer.hikari:name=dataSource,type=HikariDataSource In the log, first part of the datasource (hazelcast) creation says [dev] mode. Not sure this is deliberate. Kindly help me in resolving the issue. log Dec 12, 2014 2:44:11 PM org.apache.catalina.startup.HostConfig deployWAR INFO: Deploying web

JHipster Search entity by field of his entity

我与影子孤独终老i 提交于 2019-12-02 20:11:58
问题 I have Tournament entity. He have OneToOne relation with Prize entity. Prize entity have filed "amount". So if i want to do search Tournaments that have prize between some 2 values how can i do that using JHipster QueryService ? 回答1: Based on the fact you are using QueryService, I'm assuming you enabled the Filtering option when generating your entities. To query Tournament entities with a Prize amount between two values, a few things need to be added. In TournamentQueryService , add the

yeoman creates project in Desktop even though I CD into directory

我怕爱的太早我们不能终老 提交于 2019-12-02 19:51:15
问题 I am having a issue creating a yeoman project. I cd in the directory type yo and it says: Here is it suppose to asked me project name etc and it wants to throw everything on my desktop not the file I cd into. It defaults to mvn and I want gradle. I even npm uninstall -g generator-jhipster and reinstalled it and got the same issue. 回答1: If you have a .yo-rc.json file in a parent directory, Yeoman will load that configuration and generate from that file instead of prompting. This allows

How to delete an entity after creating it using jhipster?

若如初见. 提交于 2019-12-02 19:04:08
I have created 3 entities (Author, Book, Library) using "yo jhipster:entity" command but in one entity (Library) I had a ManyToMany relationship (to Book) but that caused "mappedBy reference an unknown target entity property: com.tst.testdomain.domain.Book.librarys in com.tst.testdomain.docmain.Library.books" so what is the clean way of deleted the Library entity. Would a command like "yo jhipster:entitydelete" be useful? I use git scm for this. It's not just the generated files that need to be deleted. jHipster also modifies files so with those you need to keep the file but back out the

How to generate jhipster application into a different directory?

与世无争的帅哥 提交于 2019-12-02 18:48:21
问题 When I run the following in jhipster-generator's /cli directory: cd cli node jhipster.js I'm generating the application in the same directory (cli). How would I change this directory to somewhere else? For example, export all the generated files into a specific directory. I believe the directory has something to do with this line of code in jhipster.js: const localCLI = require.resolve(path.join(process.cwd(), 'node_modules', 'generator-jhipster', 'cli', 'cli.js')); Note: I'm not running the

Jhipster4, Angular2: How include static image in html

独自空忆成欢 提交于 2019-12-02 17:38:40
问题 Could you help me with including static image in html template. I generated project using jhipster generator (chosen Angular 2) and now I'm trying to include static image in html-template of component (for example for NavbarComponent into navbar.component.html ). I inserted tag image into navbar.component.html <img src="url" /> My image is placed into webapp/content/images/staticimage.jpg (this folder containts logo-hipster.png also). What do I have to place instead of url in img tag to see