# Liquibase diff not showing a domain class change in the changelog

**URL:** <https://forum.liquibase.org/t/liquibase-diff-not-showing-a-domain-class-change-in-the-changelog/10196>\
**Category:** General Discussion\
**Created:** [February 5, 2025, 9:16am UTC](https://forum.liquibase.org/t/liquibase-diff-not-showing-a-domain-class-change-in-the-changelog/10196 "2025-02-05T09:16:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![stratosb](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@stratosb](https://forum.liquibase.org/u/stratosb)\
**Post date:** [February 5, 2025, 9:16am UTC](https://forum.liquibase.org/t/liquibase-diff-not-showing-a-domain-class-change-in-the-changelog/10196/1 "2025-02-05T09:16:57Z")

</div>

Hello everybody,  
Could you please help me with the following issue because I have tried many things but none has worked.

I have added a new column in one of the domain classes as shown below:

```auto
@Column(name = "my_item")
private String myItem;

```

But the command **mvn liquibase:diff** is not returning this change in the changelog.

I have captured the log of the diff operation. It shows that the new column has been detected and there is no error during execution.

```auto
[INFO] Found column my_item varchar(255)

```

Below is the liquibase-maven-plugin configuration in the pom.xml

```auto
<plugin>
                <groupId>org.liquibase</groupId>
                <artifactId>liquibase-maven-plugin</artifactId>
                <version>4.29.0</version>
                <configuration>
                    <changeLogFile>src/main/resources/db/changelog/db.changelog-master.yaml</changeLogFile>
                    <outputChangeLogFile>db-changelog.xml</outputChangeLogFile>
                    <diffChangeLogFile>src/main/resources/db/migrations/${timestamp}_changelog.xml</diffChangeLogFile>
                    <url>jdbc:postgresql://172.54.98.77:5432/nn</url>
                    <driver>org.postgresql.Driver</driver>
                    <username>nnuser</username>
                    <password>123456</password>
                    <referenceUrl>hibernate:spring:com.nn.domain?dialect=org.hibernate.dialect.PostgreSQLDialect</referenceUrl>
                    <verbose>true</verbose>
                    <logging>debug</logging>
                </configuration>
                <dependencies>
                    <dependency>
                        <groupId>org.liquibase</groupId>
                        <artifactId>liquibase-core</artifactId>
                        <version>4.29.0</version>
                    </dependency>
                    <dependency>
                        <groupId>org.liquibase.ext</groupId>
                        <artifactId>liquibase-hibernate6</artifactId>
                        <version>4.28.0</version>
                    </dependency>
                    <dependency>
                        <groupId>org.springframework.boot</groupId>
                        <artifactId>spring-boot-starter-data-jpa</artifactId>
                        <version>3.4.0</version>
                    </dependency>
                    <dependency>
                        <groupId>org.springframework.boot</groupId>
                        <artifactId>spring-boot-starter-validation</artifactId>
                        <version>3.4.0</version>
                    </dependency>
                    <dependency>
                        <groupId>org.hibernate.orm</groupId>
                        <artifactId>hibernate-core</artifactId>
                        <version>6.6.2.Final</version>
                    </dependency>
                    <dependency>
                        <groupId>org.hibernate</groupId>
                        <artifactId>hibernate-entitymanager</artifactId>
                        <version>6.0.0.Alpha7</version>
                    </dependency>
                </dependencies>
            </plugin>

```

---

<div class="post-metadata">

**Author:** ![Pete](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.liquibase.org/pete/32/184_2.png) [@Pete](https://forum.liquibase.org/u/Pete)\
**Post date:** [February 6, 2025, 5:53pm UTC](https://forum.liquibase.org/t/liquibase-diff-not-showing-a-domain-class-change-in-the-changelog/10196/2 "2025-02-06T17:53:05Z")

</div>

Hi @stratosb,

I couldn’t tell from your question where you were expecting the changeset to show up. From your configuration it looks like it should show up in `src/main/resources/db/migrations/${timestamp}_changelog.xml`. Is that file missing or empty? Does it contain other changes?

---

<div class="post-metadata">

**Author:** ![stratosb](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@stratosb](https://forum.liquibase.org/u/stratosb)\
**Post date:** [February 7, 2025, 6:54am UTC](https://forum.liquibase.org/t/liquibase-diff-not-showing-a-domain-class-change-in-the-changelog/10196/3 "2025-02-07T06:54:04Z")

</div>

Hi there,  
It creates the changelog but it doesn’t contain the “add column” as it should. It seems that the diff command cannot detect the new column which has been added in the domain class.  
The log output is the following:

```auto
[INFO] Creating snapshot
[INFO] Diff command completed
[INFO] changeSets count: 0
[INFO] No changesets to add to the changelog output.
[INFO] Diff changelog command succeeded
[INFO] Command execution complete

```

---

<div class="post-metadata">

**Author:** ![stratosb](https://avatars.discourse-cdn.com/v4/letter/s/da6949/32.png) [@stratosb](https://forum.liquibase.org/u/stratosb)\
**Post date:** [February 19, 2025, 11:27am UTC](https://forum.liquibase.org/t/liquibase-diff-not-showing-a-domain-class-change-in-the-changelog/10196/4 "2025-02-19T11:27:09Z")

</div>

Can anyone help me please?
