Questions tagged [jhipster]
JHipster is a development platform to generate, develop and deploy Spring Boot, Angular/React/Vue Web applications and Spring microservices.
4,681
questions
1
vote
1
answer
36
views
What is the best practice to protect some fields in a entity for being edited?
I started playing around with JHipster and created my first JDL-Entities. I learned that an Entity can be "readonly", but is there a way to secure a field like "creationDate" is ...
0
votes
0
answers
10
views
JHipster swagger change request URL in application-prod.yml
I have changed correctly the host name for swagger but connot find a way to change from http to https in production server (i have jhipster inside container behind proxy , he's listening on http://...
1
vote
1
answer
47
views
jHipster gateway downstream prefix
I'm updating old jHipster gateway to 7.5.0 version. New version uses Spring Cloud Gateway (with Eureka), while the old one used Zuul. In previous version working with Service Discovery having service ...
0
votes
0
answers
52
views
Cannot find module 'vue/complier-sfc'
I try to upgrade our project to the JHipster latest 7.6.0. I get an error
Cannot find module 'vue/complier-sfc'
after fixing an upstream dependency conflict on @vue/eslint-config-prettier.
I am not ...
0
votes
0
answers
24
views
jhipster payload case sensitivity issue?
I m facing a strange issue,
I have a shop model with offers. the shop is set on the offer using a "one to many" relation in JDL studio:
relationship OneToMany{
MModernShop{MModernOffer(...
0
votes
0
answers
9
views
Swagger UI not showing Forms for Criteria In Jhipster Project [duplicate]
I recently upgraded my JHipster Application from 7.3 to 7.5 and noticed that the Swagger UI looks very different. It used to look like this Previously I was able to make API requests by filling out ...
0
votes
0
answers
15
views
Jhispter best practices
What's the best practices for request body.
(1) Creating **RequestBodyDTO in service.dto or (2) Creating **RequestBodyVM in web.rest.vm package
thank you
0
votes
0
answers
87
views
deployment registry service by kubernetes but registry service make Connection refused error
connection refused when deployment jhipster registry with Kubernetes
Request execution error. endpoint=DefaultEndpoint{ serviceUrl='http://admin:admin@jhipster-registry-1.jhipster-registry.shopbia.svc....
0
votes
0
answers
36
views
Jhipster overwriting existing entities when trying to add new entities
When trying to add new entities in project trough jhipster import-jdl, jhipster is overwriting already existing entities. I'm using jhipster version 7.0.0.
This is the script with entities:
entity ...
0
votes
0
answers
46
views
How can I reindex elasticsearch?
I am using jhipster 7.5.0 and I tryed to install generator-jhipster-elasticsearch-reindexer, but seems it does not work with this jhipster version. I am trying to reindex all elasticsearch indexes ...
0
votes
0
answers
94
views
I was trying to fix a does not exist on type 'any[]'.ts(2339) error?
I am getting information from the movie db api and I was getting this error. Property 'videos' does not exist on type 'any[]'ts(2339).
const videoTrailer = selectedMovie.videos.results.find(vid => ...
0
votes
1
answer
43
views
getting Content Security Policy error after deploying jhipster Angular application on Heroku while accessing Marketo REST APIs
I have created Angular based monolith application using jhipster. From Angular I made http calls to Marketo REST APIs and are working fine in my local. I could able to generate access token then GET ...
0
votes
0
answers
41
views
jhipster deployment with production profile
After deploying the project, the below files are not accessible by application and returns (404 error).
app/vendors.eceacbd701ac11fe01f8.bundle.js
content/main.eceacbd701ac11fe01f8.css
app/main....
0
votes
0
answers
21
views
jHipster relationship mapping
I wonder if there is an easy way to configure jHipster to use reference IDs instead of complete objects in the resource JSON? For example, Customer 1..* Organization mapping by default results in:
{
...
0
votes
0
answers
47
views
Recalculate pagination when filter request is applied
I have this React page generated by JHipster:
import ......
export interface IOrdersProps extends StateProps, DispatchProps, RouteComponentProps<{ url: string }> {}
export const Orders = (...
4
votes
0
answers
223
views
Liquibase Hibernate missing SequenceStyleGenerator.generatorKey() error
I am trying to generate a diff changelog using Liquibase and Hibernate but when I run the command gradle diffChangeLog I get the following error:
ERROR [liquibase.integration.commandline.Main]: ...
1
vote
0
answers
51
views
Is there any example to filter data by model's field in vue
I am using generator-jhipster-quasar to maintain MongoDB data. I need to have a filter that applies the Criteria of user inputs.
Hence, users will put operators against fields of several types but ...
1
vote
2
answers
83
views
jhipster recreate database tables
using jhipster I have created Angular based Monolith application (MySQL) and loaded jdl file, everything is working fine. But by mistake I have dropped MySQL database schema. Now I have recreated the ...
0
votes
1
answer
45
views
What is the correct and best way to deploy jhipster applications (registry, gateway and a microservice) to AWS?
If I see JHipster production Deploy to AWS instructions, it looks like I will have to execute jhipster aws commands under each application (gateway, microservice, registry).
Is that so? Won't it ...
1
vote
0
answers
46
views
Setting up elasticsearch in a Jhipster / react / mongo DB project
can anyone provide any guidance regarding setting up a jhipster project with elasticsearch (while using mongoDB)? I have followed the docs in jhipster but I think I'm missing a step to index my ...
0
votes
1
answer
904
views
No provider for OktaAuth but OktaAuth define?
Regards to th Okta Documentation : https://developer.okta.com/docs/guides/sign-into-spa/angular/main/#configure-the-sdk, I've configured my application to authentificate with Google.
So, I have ...
0
votes
0
answers
21
views
Elasticsearch using Jhipster giving null exceptions
Using jhipster for a demo project with elasticsearch, works fine when we create a new entity but when we call for reindexing the existing data fails with a ‘stackoverflow’ exception on:
...
0
votes
0
answers
30
views
Extend Jhipster util library for React
I have this JHipster library which is used to make crud operations:
import { AxiosPromise } from 'axios';
export interface IPayload<T> {
type: string;
payload: AxiosPromise<T>;
meta?...
0
votes
0
answers
39
views
Receiving prepared statement error frequently while using postgres in jhipster gateway
I am getting prepared statement error frequently in application gateway frequently. I am not getting this error while using monolith or microservice
Gateway uses r2dbc driver whereas the other uses ...
1
vote
0
answers
111
views
Enable both Stateless Spring JWT Authentication and OAuth2 ODIC Based Authentication on jhipster
our existing application Based on Jhipster uses JWT Authentication. We are using angular + spring boot + postgresql database .
We want to add a feature SSO via openid connect .
Our clients need to ...
0
votes
0
answers
112
views
Spring Boot and Hazelcast on AWS ECS EC2 with default network
Is there a way to deploy a Spring Boot (JHipster) application with Hazelcast on an AWS ECS cluster that uses EC2 (not Fargate) and the network as "default" (Bridge network on Linux)? The ...
1
vote
1
answer
26
views
Reload table data when select menu item is changed
I have this table with select menu:
export interface IActivePairsProps extends StateProps, DispatchProps, RouteComponentProps<{ url: string }> {}
export const ActivePairs = (props: ...
0
votes
0
answers
14
views
How to display entities with null fields when sorting with jhiSort?
I am trying to sort entities like this in jhipster:
jhiSort="entity1Entity2Entity3Name" ..
The problem is Entity2 can be null and it will only display my entity1es with that field not null....
1
vote
1
answer
269
views
NPE from reactor.core.publisher.MonoFlatMap
I wan to create JPA repository into reactive JHipster project. I tried this:
private ActivePairsSearchRepository activePairsSearchRepository;
public ActivePairsSearchResource(){
}
...
0
votes
0
answers
17
views
Jhipster "ERROR in ./src/main/webapp/app/entities/<myentity>/<myentity>.reducer" - how do I fix this?
Building my khipster (kotlin) app again after a while, it now fails with
ERROR in ./src/main/webapp/app/entities/bag/bag-update.tsx 7:0-91
Module not found: Error: Can't resolve 'app/entities/...
0
votes
0
answers
81
views
Add JPA repository in reactive JHipster project
I have a JHipster project which is configured as a reactive project. I need to add JPA repository.
I changed this:
@Repository
public interface ActivePairsRepository extends R2dbcRepository<...
1
vote
0
answers
153
views
jhipster spring boot tomcat java.lang.IllegalStateException: getOutputStream() has already been called for this response
we currently have a problem with our jhipster application. from time to time the following exception is logged on our server
2021-12-15 09:58:09.813 ERROR 2784 --- [0.1-8080-exec-4] o.a.c.c.C.[.[.[.[...
0
votes
0
answers
207
views
Springboot Keycloak admin CLI Realm Role udpate effective only after application service reboot
I am working on keycloak admin CLI with Springboot to update a user's realm role from my web application. The code to update realm role is:
public void updateOauthRoles(String userId, Set<String>...
0
votes
0
answers
23
views
Generate SQL Criteria in Hipster
I want to add search param into this code. I tries this:
public Flux<ActivePairs> findAll(Pageable pageable, ActivePairsSearchParams params) {
Criteria criteria = Criteria.from(Criteria....
0
votes
1
answer
239
views
Spring JUnit Expected Status 200 but was 404
I'm using JUnit to test the routes of an application. The problem is that I am making a PUT request to a route, which I think should return a Status 200, but in reality it returns 404. I have already ...
0
votes
0
answers
455
views
How to test a REST API that call a FeignClient?
I am using Jhipster to do 2 microservices. One microservice calls the other microservice using FeignClient, but when I try to test the first microservice it gives an error, I think the cause is the ...
0
votes
0
answers
27
views
Get All User Data in jhipster (for relationship management)
I want to get the email adresses from all users of the user entity. (frontend - angular) But i get a 500 error ( -> no admin). is there a workaround.
0
votes
0
answers
36
views
Should OAuth2RefreshtokensWebFilter Be Used Some Where?
I have a JHipster generated app for OAuth2 client. It has an undesired behavior, which is quite bad from the user experience point of view, after user session timeout. I find the ...
1
vote
0
answers
63
views
Browser loads old version of file after each release even when using new hash in file names
Our web app was created using Jhipster with Webpack and using service workers to make it "installable" for users on their device. We use this workbox plugin setup for it in webpack.prod.js
...
0
votes
0
answers
14
views
How to fix multiple authorization lookup points?
We have an OAuth2 client app built by JHipster. The OAuth2 server doesn't fully implement the OAuth2 specifications and doesn't a user role information. To make this situation work on the app, we add ...
0
votes
0
answers
33
views
Is jhipster-entity-audit still valid?
To my memory, entity auditing was a part of the JHipster generator a few years ago. Recently, I try
yo jhipster-entity-audit
for JHipster 7.3.1 and it fields an error
... is not a function
Is the ...
0
votes
0
answers
89
views
Add search option for React table in JHipster
I have this react table in JHipster project:
<div className="table-responsive">
{activePairsList && activePairsList.length > 0 ? (
<Table responsive>
...
0
votes
0
answers
33
views
How do Gradle dependencies work and how can I import a WooCommerce API?
I am new to using Spring, and I am using Jhipster. In the Backend, I want to make a communication with the WooCommerce API so that with a Spring Batch every hour to check if there are new orders. I ...
0
votes
1
answer
101
views
JHipster generated file failed to convert property value of type 'java.lang.String' to required type 'java.time.LocalDate'
I have generated the files by using JHipster and currently I am trying to call a query which involves a Date variable but am getting a failed conversion.
The following is my typescript file method ...
0
votes
1
answer
66
views
Where is the session timeout limit defined for the OAuth2 authentication?
To my understanding, the Oauth2 client uses a session for user login-in management. I, however, can't find where the timeout limit is defined. I am asked to ensure the timeout limit is 15 minutes. ...
0
votes
0
answers
65
views
Jhipster multitenancy in latest version
How can we generate a multitenancy application using the latest jhipster version.
I found a blueprint which is last updated 2 years back and has version 6.3.1
https://www.npmjs.com/package/generator-...
2
votes
1
answer
143
views
Using JpaSpecificationExecutor with EntityGraph
I am using a implementation of JpaSpecificationExecutor and trying to use in the repository the @EntityGraph for select which relationships entity they get in a complex query.
My entities examples (...
0
votes
0
answers
35
views
ReactJS: Handle Role for User
I have a page that I use to check the user authorization
const Routes = auth => {
return (
<div className="view-routes">
//...
<PrivateRoute
path="/"...
0
votes
1
answer
131
views
Profile change is not working with gradle in jhipster 7
Changing profiles doesn't work in an app generated with jhipster (v7.3 & 7.4) and gradle. I followed this. When I run from command-line gradlew -Pprod, the app always starts in dev profile:
No ...
0
votes
0
answers
18
views
Where to find JHipster-Generator documentation?
Can anyone recommend me documentation on where to start to write blueprints or JHipster modules? I miss a clean documentation to be able to find my way around the generator code.
On the official ...