Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
kaffel
@kaffelmedhoussem:matrix.org
[m]
it works now ...
kaffel
@kaffelmedhoussem:matrix.org
[m]
@CGarces Thank you bro it works
i just add this.activeModal.close();
kaffel
@kaffelmedhoussem:matrix.org
[m]
to make it work perfectly
Pablo
@PabloGancharov
Hello, can somebody point me some documentation about using a mapper inside another mapper?
Thanks!
Manoj Deb
@manojdeb922_gitlab
I am trying to use filter option, not working for me. I have changed the entity by setting service to serviceClass or serviceImpl from no, and jpaMetamodelFiltering to trueupdate UNDER .jhipster folder. After re-generate with jhipster entity <entity name>. It re creates the json file and override jpaMetamodelFiltering . ALso in the console I see warning message "Not compatible with jpaMetamodelFiltering, disabling" ... Any thoughts?
Lucas Bracher
@lucasbracher
Hi there! I'm pretty new to jhipster, and I got a project from another developer that gave up on developing this project.
So I went through the basic documentation, I installed generator-jhipster, yo, npm install, and when I issued the command ./mvnw I got this error message after a long time: https://dpaste.org/aWXU
What am I missing? Could you help me on it?
Thanks a lot!
John Poole
@jdpoole_gitlab
@lucasbracher If you installed the newest version it's probably incompatible with that project's version. You could install the version they used to get it running, but long term you'll want to upgrade to the new one.
Lucas Bracher
@lucasbracher
@jdpoole_gitlab I discovered what happened... sql script that installed the db named it on minuscules, while the code expected it in CamelCase... it was simple! Thanks! :)
Konstantin Pribluda
@ko5tik
Are there blueprints to generate client libraries for microservices?
Kodis Babu
@kodisj_twitter
Hi guys, can i run the react only build (--skip-server) using s3 ?
1 reply
rbill
@rbill
Hi everyone, I want to create a unidirectional ManyToMany-relationship with JDL, but it complains that I have to set both field names. However, while I want that it is a ManyToMany relationship in the Database (i.e. a table), I want that it can only be accessed/managed from one side. Is there any way to do that?
Lucas Bracher
@lucasbracher
Hello! I'm trying to fix a third-party developed application whose backend runs on jhipster and the frontend runs on ReactJS.
I see package.json on frontend that has the entry "proxy": "http://localhost:8080" that points to jhipster, but when I try to authenticate on frontend (´http://localhost:3000´), browser presents an error 404. I don't know if I need to solve it on backend or frontend. Anybody had the same issue?
Rutuja
@RtzS

Hello
I am trying to dockerize jhipster application but every time when I execute "mvnw package -Pprod verify jib:dockerBuild" build get failed with some npm error.

[INFO] node_modules/jest-diff/build/printDiffs.d.ts(8,13): error TS1005: '=' expected.
[INFO] node_modules/jest-diff/build/printDiffs.d.ts(8,57): error TS1005: ';' expected.
[INFO]
[ERROR] npm ERR! A complete log of this run can be found in:
[ERROR] npm ERR! C:\Users\rswami\AppData\Roaming\npm-cache_logs\2021-04-21T09_48_33_879Z-debug.log
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 03:30 min
[INFO] Finished at: 2021-04-21T15:18:35+05:30
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal com.github.eirslett:frontend-maven-plugin:1.7.6:npm (webpack build prod) on project test-app: Failed to run task: 'npm run webpack:prod' failed. org.apache.commons.exec.ExecuteException: Process exited with an error: 2 (Exit value: 2) -> [Help 1]
[ERROR]
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR]
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/MojoFailureException

Rutuja
@RtzS
Hi All, I am new to Jhipster and using latest Jhipster version for my angular application. But observed Dockerfile is not created in docker folder. Now I want to dockerize my application but I am not aware how to do this. Can any one please guide me on this.
Thankyou in advance:)
kaffel
@kaffelmedhoussem:matrix.org
[m]
this will help you
Guys i want to add sidebar to main componenet any suggestion how to make this happen ?
2 replies
IhebHmissa
@IhebHmissa
Hey everyone, I'm a new Jhipster user and all is going well with except i have one issue . I have an application in which each user have categories i don't know how i make that user sees only his categories in the jhipster entitys
2 replies
ZINE mahmoud
@fitdeveloper
Hey everyone !
i want to know how to add a new relationship with an existing entity let's say 'entityA' with a new 'entityB' without regenerating the existing 'entityA'
reason : is that because I have made a lot of UI and Backend changes in my code. (let's say for example if you have an application already on production so making a new jdl and regenerate it from zero won't be the best solution for this case ) any ideas please ?
Abhijeet Rathod
@abhirathod

I am using MicroService architecture and all services created using JHipster utility.
I am getting below error for one service:
can someone guide me for this issue?


