-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Use ';' as default delimiter in Hibernate ORM's generated DDL scripts #17514
Comments
I really like the idea of having a default value for each database kind.
…On Fri, 28 May 2021, 07:16 quarkus-bot[bot], ***@***.***> wrote:
/cc @Sanne <https://github.com/Sanne>, @gsmet <https://github.com/gsmet>,
@yrodiere <https://github.com/yrodiere>
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#17514 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAAKMTIFMYL4TAHZOEO7ZKLTP4YM5ANCNFSM45V2JDKQ>
.
|
I assume If someone knows which separator is required for the currently supported database kinds, it would be great if you could document them here. |
P.S. I can look into providing a PR for this issue. |
This property represents the statement delimiter used for the generation of the DDL scripts. The property defaults to `;`. Resolves quarkusio#17514
This property represents the statement delimiter used for the generation of the DDL scripts. The property defaults to `;`. Resolves quarkusio#17514
This property represents the statement delimiter used for the generation of the DDL scripts. The property defaults to `;`. Resolves quarkusio#17514
This property represents the statement delimiter used for the generation of the DDL scripts. The property defaults to `;`. Resolves quarkusio#17514
Amending the title to reflect how this is being fixed (via https://hibernate.atlassian.net/browse/HHH-14665 ) |
Description
The new
HibernateOrmConfigPersistenceUnitScriptGeneration
allowing to generate DDL scripts is a very nice addition. What appears to be missing is adelimiter
option to map to Hibernate'shibernate.hbm2ddl.delimiter
option, so that the generated statements in the script are delimited. Otherwise the delimiter is always just a new line, which isn't all that useful, since some statements in the output could span multiple lines.Implementation ideas
Add a new
delimiter
option toHibernateOrmConfigPersistenceUnitScriptGeneration
. The default value should maybe be;
but another option would be to have a default value for each supported DB kind, although that may just complicate things without much value.The text was updated successfully, but these errors were encountered: