jdl-studio | JDL Studio is an online JHipster Domain Language | Object-Relational Mapping library
kandi X-RAY | jdl-studio Summary
kandi X-RAY | jdl-studio Summary
JDL Studio is an online JHipster Domain Language visual editor
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of jdl-studio
jdl-studio Key Features
jdl-studio Examples and Code Snippets
Community Discussions
Trending Discussions on jdl-studio
QUESTION
I'm new to jhipster, and have created a JDL file for Entities in my service using JDL Studio.
My goal is to keep iterating on my DB design, using JDL Studio, and then run the service so I can see the Entity screens that jhipster has created. How should I do this?
I have reviewed the docs on database updates, but I find it doesn't lay out this common development task clearly - wanting to iterate on a DB design. I see suggestions fo using jhipster entity ...
but does that mean JDL Studio can only be used at the start of development?
My current process I'm hoping will work in some fashion is this:
- Make changes to my entities in JDL Studio
- Download changes to
entities.jdl
- run
jhipster import-jdl entities.jdl
- Tell it to overwrite everything - I have no customizations to the code yet in anyway.
- Try and run the service using
./mvnw
I currently have very little code that is custom so far, and what I have is committed to git, so I can diff/revert changes if need be.
The problem is that I see to get conflicts, or the app breaks and won't compile, around things that seem related to the entities not being updated correctly. I'm perfectly fine with overwriting everything to just get the updated entities, and front end files
I've tried removing node_modules
, target
, and .jhipster/*
files to see if I could cleanly recreate the entities, but it still has conflicts.
Note I'm only using H2 at this point, and don't plan on using liquibase/a real db until I actually release something, so probably months from now. Thanks!
...ANSWER
Answered 2022-Mar-20 at 14:27As suggested in the question comments, the basic process is as I listed in my question. I think there were 2 things that solved my problem
- completely removing the
src
folder, and allowing it to be regenerated - supplying both my JDL files at once on the command line.
I have 2 JDL files, one for entities, and one for relationships, which I broke out separately while trying to figure out how to best do these updates. I was running them separately as well, which worked fine for the entities JDL file, but wouldn't for the relationships one, as it needed the entities too.
So my solution seems to have been the following:
QUESTION
I have just installed JHipster (VueJS) thru docker image, and I imported jdl file directly form https://start.jhipster.tech/jdl-studio/.
...ANSWER
Answered 2020-Sep-30 at 10:46By using -P-webpack
, you deactivate webpack profile which means the frontend is not built by maven and not bundled in the backend, this works only if you access the frontend through the webpack dev server on port 9000.
Otherwise if you access it through the backend port (8080) you'll see the result of latest successful build which in your case was at the project generation when there was no entities yet.
QUESTION
I want to create an entity (called StudentInfo
) that has a one-to-one relationship to the User entity (generated my jhipster). How can I do this using JDL-studio ? Do I just declare a relationship to the User like so :
ANSWER
Answered 2020-Feb-20 at 16:39Here's how I've done it in one of my JDL's for a blog app.
QUESTION
I have this model: You can paste it here https://start.jhipster.tech/jdl-studio/
...ANSWER
Answered 2020-Feb-04 at 13:311 - The json view annotation (more flexible)
https://mkyong.com/java/jackson-jsonview-examples/ or https://www.logicbig.com/tutorials/misc/jackson/json-view-annotation.html or https://spring.io/blog/2014/12/02/latest-jackson-integration-improvements-in-spring
AllViews.java :
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install jdl-studio
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page