APPLICATION FAILED TO START


Description:

Parameter 0 of method hibernatePropertiesCustomizer in com.xxxx.config.CacheConfiguration required a bean of type 'javax.cache.CacheManager' that could not be found.

The following candidates were found but could not be injected:

    - Bean method 'jCacheCacheManager' in 'JCacheCacheConfiguration' not loaded because Cache org.springframework.boot.autoconfigure.cache.JCacheCacheConfiguration unknown cache type

Action:

Consider revisiting the entries above or defining a bean of type 'javax.cache.CacheManager' in your configuration.

2021-04-28 19:07:01.013 WARN 20240 --- [ndations-task-1] com.zaxxer.hikari.pool.ProxyConnection : Hikari - Connection org.postgresql.jdbc.PgConnection@1c624c1 marked as broken because of SQLSTATE(08003), ErrorCode(0)

ericzhang
@shougao
how to using uaa on Jhipster 7.0
because the keycloak has the performance issue, and 7.0 has lots of imporve, so i want to use the jhipster 7.0.
but how to add the UAA back when generate the micro service project.
KarstenBlume
@KarstenBlume
No relationship between DTO objects - Why?
Hello!
I generated some entities with JHipster7 and the corresponding DTOs, whereas the entities have a direct relationship the DTOs don't. Am i supposed in my service class to go this way: DTO -> mapToEntiy -> getRelatedEntity -> whatever business logic i need -> mapToDto -> send response
emilpaw
@emilpaw

Hello,
I am working on a social media style page and want to implement "Like"-Entities. That means the data representation of an user clicking on the like button on a post or comment. This are the relevant part of entities I already have:

entity ApplicationUser
entity Post
entity Comment

Now I have three ideas how to model the Like entity:
1.

entity LikePost 
entity LikeComment

relationship ManyToOne {
    LikePost{post required} to Post
    LikeComment{comment required} to Comment

    LikePost{user required} to ApplicationUser
    LikeComment{user required} to ApplicationUser
}

2.

entity Like 

relationship ManyToOne {
    Like{post} to Post
    Like{comment} to Comment

    Like{user required} to ApplicationUser
}

3.

entity Like
entity LikePost 
entity LikeComment

relationship ManyToOne {
    LikePost{like required} to Like
    LikeComment{like required} to Like

    Like{user required} to ApplicationUser
}

I'd like to hear your thoughts on what's the best solution for my use case.

3 replies
Konstantin Pribluda
@ko5tik
This message was deleted
Konstantin Pribluda
@ko5tik
After some investigation, rephrasing question. In my gateway application ( from authenticated user resource ) I would like to call feign client ( generated by openapi-client ) - how do I propagate JWT token to client call?
2 replies
Ivan
@ipintar
Hello people, I'm new with jhipster, spring boot and angular. I've finished some tutorials on Springboot and Angular themes. I wodner if u can point me out on some more tutorials on how to use jhipster and how to MODIFY generated jhipster application. Lets say i want an app to managae student and courses. Mainly I'd like you to point me out on some best tutorials for jhipster. TY
1 reply
emilpaw
@emilpaw

Is there a way to model something like this in JDL?

GaleryEntry{entry} to YouTubeLink
GaleryEntry{entry} to Image

GaleryEntry must either have a one-to-one relationship to YouTubeLink or to Image. Not to both.

hosseinhub
@hosseinhub
Hello ..
I need a tool to get the PDF from the list. I used from the kendo, but it does not know Persian font. Introduce something you know?
Please do not use reporting tools like Stimul
Alejandro Matos
@amatosg
@hosseinhub use pdfMake
@emilpaw I don't think so, you would have to do it in the backend (and probably in the frontend)
Anders Kristian Andersen
@anderskristian
I'm using React UI in jhipster 7.0.1 . When I edit rows in in "entity" - then foreign keys becomes null. The value is there - but it is not selected in the user interface
1 reply
image.png
Anders Kristian Andersen
@anderskristian
Using jHipster 7.0.1 React + reactive=true
When I edit rows in a pageable table.
When I get back to the list view - then the list view is a different list view
So it is confusing to edit in the entity interface.
Ivan
@ipintar
image.png
I'm having issues importing jdl file.
1 reply
Kamrul Islam Tushar
@kamrulislamtushar
I am using jhipster for quick development. But I need a little change on my application which is, we have a system ( Central Credential Provider) which stores all of our user and their password and with specific parameter I get the details. For security reasons we need to change our application to call REST API of CCP and get the details then with the details app should connect to database instead of loading DB configuration from the YML file. I studeied almost all the document I could find for Spring boot Jhipster applications. But couldn't found a solution. Is there any way to achieve this?
1 reply
Bertrand
@Bertpey
hi, i have same problems, i can't generate entities, i have the sqme problems on parser
Error: Error parsing file src\main\java\com\mycompany\myapp\repository\RegionRepository.java: Error: Sad sad panda, parsing errors detected in line: 12, column: 43!
Expecting token of type --> Identifier <-- but found --> '<' <--!
1 reply
an idea ?
emilpaw
@emilpaw
We have an app which is pretty low on the amount of business logic but we need to change how the data which the resource returns looks like. For example we need to add some fields from the User and our composite UserInfo entity to a request to a Post. Another example is that we want to create an endpoint which returns only some parts of User and UserInfo (to not leak any sensitive data like the email address).
Is defining a DTO for every Response the way to go? Or should we do this with View Models? What's the difference anyway. In my opinion the JHipster documentation is pretty lacking in that aspect. Adding some recommendations or info on what to consider when deciding how to implement some common use cases would greatly improve DX.
5 replies
Carlos Garcés
@CGarces

