Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Hibernate DDL is created twice #38357

Closed
stuartwdouglas opened this issue Jan 23, 2024 · 1 comment · Fixed by #38358
Closed

Hibernate DDL is created twice #38357

stuartwdouglas opened this issue Jan 23, 2024 · 1 comment · Fixed by #38358
Labels
area/hibernate-orm Hibernate ORM area/persistence OBSOLETE, DO NOT USE kind/bug Something isn't working
Milestone

Comments

@stuartwdouglas
Copy link
Member

Describe the bug

Hibernate will always run the schema generation tool at https://github.com/stuartwdouglas/quarkus/blob/41b1b21ba50875c38b4f7bd1bc13dfdcdbcb20ea/extensions/hibernate-orm/runtime/src/main/java/io/quarkus/hibernate/orm/runtime/dev/HibernateOrmDevController.java#L78 on startup.

This DDL is only used for a single button to do an initial Flyway setup in the Dev UI, so is almost always wasted effort.

Expected behavior

No response

Actual behavior

No response

How to Reproduce?

No response

Output of uname -a or ver

No response

Output of java -version

No response

Quarkus version or git rev

No response

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@stuartwdouglas stuartwdouglas added the kind/bug Something isn't working label Jan 23, 2024
@quarkus-bot quarkus-bot bot added area/hibernate-orm Hibernate ORM area/persistence OBSOLETE, DO NOT USE labels Jan 23, 2024
Copy link

quarkus-bot bot commented Jan 23, 2024

/cc @gsmet (hibernate-orm), @yrodiere (hibernate-orm)

yrodiere pushed a commit that referenced this issue Jan 24, 2024
In dev mode the hibernate DDL is eagerly created just in case is might
be needed in the dev UI. This fixes that, and also adds the ability to
view the update script which can be really useful to create flyway
migrations.

Fixes #38357
@quarkus-bot quarkus-bot bot added this to the 3.9 - main milestone Jan 24, 2024
@gsmet gsmet modified the milestones: 3.9 - main, 3.7.0 Jan 24, 2024
gsmet pushed a commit that referenced this issue Jan 24, 2024
In dev mode the hibernate DDL is eagerly created just in case is might
be needed in the dev UI. This fixes that, and also adds the ability to
view the update script which can be really useful to create flyway
migrations.

Fixes #38357

(cherry picked from commit 992d65e)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/hibernate-orm Hibernate ORM area/persistence OBSOLETE, DO NOT USE kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants