Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
pojomojo
@pojomojo1982
New to jhipster and question: When I create a relationship to the built in User entity, my API model that's generated in Swagger wants the entire User object to be part of the request; e.g. User related to Cars....and now the PUT request for Cars wants the entire User graph included? How should I be modeling this such the API only requires the User ID and not the entire User graph?
1 reply
Rick Poleshuck
@RPoleshuck
Sometimes the API menu under Administration gets built, but sometimes it doesn't. How do I force it to be built all the time?
@emilpaw , Do you know if there is any syntax checking available for a JDL file? I also spent WAY too long because I named a relationship name "package".
1 reply
pojomojo
@pojomojo1982
New to jhipster and really need beml question: When I create a relationship to the built in User entity, my API model that's generated in Swagger wants the entire User object to be part of the request; e.g. User related to Cars....and now the PUT request for Cars wants the entire User graph included? How should I be modeling this such the API only requires the User ID and not the entire User graph?
New to jhipster and really need help with this question (sorry for repeating) : When I create a relationship to the built in User entity, my API model that's generated in Swagger wants the entire User object to be part of the request; e.g. User related to Cars....and now the PUT request for Cars wants the entire User graph included? How should I be modeling this such the API only requires the User ID and not the entire User graph? I can not include the relationship and only include the ID field in the Cars object representing the link to User but this doesn’t like the correct way to do it….
2 replies
Peter E Olsen III
@hepaestus
I am not understanding something about how relationships are created... OneToOne KINDA works as expected, however, when I use ManyToMany { A{b(foo) to B{a(foo) } the generated code is not bi-directional. The TypeScript Model Objects are correct! The java looks like it should work as well. But the generated app does not have A -> B and B -> A relationships. Please see this repo https://github.com/hepaestus/testproject Here is my JDL: https://github.com/hepaestus/testproject/blob/main/testproject.jdl
Peter E Olsen III
@hepaestus
It's slow in here today
Alejandro Matos
@amatosg
@hepaestus I can see the relationship in Echo and Author
Supun Dharmarathna
@supun
i am having an issue while using translations with lazy loaded modules
none of the translations seems working in lazy loaded modules
any thoughts?
Peter E Olsen III
@hepaestus
@amatosg Can anyone point to a demo or test project that builds as stated the different relationship types?
@amatosg It creates the relationships but the SQL Queries are not comprehensive. You do not get the entire object and all its relationships even when you choose FetchType.EAGER
@amatosg I think there is a numerical limit the number of relationships that will work automatically.
Peter E Olsen III
@hepaestus
@amatosg It seems like if your entities are "too complex" it breaks.
@amatosg I have tried all kinds of entity definition types and styles and I still am not getting the relationships to work as I expect them to. SO Either I am thinking about this wrong, which is entirely possible, OR It's not working as it should. OR BOTH. I am super frustrated.
Alejandro Matos
@amatosg
@hepaestus If you're not getting the relationship as desired, I would recommend to get the additional objects in the service layer
Peter E Olsen III
@hepaestus
@amatosg I am not sure what you mean.
I just want it to build the way the JDL says it will be built.
Alejandro Matos
@amatosg
What I wanted to say is that, if the relationship is not working as desired, you could mitigate the issue querying the data in your service layer. Also, you could open an issue so the team can evaluate your case
1 reply
Cesar Manuel Cruzata De la Cruz
@cruzatadelacruzc
hi developers, I have SPA Reactjs and Keycloak and Gateway services, I need to develop authentication and authorization. I want to know how jhipster performs authentication between React application, Keyclaok and Gateway.
3 replies
hadi
@hadi79598785_twitter
Hello developers
how can run jhipster project on external tomcat server we faced issue to do
we can deploy generated war file but cannot start deployed application.
please assist as
10 replies
Aleksa Ivanovic
@aleksai_gitlab
Hello developers,
I need to migrate jhipster microservice app from 5.8.1 and 5.8.2 projects to latest 7.1.0, any tips on how to do it. Do I go one version at a time or directly to 7.1.0? What do I need to watch out for? Thanks a lot for any answer
1 reply
Peter E Olsen III
@hepaestus
Dumb Question: How do I update JHIPSTER to 7.1.0? I have tried sudo npm update -g generator-jhipster with and without sudo but I still get the old version from jhipster --version $ jhipster --version INFO! Using JHipster version installed locally in current project's node_modules 7.0.1
I also updated my .yo-rc.json file to the jhipsterversion 7.1.0.
3 replies
Also tried sudo npm install -g generator-jhipster but no worky
Konstantin Pribluda
@ko5tik
Just wondering - when I am using keycloack and gateway why there is still local storage of user ? with database and services and whatever. Seems to be waste of resources to me. The same is with administration frontend - when I specify withAdminUi=false it is still generated for the frontend
Ali Ebadian
@ebadian
Hey All,
My apologies if this is not the right place to ask this question.
We have a springboot application that uses bootstrap and Jquery for its frontend. We are looking to change the frontend application to use react.
As this application has stand-alone widgets, we wanted to take baby step approach and convert the widgets one by one to use reactJS.
Someone suggested to maybe it would be best to convert the application to use JHipster first.
Is this approach recommended?
3 replies
emilpaw
@emilpaw
Is it correct that I can only delete entities manually which were generated by the jdl file? Is there no automated way to remove the ones not specified in the jdl file anymore?
1 reply
Alejandro Matos
@amatosg
that is correct, you will hace to delete entities manually. A good way to do it is deleting the domain entity and the go all the way up
Peter E Olsen III
@hepaestus

I keep getting this error:

 2021-06-24 13:28:57.421 ERROR 2754956 --- [  XNIO-1 task-1] c.h.a.service.OrderItemService           : Exception in save() with cause = 'NULL' and exception = 'null'

 java.lang.StackOverflowError: null

Something is null but I don't know what. Any Ideas?

4 replies
hizmarck
@hizmarck_gitlab

Hi guys, I'm trying to understand how I can debug the jhipster-generator

I've cloned the project on my local and follow the steps until to use text-editor
https://github.com/jhipster/generator-jhipster/blob/main/CONTRIBUTING.md#use-a-text-editor

So, I have my project which I want to test, how can I configure VSC to launch for example jhipster jdl my-jdl-location and stop a debug point on my vsc?

Thanks

PC-Chiu
@PC-Chiu
Hi guys, When I use generator-jhipster v7.1.0 to generate a webflux gateway,I found the profile zipkin use dependency spring-cloud-starter-zipkin
but, spring-cloud-starter-zipkin has no longer exist with spring-cloud-starter-* v3.0.x

Suggest a Fix

Change dependency with spring-cloud-starter-sleuth

and add spring-cloud-sleuth-zipkin

Alejandro Matos
@amatosg
Does anyone knows at which version did the UUID as id was available?
Alejandro Matos
@amatosg
to anwer myself: 7.0.0
hizmarck
@hizmarck_gitlab
LOL
Bassem Zohdy
@bassemHelpAG
best way to integrate Angular Material? I found multilabel blueprint for that but not up to date.
Flammingo
@Flammingo
Hello everyone, I have created a jhipster gateway and enabled keycloak, due to this i am unable to login as admin and use gateway admin UI
I have created Jhipster default roles in Keycloak and assigned them ti the user as well. But still the issue. Forbidden 403. Not sure what exactly I missed. Could you guys help me out ?
1 reply
{
"type" : "https://www.jhipster.tech/problem/problem-with-message",
"title" : "Forbidden",
"status" : 403,
"detail" : "Access Denied",
"path" : "/management",
"message" : "error.http.403"
}
Riyaz A Shaikh
@riyaz-programmer
Hi everyone, can we use JSONB data type while creating new entity using JDL? if yes, how to do it?
3 replies
raiokocha
@raiokocha
hi i need help to reset my password, the email trigger does not work
5 replies
renanfranca
@renanfranca
@hizmarck_gitlab i have the same question. How to debug the command jhipster jdl my-custom-dl with VSCode?
Riyaz A Shaikh
@riyaz-programmer
Failed to start bean 'webServerStartStop'; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start Netty. What might be the root cause of above error? Deployed jHipster 7 on AWS EC2 instance.
ifelse.codes
@ifelse-codes
There is no automatic replication mechanism between your database and Elasticsearch, so you might have out-of-sync data. As a result, you will probably need to write some specific code to synchronize your data, for example using the Spring @Scheduled annotation, to run every evening.
This also means if your database is changed outside of your application, your search indexes will be out-of-sync. The Elasticsearch Reindexer JHipster module can help in these situations.
How can I sync data from postgress to es , please help ?
John Cao
@jhcao23
Does anyone know how to apply ngrx to angular in jhipster?
renanfranca
@renanfranca

@hizmarck_gitlab i have the same question. How to debug the command jhipster jdl my-custom-dl with VSCode?

I figured out how to debug with vscode. Thank you JHipster! You are awesome! So I decided to contribute as part of this hipster community, i explained step by step to how to configure the debug with vscode:
https://renan-af.medium.com/jhipster-how-to-debug-with-vscode-windows-10-a4cc36b9683

take a look @hizmarck_gitlab

John Cao
@jhcao23
Did anyone get the error devServerPort is not defined when running for kotlin blueprint?
tmbk
@tmbk

Hi! I am new to JHipster. I get this error when trying Angular with dotnetcore blueprints.
(jHipster 7.0.1)

Unhandled promise rejection at:
ReferenceError: /usr/local/lib/nodemodules/generator-jhipster/generators/client/templates/angular/package.json.ejs:169
167| <%
} _%>
168| "jest": "jest --coverage --logHeapUsage --maxWorkers=2 --config jest.conf.js",

169| "start": "ng serve<% if (!microfrontend) { %> --hmr<% } %>",
170| "start-tls": "<%= clientPackageManager %> run webapp:dev -- --env.tls",
171| <% if (skipServer) { %>
172| "sonar": "sonar-scanner",

microfrontend is not defined
Could anybody help? Thanks in advance.