Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
PacoMunoz
@PacoMunoz
@windbender I don't know if you uses that but it could help to make relative complex queries -> https://www.jhipster.tech/entities-filtering/
Peter E Olsen III
@hepaestus
Hey All.... Is there a way to set up the display of LINE NUMBERS in the Kibana Logger?
Bobby King
@BLKingLLC
Is there a way to export the DB contents into faker data files?
kavenr
@kavenr
Hi everyone, I can't get the registry+uaa+gateway to play along when used in Docker (prod profile). All POST requests fail with a 403 with a null pointer exception on the JWT token
Am I missing something or is the implementation incomplete?
Alejandro Matos
@amatosg
@BLKingLLC yes, if you're using mysql/mariadb, you can use Workbench to export the data as csv format, but I think it would a per table basis
Philip Jiang
@PhilipJiang88_twitter
hi everyone, I am new to Jhipster and angular. I wanted to try the live reload feature by making some changes to the UI, but found the browser didn't refresh, even if I clicked the refresh button. My jhipster version is 6.1.2, and someone asked similar question re the version 5.8.1 on stackoverflow, but didn't receive any good answer (https://stackoverflow.com/questions/54599333/auto-reload-not-working-what-should-i-check). Can anyone help me please? let me know what might be wrong. really appreciate.
Philip Jiang
@PhilipJiang88_twitter
BTW, my environment is desktop ubuntu 19.04, browser chrome 76, jdk 8. thx
duderoot
@duderoot

Hello everyone, I was searching for documentation to see if there is a reason why the one to many relations is generating only a standard API entry point like entity and CRUD i.e. POST,GET,PUT,DELETE e.g.
/albums/CRUD
/albums/{id}/CRUD
/songs/R
/songs/{id}/CRUD

and not something like:
/albums/CRUD
/albums/{id}/CRUD
/albums/{albumId}/songs/R
/albums/{albumId}/songs/{id}/CRUD

duderoot
@duderoot
@kavenr you say all POST requests are failing i.e. you can login and do GET on your resources? What about PUT?
Wayne Stidolph
@wayne-optin
I have a confi error somewhere ... generated monolith (ver 6.2.0) with separate client and server using JWT and they communicate fine. Then trying to reuse part of the client' in an existing template-based app. But, wat runtime I get 'Can't resolve all parameters for HttpXsrfInterceptor' ... so I'm missing a provider, I think, though I have the 4 HTTP_INTERCEPTORS set up that are in JH's app module providers array. Any thought? Or, where is JH configuring the HttpClientXsrfModule?
Wayne Stidolph
@wayne-optin
My HttpXsrfInterceptor problem was that I needed one of the polyfills JH6 (core-js/proposals/reflect-metadata)
Alejandro Matos
@amatosg
has any one done CORS? I need to call a public rest api service
Hojjat Abedi
@GLinBoy
Could you secure your API with roles (with PreAuthorize or Secured) when your app security use keycloak?
even SecurityUtils.isCurrentUserInRole(AuthoritiesConstants.ADMIN) doesn't work for me
kavenr
@kavenr
@duderoot I get the same access_denied error with PUT: Invalid CSRF Token. I seems only GET is working
That's when using the swagger ui
Hadi Rasouli
@hadirsa
@amatosg, you can find it in application-dev.yml(it's enabled),
# CORS is only enabled by default with the "dev" profile, so BrowserSync can access the API
kavenr
@kavenr
There are a few problems with the generated config when using the jhipster uaa: the oauth2 public-key-endpoint-uri and access-token-uri should contain the port 9999, which is the default uaa port. I added those config to the central-server-config spring cloud config folder. Also, the generated jhipster-registry.yml docker-compose file should point to the actual name of the uaa docker image such as "myuaa" instead of "uaa".
Then, I needed to checkout the jhipster-registry source code and fix the OAuth2ClientCredentialsService class to implement the oauth2 token exchange
kavenr
@kavenr
This fixes the swagger pages and logger pages of the registry
kavenr
@kavenr
I'm still getting 403 errors when using the swagger page on the gateway to do PUT or POST
I'll provide a pull request when I'm done
Ilya
@Eljah
Hello guys! I juat have realizaed that for Pageble REST controllers the CRUD screens generate dropdowns that return only 20 items out of the box. I know how to fix this, but I think I need to point your attention there, as it is rather silent bug
as others may thing the generated CRUD pages are "ideal" and neen no improvement
Januka Samaranayake
@janukasama
Hey guys, anyone facing the FB sign in problem in user profile not found in the context https://stackoverflow.com/questions/57509883/tried-accessing-nonexisting-field-context-on-node-type-user
vinayak12
@vinayak12
how to mention the primary key in JDL and add database sequence
@mhaawi were you able to find out how to add primary key in JDL ?
vinayak12
@vinayak12
@yelhouti i know jdl add id as primary key. is it possible to add custom primary key and add database sequence for auto increment
Mathieu ABOU-AICHI
@MathieuAA
@vinayak12 nope
choubani amir
@amirensit
Hi. Is there anyone using the latest version of npm and node with eirslett front end maven plugin. I am having this error:
Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.8.0:install-node-and-npm (install node and npm) on project client-app: The plugin com.github.eirslett:frontend-maven-plugin:1.8.0 requires Maven version 3.1.0
Peter E Olsen III
@hepaestus
@amirensit What version of Maven are you Running? $ mvn -v
Mule52
@Mule52
I am new to jhipster. I used the online generator to create a monolith app with Angular and Spring Boot. I am using IntelliJ as my IDE. What is the preferred approach to developing, compiling, and running this app? Should I be using terminal and executing ./mvnw? Should I be using IntelliJ to run the server? Do I need to run the Angular front end separately, using npm or yarn start? Thanks for any help. I have been playing with jhipster for 2 hours now, so it's still new and I am trying to wrap my head around the pieces.
Mule52
@Mule52
While this is a monolith app, I need to think of it as a server app and a client app. The server app I run with ./mvnw. I do not need to open a browser for it, but it listens on localhost:8080. The Angular client app I run with npm start, where live reload is built in. I navigate to localhost:9000 to interact with it.
kamlesh
@kamleshgorasiya

Hello Every One,

I am new to JHipster,
I am facing many issues while create or updating entities and its relationship, Is there any way to generate CRUD from the database tables, Like we can do it in NetBeans JPA, We can Create POJO class from database tables, Then DAO and Services, Controller and Views.

is there any such way. Or suggest me to design approach we need to follow while using Jhipster.

choubani amir
@amirensit
@hepaestus I am using 3.6.0 but my IDEA is using an old version (embedded one). I just change the configuration of my IDEA to use the latest version and It works. :thumbsup:
@Mule52 I suggest to take a look at jhipster doc : https://www.jhipster.tech/development/
Ahmed Yousseff
@AhmedYousseff
Hello,
i have a jhipster app - > using Mysql for both development and production after deployed to heroku in a later release version the deploy failed because of liquibase change i tried to add a release phase in Heroku yaml file but it did not work any idea how to update mysql heroku db
Peter E Olsen III
@hepaestus
@AhmedYousseff Can you drop your DB and start fresh with the new entities?
windbender
@windbender
Is there a built-in way to do a RangeFilter type query which is "between" two values ? And if not as someone example code of modifying a Criteria to allow this to happen ?
Alejandro Matos
@amatosg
@windbender use filtering
like xyz.in=someValue,otherValue
windbender
@windbender
Ah... hmm. so that causes a range operation ? I'll go look at that thanks.
Alejandro Matos
@amatosg
yeap
windbender
@windbender
works tnx.
Mule52
@Mule52
If I want to add a new page to the default monolith app with Angular, do I do this using ng g component employees from the webapp/app directory? Or should I use the entity sub-generator? https://www.jhipster.tech/using-angular/
Every time I need to add a new page, in my example above, employees, then what is the best practice or tutorial to follow? My employees page will need Spring Boot endpoints as well as all the Angular front end components. When I think of entities, I am thinking of simple database objects. Thanks for any help.
Mule52
@Mule52
The reason I am asking is because my employees page will not be a simple crud page, where all I do is edit/update employees. It will be a complex page, where I have a table of employees, and I have an employee filter with multiple criteria. If this is a complex page, do I still create an entity for it? I am trying to leverage as much of the jhipster code generation as I can so if/when I do add a component outside of entities, I will not run into issues with routes and importing of modules.
Mule52
@Mule52
I found yo jhipster-nav-element and that has added a page for me with all the routing. That's a great starting point.