## Where communities thrive

• Join over 1.5M+ people
• Join over 100K+ communities
• Free without limits
##### Activity
Rrok Luli
@Rrok_gitlab
3 replies
Hello Guys! I have created a JDL File based on this ERD Schema for Online Store, but when i try to generate it gives me error between User Entity and Cart Entity and again between User and Address Entity
How can I fix this?!!!
V W
@vw98075

With

bash kubectl-apply.sh -f

I get messages on services created without any error. I, however, can't see any of those services with

kubectl get pods

What do I do wrong?

Rick Poleshuck
@RickPoleshuck

I am curious about the choice of defaults for JDL. Typically, I modify the generated domain java class by adding the following to OneToMany relationships:

@JsonManagedReference

Also, I frequently use a List rather than a Set.

Alejandro Matos
@amatosg
well, that's just a way to discard duplicates
procnet0
@procnet0
Hello, Is there someone who already experienced setting up SharedWorker on a 6.5.1 Jhipster monolithique generated App using worker-loader.
I ve got it Work in Dev mod but i can't understand how to bundle it correctly in production mod. I m aware that It's more a webpack problem than a Jhipster but as I am pretty new to webpack i don't want to broke my Jhipster generated configuration.
The only way i managed to get production compile is by excluding /\worker.ts$/ from the @ngtools/webpack modules and adding worker-load + ts-loader . But it seems that webpack bundle 2 different files and the worker generated only contain a webpack_require( ... the_other_file_with_my_source_code) and so it don't work ^^. ItzEdgar @ItzEdgar Hello, I'm trying to run a microservices application. It's composed by 1 gateway and 1 microservice (as well as registry, keycloak, and an MSSQL database for each of the applications). When I run it all with "docker-compose up -d", it works well. But if I stop the microservice on docker and try to run it manually (either through IntelliJ or with .\mvnw commands - So far I've tried it with the flags -P-webapp and ./mvnw -Pprod and none worked), it's not working as expected. The microservice is able to register on the registry, but whenever I choose an entity related to said microservice, it just gives me a blank page (on the console shows a 401 error) and logs out If I'm missing any information that could help please tell me and I'll try to include it, it's kind of hard to explain it trough text On the gateway I'm getting this error: 2021-03-01 12:48:34.986 WARN 1 --- [ XNIO-1 task-8] o.s.c.n.zuul.web.ZuulHandlerMapping : No routes found from RouteLocator 2021-03-01 12:48:41.011 WARN 1 --- [ XNIO-1 task-8] o.s.c.n.z.f.pre.PreDecorationFilter : No route found for uri: /services/gestorpedidos/api/pedido 2021-03-01 12:48:52.724 WARN 1 --- [ XNIO-1 task-3] o.z.problem.spring.common.AdviceTraits : Unauthorized: Full authentication is required to access this resource ItzEdgar @ItzEdgar Btw when I run it with .\mvnw -Pprod it ends in error and doesn't run. When I run it with .\mvnw or .\mvnw -P-webapp it successfully compiles & runs, and registers in the registry. But I still can't add new entities chess-equality @chess-equality Hi guys, In GCP Kubernetes, I'm getting an UnknownHostException when my gateway tries to access my microservice. Where do I look to resolve this? I also tried using prefer-ip-address: true but then I get a 401 Unauthorized. buiphuking @buiphuking_twitter hi guys, i have this error when i run: gradlew.bat -x webpack a little help plz Alejandro Matos @amatosg do the equivalent to mvn clean install wole adetiba @WoleAdetiba_twitter I'm trying to generate war file running mvnw -Pprod package but i get BUILD FAILURE. send me this error: Hey @juanjocoto, were you able to get around this? I am having same issue Rick Poleshuck @RickPoleshuck @WoleAdetiba_twitter , @juanjocoto , Did you modify the <packaging> tag in your pom? Did you change the spring-boot-starter-undertow dependency to provided? Did you update webpack.prod.js to include the path prefix? All mentioned in https://www.jhipster.tech/production/ wole adetiba @WoleAdetiba_twitter Hi @RickPoleshuck - Thanks for your input. Yes. I had checked the url before. I am building "JAR" so the step stated on the page is to do mvnw -Pprod package. I will try the "WAR" build if that will be successful. Rick Poleshuck @RickPoleshuck Hi @RickPoleshuck - Thanks for your input. Yes. I had checked the url before. I am building "JAR" so the step stated on the page is to do mvnw -Pprod package. I will try the "WAR" build if that will be successful. You are having a different problem than @juanjocoto. My biggest problem getting started was jumping in too quickly and skipping over the documentation. Jun Huh @junhuhdev Hello I have an app deployed without a context path, routed to with context paths by the reverse proxy. When I upgraded to JHipster v6 I noticed that webpack configuration has changed. Basically to get it to work I had to modify new BaseHrefWebpackPlugin({ baseHref: '/test/service/' }), new HtmlWebpackPlugin({ template: './src/main/webapp/index.html', chunks: ['vendors', 'polyfills', 'main', 'global'], chunksSortMode: 'manual', inject: 'body', base: '/test/service/' }) My question is since the context-path is set differently in app.properties, is there any way to propagate this property to the webpack config so it can set the base and baseHref dynamically? duongaducit @duongaducit hello, my postgreSQL config in port 3307, can i change port default of postgreSQL when run jhipster? Matt Raible @mraible Who's ready for v7?! We're working on it now... Alejandro Matos @amatosg <3 Hojjat Abedi @GLinBoy 😍🤩 sabrina kacel @kacelsabrina5_gitlab Hello everyone, i'm using jhipster to developp a web application, i have an issue related to websocket, i have integrated it recently but the handshake is not working, i have a problem with filterChain when it comes to httpRequest websocket, could anyone help me please ?? Alejandro Matos @amatosg you should post the error message so people could give you hand Ahmed Yousseff @AhmedYousseff @mraible i'm already working with it already in beta release Ahmed Yousseff @AhmedYousseff @vw98075 3.3 worked fine with me @mraible by the way i encountered this issues while creating entity if you add enum as datatype an error will be thrown work around is modify the entity file it self on .jhipster folder (OS: MAC latest version & Ubuntu 20) Tácio Marques @taciomarques24:matrix.org [m] Hello, when I create the jhipster project, I have the following error: "Application commit to Git failed from /home/User/Área de Trabalho/App. Try to commit manually." Can someone help me? I am use Ubuntu AzzouzMohamed @AzzouzMohamed hello everyone, can you tell me how to make a composite key using jdl ? Joren McSorley @jorenmcsorley Hi everyone. Is there a way to change the default naming convention used when generating entities? Example: jhipster import-jdl sample.jh Generates a file with the convention: sample-delete-dialog.tsx I'd like to generate: sampleDeleteDialog.tsx Alejandro Matos @amatosg you will have to change the core files in your node-modules file Martin Carrillo @marvicgit Hello everyone, someone managed to implement an external authorization service: https://www.baeldung.com/jhipster-authentication-external-service, do everything but don't enter custom authenticator Rafael Hengles @rhengles Hello everyone. I have a brand new project created with JHipster that already has many entities structure and data. It was created by a backend developer and unfortunately he chose "Angular" for the front-end. AFAIK, there is no custom development made to the front end. Can I regenerate the frontend in another stack, preferably Vue, for an existing JHipster app ? 2 replies Krishnan Mahadevan @krmahadevan Hello everyone.. I am noticing that when I have a many to one relationship such as below relationship OneToMany { Father to Child } and I use jhipster import-jdl the generated DTOs are not containing the Set<Child> references that are found in the entity classes. Is this a known behavior ? Cassandra Bailey @cassandrabailey293 Hi All - trying to implement my own entity-client subgenerator for React. I haven't done anything special yet. When I try to make an entity, it can't find the primaryKey: info Using blueprint generator-jhipster-uswds-react for entity-client subgenerator events.js:288 throw er; // Unhandled 'error' event ^ Error: Copying template react/src/main/webapp/app/entities/entity-detail.tsx.ejs failed. [ReferenceError: /opt/Projects/FedHipster/Dev/generator-jhipster-uswds-react/generators/entity-client/templates/react/src/main/webapp/app/entities/entity-detail.tsx.ejs:169 167| <FontAwesomeIcon icon="arrow-left" /> <span className="d-none d-md-inline" ><Translate contentKey="entity.action.back">Back</Translate></span> 168| </Button>&nbsp; >> 169| <Button tag={Link} to={/<%= entityFileName %>/${<%= entityInstance %>Entity.<%= primaryKey.name %>}/edit} replace color="primary">
170|           <FontAwesomeIcon icon="pencil-alt" /> <span className="d-none d-md-inline"><Translate contentKey="entity.action.edit">Edit</Translate></span>
171|         </Button>
172|       </Col>
**primaryKey is not defined**]

