I have a model.jdl with all entities defined like
entity A{ ... }
entity B{ ... }
entity C{ ... }
entity D{ ... }
and I added some options to distribute this entities in microservices with sometime like this:
microservice A,B with gateway
microservice C with app1
microservice D with app2
when I run the "yo jhipster:import-jdl model.jdl" command in the gateway folder, the liquibase's changelog don't include the entities A and B.
If I run the import in the apps folders, the liquibase changelog show all entities ignoring the distribution defined
I tested the model in a monolithic app without the microservices options and works well...
Here a model for test:
entity Car{
name String required
color Color
}
enum Color{
BLACK,WHITE,BLUE,GREEN,YELLOW
}
entity House{
address String required
}
entity Info{
phone String required
}
relationship OneToOne{
Info{user(login) required} to User
}
microservice Info with gateway
microservice Car with app1
microservice House with app2
search * with elasticsearch