I have created a new project, created some entities which were initially recognised as a changelog.
After I restarted IntelliJ, no more changelogs are created.
When I check manually, JMIX Studio says that database and changelogs are synced.
Changelog:
<?xml version="1.0" encoding="UTF-8"?>
<databaseChangeLog
xmlns="http://www.liquibase.org/xml/ns/dbchangelog"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog
http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-latest.xsd"
objectQuotingStrategy="QUOTE_ONLY_RESERVED_WORDS">
<changeSet id="1" author="core">
<createTable tableName="CORE_MACHINE">
<column name="ID" type="UUID">
<constraints nullable="false" primaryKey="true" primaryKeyName="PK_CORE_MACHINE"/>
</column>
<column name="NAME" type="VARCHAR(255)">
<constraints nullable="false"/>
</column>
<column name="LAST_MODIFIED_BY" type="VARCHAR(255)"/>
<column name="LAST_MODIFIED_DATE" type="timestamp with time zone"/>
<column name="CREATED_BY" type="VARCHAR(255)"/>
<column name="CREATED_DATE" type="timestamp with time zone"/>
</createTable>
</changeSet>
</databaseChangeLog>
IntelliJ Log:
2023-12-16 17:50:43,964 [ 428796] INFO - #o.j.p.g.GradleManager - Instructing gradle to use java from C:/Users/Jan Heil/.jdks/corretto-17.0.9
2023-12-16 17:50:43,971 [ 428803] INFO - #o.j.p.g.s.e.GradleExecutionHelper - Passing command-line to Gradle Tooling API: bootRun --init-script C:\Users\JANHEI~1\AppData\Local\Temp\ijMapper1.gradle --init-script C:\Users\JANHEI~1\AppData\Local\Temp\ijresolvers3.gradle -Didea.active=true -Didea.version=2023.3.2 -Didea.vendor.name=JetBrains
2023-12-16 17:50:47,743 [ 432575] INFO - #o.j.p.g.GradleManager - Instructing gradle to use java from C:/Users/Jan Heil/.jdks/corretto-17.0.9
2023-12-16 17:50:48,764 [ 433596] INFO - liquibase.database - Set default schema name to PUBLIC
2023-12-16 17:50:48,769 [ 433601] INFO - #liquibase.ext.intellij.snapshot.IntellijSnapshotGenerator - Found primary key PK_CORE_PORT
2023-12-16 17:50:48,770 [ 433602] INFO - #liquibase.ext.intellij.snapshot.IntellijSnapshotGenerator - Found index IDX_CORE_PORT_HOSTNAME
2023-12-16 17:50:48,776 [ 433608] INFO - #liquibase.ext.intellij.snapshot.IntellijSnapshotGenerator - Found index IDX_CORE_PORT_HOSTNAME
2023-12-16 17:50:48,777 [ 433609] INFO - #liquibase.ext.intellij.snapshot.IntellijSnapshotGenerator - Found primary key PK_CORE_HOSTNAME
2023-12-16 17:50:48,777 [ 433609] INFO - #liquibase.ext.intellij.snapshot.IntellijSnapshotGenerator - Found index IDX_CORE_HOSTNAME_MACHINES
2023-12-16 17:50:48,777 [ 433609] INFO - #liquibase.ext.intellij.snapshot.IntellijSnapshotGenerator - Found index IDX_CORE_HOSTNAME_MACHINE
2023-12-16 17:50:48,781 [ 433613] INFO - #liquibase.ext.intellij.snapshot.IntellijSnapshotGenerator - Found index IDX_CORE_HOSTNAME_MACHINES
2023-12-16 17:50:48,782 [ 433614] INFO - #liquibase.ext.intellij.snapshot.IntellijSnapshotGenerator - Found index IDX_CORE_HOSTNAME_MACHINE
2023-12-16 17:50:48,782 [ 433614] INFO - #liquibase.ext.intellij.snapshot.IntellijSnapshotGenerator - Found primary key PK_CORE_MACHINE
2023-12-16 17:50:48,786 [ 433618] INFO - #liquibase.ext.intellij.snapshot.IntellijSnapshotGenerator - Found primary key PK_EMAIL_SENDING_ATTACHMENT
2023-12-16 17:50:48,795 [ 433627] INFO - #liquibase.ext.intellij.snapshot.IntellijSnapshotGenerator - Found primary key PK_EMAIL_SENDING_MESSAGE
2023-12-16 17:50:48,803 [ 433635] INFO - #liquibase.ext.intellij.snapshot.IntellijSnapshotGenerator - Found primary key PK_SEC_ROW_LEVEL_ROLE
2023-12-16 17:50:48,808 [ 433640] INFO - #liquibase.ext.intellij.snapshot.IntellijSnapshotGenerator - Found primary key PK_SEC_USER_SUBSTITUTION
2023-12-16 17:50:48,813 [ 433645] INFO - #liquibase.ext.intellij.snapshot.IntellijSnapshotGenerator - Found primary key PK_FLOWUI_USER_SETTINGS
2023-12-16 17:50:48,816 [ 433648] INFO - #liquibase.ext.intellij.snapshot.IntellijSnapshotGenerator - Found primary key PK_CORE_USER
2023-12-16 17:50:48,816 [ 433648] INFO - #liquibase.ext.intellij.snapshot.IntellijSnapshotGenerator - Found index IDX_CORE_USER_ON_USERNAME
2023-12-16 17:50:48,821 [ 433653] INFO - #liquibase.ext.intellij.snapshot.IntellijSnapshotGenerator - Found index IDX_CORE_USER_ON_USERNAME
2023-12-16 17:50:48,821 [ 433653] INFO - #liquibase.ext.intellij.snapshot.IntellijSnapshotGenerator - Found primary key PK_SEC_ROLE_ASSIGNMENT
2023-12-16 17:50:48,826 [ 433658] INFO - #liquibase.ext.intellij.snapshot.IntellijSnapshotGenerator - Found primary key PK_SEC_ROW_LEVEL_POLICY
2023-12-16 17:50:48,832 [ 433664] INFO - #liquibase.ext.intellij.snapshot.IntellijSnapshotGenerator - Found primary key PK_CORE_VOLUME
2023-12-16 17:50:48,832 [ 433664] INFO - #liquibase.ext.intellij.snapshot.IntellijSnapshotGenerator - Found index IDX_CORE_VOLUME_MACHINE
2023-12-16 17:50:48,836 [ 433668] INFO - #liquibase.ext.intellij.snapshot.IntellijSnapshotGenerator - Found index IDX_CORE_VOLUME_MACHINE
2023-12-16 17:50:48,836 [ 433668] INFO - #liquibase.ext.intellij.snapshot.IntellijSnapshotGenerator - Found primary key PK_SEC_RESOURCE_POLICY
2023-12-16 17:50:48,843 [ 433675] INFO - #liquibase.ext.intellij.snapshot.IntellijSnapshotGenerator - Found primary key PK_SEC_RESOURCE_ROLE
2023-12-16 17:50:48,848 [ 433680] INFO - #liquibase.ext.intellij.snapshot.IntellijSnapshotGenerator - Found primary key PK_FLOWUI_FILTER_CONFIGURATION
2023-12-16 17:50:48,908 [ 433740] INFO - liquibase.command - Diff command completed
2023-12-16 17:50:48,908 [ 433740] INFO - STDOUT - BEST PRACTICE: The changelog generated by diffChangeLog/generateChangeLog should be inspected for correctness and completeness before being deployed. Some database objects and their dependencies cannot be represented automatically, and they may need to be manually updated before being deployed.
2023-12-16 17:50:48,914 [ 433746] WARN - liquibase.ext - Diff changelog command failed
2023-12-16 17:50:48,914 [ 433746] INFO - liquibase.command - Command execution complete
2023-12-16 17:50:49,150 [ 433982] INFO - #c.i.u.WinFocusStealer - Foreground lock timeout set to 0
2023-12-16 17:50:49,435 [ 434267] INFO - #o.j.p.g.GradleManager - Instructing gradle to use java from C:/Users/Jan Heil/.jdks/corretto-17.0.9
2023-12-16 17:50:49,435 [ 434267] INFO - #o.j.p.g.GradleManager - Instructing gradle to use java from C:/Users/Jan Heil/.jdks/corretto-17.0.9
2023-12-16 17:50:49,477 [ 434309] INFO - #o.j.p.g.s.e.GradleExecutionHelper - Passing command-line to Gradle Tooling API: bootRun --init-script C:\Users\JANHEI~1\AppData\Local\Temp\ijMapper1.gradle --init-script C:\Users\JANHEI~1\AppData\Local\Temp\ijresolvers4.gradle -Didea.active=true -Didea.version=2023.3.2 -Didea.vendor.name=JetBrains
2023-12-16 17:51:03,233 [ 448065] INFO - #c.i.w.i.i.j.s.JpsGlobalModelSynchronizerImpl - Saving global entities to files
I already had the problem in an older, larger project, because I could not fix the error, I quickly created a new project and lo and behold, the same problem.
JMIX Studio or Liquibase simply do not recognise entity / JPA changes.
JMIX Studio Version: 2.1.1-233
IntelliJ Version: IU-233.13135.65
Liquibase Version: 4.20.0 #7837, kompiliert am 2023-03-07 16:25+0000