The site I referred to is here. https://www.jhipster.tech/installation/
This time I will use Vagrant box installation. https://github.com/jhipster/jhipster-devbox
vagrant init jhipster/jhipster-devbox
vagrant up --provider virtualbox
As a result, you will be able to use Ubuntu with various tools set up nicely. When you execute jhipster_default ~~ from VirtualBox, the following nice screen will appear.
First, make an app. This time I chose React as the front end. https://www.jhipster.tech/creating-an-app/
Then create an Entity. At this time, set the item name and JPA Relationship interactively. https://www.jhipster.tech/creating-an-entity/
With this result, you can create an app that CRUDs nicely.
However, due to a problem specific to JHipster5.1, when saving the Many side of OneToMany, an Exception occurs on the server side and the save fails. This seems to have already been raised as an Issue. (Maybe fixed. Checking for a moment.) https://github.com/jhipster/generator-jhipster/issues/7967
Modification place
Add the following hidden parameter to the end of AvGroup.
<AvInput id="book-author-id" type="hidden" name="author.id" value={this.state.authorId} />
</AvGroup>
It's easy to enter the entire development environment.
Recommended Posts