# How to create diff changelog file from JPA entities for different databases at the same time?

**URL:** <https://forum.liquibase.org/t/how-to-create-diff-changelog-file-from-jpa-entities-for-different-databases-at-the-same-time/7579>\
**Category:** General Discussion\
**Tags:** maven, hibernate, jpa\
**Created:** [November 28, 2022, 6:20pm UTC](https://forum.liquibase.org/t/how-to-create-diff-changelog-file-from-jpa-entities-for-different-databases-at-the-same-time/7579 "2022-11-28T18:20:09Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ysfzkn58](https://avatars.discourse-cdn.com/v4/letter/y/22d042/32.png) [@ysfzkn58](https://forum.liquibase.org/u/ysfzkn58)\
**Post date:** [November 28, 2022, 6:20pm UTC](https://forum.liquibase.org/t/how-to-create-diff-changelog-file-from-jpa-entities-for-different-databases-at-the-same-time/7579/1 "2022-11-28T18:20:09Z")

</div>

0

I want to create Liquibase _changelog file_ based on differences between my database and my Hibernate entities for different database environments, therefore different datatypes in Oracle, SQL Server and PostgreSQL. And it’s a Maven Project. So, is there any Maven plugin or can be generated to do this operations?

Also I tried liquibase-hibernate plugin, but it is not working properly, sometimes diff cannot see any difference although I made changes in `Entity.java`.

So this is what I wanted as a workflow in dev;

1. Make a change in my `Entity.java`
2. Run a command like `mvn:migrateAll` including liquibase diff
3. Changelog file for all databases are generated based on difference
4. Run `mvn:liquibase update` command to update my tables.
