Rory's answer is basically what I did, but I would like to provide more information.
First, I went through the generator and created all types of relationships to see which ones were processed and which ones were a warning. I found that sometimes it worked, and sometimes it is not, but it was not registered anywhere.
These relationships always work.
OneToMany
OneToOne (not owner)
ManyToMany (not owner)
These relationships only work when another object already exists.
ManyToOne
OneToOne (owner)
ManyToMany (owner)
The reason they do not work is always the same. All of them require that the foreign key be created on another table, which jHipster cannot do if it does not already exist. Of course, you could ignore the warning, but I was not sure if that meant something else would not work.
Based on these rules, I compiled a list of my entities and placed them in an order that would work without warning. If the object had relationships that might give a warning, I just made sure another object was created first.
It seems to have worked. The only thing I found out is that the generator is a one-time thing (you cannot use it to modify the entity), you need to know your circuit in front and generate a batch at a time.
source share