Has anyone else seen this? Does the primaryKey have something to do with the database? when does it get generated and assigned? Any help would be appreciated, thanks.

3 replies
John Poole
@jdpoole_gitlab
I'm trying to use custom annotations in my JDL to avoid editing the generated domain entities, but adding: @customAnnotation(@MyAnnotation) and just @MyAnnotation to the JDL doesn't work. Nothing at all shows up in the generated java file. How are these supposed to work?
2 replies
buiphuking
i use angular with jhipster, how to create a new routing when i create a new page and match it, a little help, plz
and how to fix it
TypeError: Cannot read property 'length' of undefined
at C:\Users\PC\AppData\Roaming\npm\node_modules\generator-jhipster-pages\node_modules\generator-jhipster\node_modules\yeoman-generator\lib\index.js:1109:12
at new Promise (<anonymous>)
at child.runWithOptions (C:\Users\PC\AppData\Roaming\npm\node_modules\generator-jhipster-pages\node_modules\generator-jhipster\node_modules\yeoman-generator\lib\index.js:1089:21)
at child.run (C:\Users\PC\AppData\Roaming\npm\node_modules\generator-jhipster-pages\node_modules\generator-jhipster\node_modules\yeoman-generator\lib\index.js:1048:26)
at C:\Users\PC\AppData\Roaming\npm\node_modules\yo\node_modules\yeoman-environment\lib\environment.js:805:36
at new Promise (<anonymous>)
at Environment.runGenerator (C:\Users\PC\AppData\Roaming\npm\node_modules\yo\node_modules\yeoman-environment\lib\environment.js:770:21)
at instantiateAndRun (C:\Users\PC\AppData\Roaming\npm\node_modules\yo\node_modules\yeoman-environment\lib\environment.js:743:19)
at Environment.run (C:\Users\PC\AppData\Roaming\npm\node_modules\yo\node_modules\yeoman-environment\lib\environment.js:758:12)

Hello everyone.. I am noticing that when I have a many to one relationship such as below

relationship OneToMany {
Father to Child
}

and I use jhipster import-jdl the generated DTOs are not containing the Set<Child> references that are found in the entity classes. Is this a known behavior ?

Any help on this please ?

Jeff Power
hi there, is there way to generate BDD for all entites? Currently, its only generating for user entity when cucumber was enabled.
Alejandro Matos
@amatosg
I think you have to do it by yourself
Jeff Power