title: JHipster Liquibase MigrationFailedException
body: <p>I have a simple test application in jhipster. Liquibase does not generate fake data correctly and does not generate foreign keys into the database of entity B. Is it a known bug or what am I doing wrong? I would like to continue using Liquibase, but it seems to be very error-prone.</p>
  <pre><code>liquibase.exception.LiquibaseException: liquibase.exception.MigrationFailedException: Migration failed for change set config/liquibase/changelog/20211124143930_added_entity_constraints_B.xml::20211124143930-2::jhipster:
       Reason: liquibase.exception.DatabaseException: Feld &quot;A_ID&quot; nicht gefunden
  Column &quot;A_ID&quot; not found; SQL statement:
  ALTER TABLE PUBLIC.b ADD CONSTRAINT fk_bb__aa_id FOREIGN KEY (a_id) REFERENCES PUBLIC.a (id) [42122-200] [Failed SQL: (42122) ALTER TABLE PUBLIC.b ADD CONSTRAINT fk_bb__aa_id FOREIGN KEY (a_id) REFERENCES PUBLIC.a (id)]
  </code></pre>
  <p>JDL:</p>
  <pre><code>application {
    config {
      baseName myApp,
      applicationType monolith,
      packageName com.myapp,
      authenticationType jwt,
      prodDatabaseType mysql,
      clientFramework angular
    }
    entities *
  }
  
  entity A {
      number Long
  }
  
  entity B {
      testNumber Long
  }
  
  relationship OneToMany {
    A{b(testNumber)} to B{a(number)}
  }
  </code></pre>
  <p>JHipster info:</p>
  <pre><code>INFO! Using JHipster version installed locally in current project's node_modules
  Welcome to the JHipster Information Sub-Generator
  
  ##### **JHipster Version(s)**
  
  ```
  my-app@0.0.1-SNAPSHOT C:\Users\kleinoth\IdeaProjects\JHipster\zprojekt
  `-- generator-jhipster@7.3.0
  
  ```
  
  
  ##### **JHipster configuration, a `.yo-rc.json` file generated in the root folder**
  
  
  &lt;details&gt;
  &lt;summary&gt;.yo-rc.json file&lt;/summary&gt;
  &lt;pre&gt;
  {
    &quot;generator-jhipster&quot;: {
      &quot;authenticationType&quot;: &quot;jwt&quot;,
      &quot;cacheProvider&quot;: &quot;ehcache&quot;,
      &quot;clientFramework&quot;: &quot;angularX&quot;,
      &quot;serverPort&quot;: &quot;8080&quot;,
      &quot;serviceDiscoveryType&quot;: false,
      &quot;skipUserManagement&quot;: false,
      &quot;withAdminUi&quot;: true,
      &quot;baseName&quot;: &quot;myApp&quot;,
      &quot;buildTool&quot;: &quot;maven&quot;,
      &quot;databaseType&quot;: &quot;sql&quot;,
      &quot;devDatabaseType&quot;: &quot;h2Disk&quot;,
      &quot;enableHibernateCache&quot;: true,
      &quot;enableSwaggerCodegen&quot;: false,
      &quot;enableTranslation&quot;: true,
      &quot;jhiPrefix&quot;: &quot;jhi&quot;,
      &quot;languages&quot;: [&quot;en&quot;],
      &quot;messageBroker&quot;: false,
      &quot;prodDatabaseType&quot;: &quot;mysql&quot;,
      &quot;searchEngine&quot;: false,
      &quot;skipClient&quot;: false,
      &quot;testFrameworks&quot;: [],
      &quot;websocket&quot;: false,
      &quot;enableGradleEnterprise&quot;: false,
      &quot;gradleEnterpriseHost&quot;: &quot;&quot;,
      &quot;applicationType&quot;: &quot;monolith&quot;,
      &quot;packageName&quot;: &quot;com.myapp&quot;,
      &quot;packageFolder&quot;: &quot;com/myapp&quot;,
      &quot;jhipsterVersion&quot;: &quot;7.3.0&quot;,
      &quot;skipServer&quot;: false,
      &quot;clientPackageManager&quot;: &quot;npm&quot;,
      &quot;dtoSuffix&quot;: &quot;DTO&quot;,
      &quot;entitySuffix&quot;: &quot;&quot;,
      &quot;reactive&quot;: false,
      &quot;clientTheme&quot;: &quot;none&quot;,
      &quot;clientThemeVariant&quot;: &quot;&quot;,
      &quot;applicationIndex&quot;: 0,
      &quot;entities&quot;: [&quot;A&quot;, &quot;B&quot;],
      &quot;skipCheckLengthOfIdentifier&quot;: false,
      &quot;skipFakeData&quot;: false,
      &quot;blueprints&quot;: [],
      &quot;otherModules&quot;: [],
      &quot;pages&quot;: [],
      &quot;nativeLanguage&quot;: &quot;en&quot;,
      &quot;creationTimestamp&quot;: 1637764650493,
      &quot;jwtSecretKey&quot;: &quot;YourJWTSecretKeyWasReplacedByThisMeaninglessTextByTheJHipsterInfoCommandForObviousSecurityReasons&quot;,
      &quot;devServerPort&quot;: 4200,
      &quot;lastLiquibaseTimestamp&quot;: 1637764770000
    }
  }
  
  &lt;/pre&gt;
  &lt;/details&gt;
  
  
  ##### **JDL for the Entity configuration(s) `entityName.json` files generated in the `.jhipster` directory**
  
  &lt;details&gt;
  &lt;summary&gt;JDL entity definitions&lt;/summary&gt;
  
  &lt;pre&gt;
  entity A {
    number Long
  }
  entity B {
    testNumber Long
  }
  relationship OneToMany {
    A{b(testNumber)} to B{a(number)}
  }
  
  
  &lt;/pre&gt;
  &lt;/details&gt;
  
  
  ##### **Environment and Tools**
  
  openjdk version &quot;11.0.9.1&quot; 2020-11-04
  OpenJDK Runtime Environment AdoptOpenJDK (build 11.0.9.1+1)
  OpenJDK 64-Bit Server VM AdoptOpenJDK (build 11.0.9.1+1, mixed mode)
  
  git version 2.33.1.windows.1
  
  node: v14.17.1
  
  npm: 8.0.0
  
  Docker version 20.10.8, build 3967b7d
  
  docker-compose version 1.29.2, build 5becea4c
  
  
  No change to package.json was detected. No package manager install will be executed.
  Congratulations, JHipster execution is complete!
  Sponsored with ❤️  by @oktadev.
  </code></pre>