I need to implement a massive insert, some like this
@Modifying
@Query(
value =
"insert into mytable (some, fields) " +
" select some, fields " +
" from a " +
" inner join b on b.id = a.b_id " +
" inner join c on b.c_id= c.id " +
" where a.id in :id_lists ",
nativeQuery = true)
void masiveinsert(@Param("id_lists") List<Long> id_lists);

I have modified the java Service and Resource, but I'm not sure about the Repository and how expose it as REST service. Any hint about how pass the List<Long> as parameter from Angular to Java?

18 replies
julienbourgoin
@julienbourgoin
Hi everyones, I am trying to adapt my blueprint which was working with last jhipster6 version, to work with jhipster7. I am encoutering the following message : "WARNING! Priority composing is missing for generator my-blueprint:server. Merging into default priority.". Any idea why this message appears ? Is their any documentation for blueprint development ?
julienbourgoin
@julienbourgoin
Furthermore, I am trying to remove some non-needed files/folders generated by jhipster in my blueprint. It's OK for most of them, but since jhipster7, some of them can't be deleted. For exemple, I can't remove the folder grafana in the docker dir, as the generation fail with the error message : ERROR! Template file src/main/docker/grafana was not found. Any idea ? Thanks
1 reply
Alejandro Matos
@amatosg
I'm getting this error while running my tests:
Unable to build Hibernate SessionFactory; nested exception is org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: wrong column type encountered in column [notes] in table [fa_order]; found [clob (Types#CLOB)], but expecting [varchar(255) (Types#VARCHAR)]
Gamal Alkzaz
@galkzaz

i get this errors when generating new app

src/main/webapp/app/entities/geo-layer/update/geo-layer-update.component.html:337:29 - error TS2339: Property 'onGeoStyleLazyLoadEvent' does not exist on type 'GeoLayerUpdateComponent'.

337               (onLazyLoad)="onGeoStyleLazyLoadEvent($event)"

also for enum i got

src/main/webapp/app/entities/geo-layer/update/geo-layer-update.component.ts:30:22 - error TS2304: Cannot find name 'GEO_LAYER_STORE_TYPE_ARRAY'.

30   storeTypeOptions = GEO_LAYER_STORE_TYPE_ARRAY.map((s: GeoLayerStoreType) => ({ label: s.toString(), value: s }));

src/main/webapp/app/entities/geo-layer/update/geo-layer-update.component.ts:30:57 - error TS2304: Cannot find name 'GeoLayerStoreType'.

30   storeTypeOptions = GEO_LAYER_STORE_TYPE_ARRAY.map((s: GeoLayerStoreType) => ({ label: s.toString(), value: s }));

why generator dosen't inject enum import

  storeTypeOptions = GEO_LAYER_STORE_TYPE_ARRAY.map((s: GeoLayerStoreType) => ({ label: s.toString(), value: s }));
  timeFormatOptions = GEO_LAYER_TIME_FORMAT_ARRAY.map((s: GeoLayerTimeFormat) => ({ label: s.toString(), value: s }));

What i'm missing here

Mike
@Tonterias
Hi everybody, does it only happen to me? I tried to push a 7.0.1 project to github and it is sooo huge that I got a: Wfatal: the remote end hung up unexpectedly message. Has the .gitignore changed? Thanks
2 replies
Damian Hanusiak
@SkySurferOne
Hey, does anyone used spring-cloud-starter-kubernetes in jhipster maybe?
Konstantin Pribluda
@ko5tik
I finally got reactive feign client working in a gateway. I had to call microservices from gateway, with propagation of JWT and everythimg. Just sharing my findings and some code: https://www.pribluda.de/articles/20210506reactiveclient/
Hossein Mirjalali
@HosseinMirjalali
Trying to import jdl file getting this error ERROR! Error downloading https://raw.githubusercontent.com/jhipster/jdl-samples/main/jhipster-jdl.jh: 404 - Not Found
Any idea?