Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork3.7k
DRAFT: Merge tools into orm#11123
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
base:main
Are you sure you want to change the base?
Conversation
hibernate-github-botbot commentedOct 15, 2025 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
Thanks for your pull request! This pull request appears to follow the contribution rules. › This message was automatically generated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
CodeQL found more than 20 potential problems in the proposed changes. Check theFiles changed tab for more details.
9d4e4ec to094c21aCompareThere was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
I added a few comments below to track things we discussed and that we shouldn't forget.
Also created a Jira issue:https://hibernate.atlassian.net/browse/HHH-19879
| import org.hibernate.tool.gradle.task.GenerateJavaTask; | ||
| import org.hibernate.tool.gradle.task.RunSqlTask; | ||
| public class Plugin implements org.gradle.api.Plugin<Project> { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This should probably be the same plugin as enhancement, so that we can use a syntax like this one:
hibernate { enhancement { ... } reveng { ... }}There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Honest question: would this make sense to use in an application/framework as a library, and if so do we want to keep this module undertooling/?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
Todo: migrate (all?) other tests from Tools. We can target h2 only for a start.
Main challenge would be conveting hbm.xml to orm.xml (mapping.xml?) or annotations.
| @Mojo( | ||
| name = "hbm2orm", | ||
| defaultPhase = GENERATE_RESOURCES, | ||
| requiresDependencyResolution = ResolutionScope.RUNTIME) | ||
| public class TransformHbmMojo extends AbstractMojo { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
This is great and I know people have been asking for it.
We need it documented, though :)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
There is something wrong here. Seem you duplicated the package? TheSchemaExport class already exists in this module.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others.Learn more.
As discussed, the classes you duplicated here should instead be moved fromhibernate-ant to this module.
8239046 to30152daCompared906480 toc35239fCompare...ate-reveng/src/main/java/org/hibernate/tool/reveng/internal/export/java/EntityPOJOClass.java FixedShow fixedHide fixed
Uh oh!
There was an error while loading.Please reload this page.
6080986 to1dfd0deComparetooling/hibernate-ant/src/main/java/org/hibernate/tool/ant/ConfigurationTask.java FixedShow fixedHide fixed
Uh oh!
There was an error while loading.Please reload this page.
tooling/hibernate-ant/src/main/java/org/hibernate/tool/ant/HibernateToolTask.java FixedShow fixedHide fixed
Uh oh!
There was an error while loading.Please reload this page.
tooling/hibernate-ant/src/main/java/org/hibernate/tool/ant/JDBCConfigurationTask.java FixedShow fixedHide fixed
Uh oh!
There was an error while loading.Please reload this page.
tooling/hibernate-ant/src/main/java/org/hibernate/tool/ant/JPAConfigurationTask.java FixedShow fixedHide fixed
Uh oh!
There was an error while loading.Please reload this page.
tooling/hibernate-ant/src/main/java/org/hibernate/tool/ant/JavaFormatterTask.java FixedShow fixedHide fixed
Uh oh!
There was an error while loading.Please reload this page.
tooling/hibernate-ant/src/main/java/org/hibernate/tool/hbm2ddl/hbm2ddl/SchemaUpdateTask.java FixedShow fixedHide fixed
Uh oh!
There was an error while loading.Please reload this page.
tooling/hibernate-ant/src/main/java/org/hibernate/tool/hbm2ddl/hbm2ddl/SchemaExportTask.java FixedShow fixedHide fixed
Uh oh!
There was an error while loading.Please reload this page.
tooling/hibernate-ant/src/main/java/org/hibernate/tool/hbm2ddl/hbm2ddl/SchemaExport.java FixedShow fixedHide fixed
Uh oh!
There was an error while loading.Please reload this page.
tooling/hibernate-ant/src/main/java/org/hibernate/tool/ant/ExporterTask.java FixedShow fixedHide fixed
Uh oh!
There was an error while loading.Please reload this page.
tooling/hibernate-ant/src/main/java/org/hibernate/tool/ant/ConfigurationTask.java FixedShow fixedHide fixed
Uh oh!
There was an error while loading.Please reload this page.
a0eb131 to0c719d0Comparetooling/hibernate-ant/src/main/java/org/hibernate/tool/ant/ConfigurationTask.java FixedShow fixedHide fixed
Uh oh!
There was an error while loading.Please reload this page.
8c982e8 to1659453Comparetooling/hibernate-maven-plugin/src/main/java/org/hibernate/tool/maven/TransformHbmMojo.java FixedShow fixedHide fixed
Uh oh!
There was an error while loading.Please reload this page.
tooling/hibernate-maven-plugin/src/main/java/org/hibernate/tool/maven/TransformHbmMojo.java FixedShow fixedHide fixed
Uh oh!
There was an error while loading.Please reload this page.
1659453 to8621badCompare...nate-reveng/src/main/java/org/hibernate/tool/reveng/internal/core/reader/IndexProcessor.java FixedShow fixedHide fixed
Uh oh!
There was an error while loading.Please reload this page.
…merge the relevant ant/gradle/maven plugins - Add the Reverse Engineering moduleSigned-off-by: Koen Aers <koen.aers@gmail.com>
8621bad tob61a115Compare
Uh oh!
There was an error while loading.Please reload this page.
[Please describe here what your change is about]
By submitting this pull request, I confirm that my contribution is made under the terms of theApache 2.0 license
and can be relicensed under the terms of theLGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please checkhere.
https://hibernate.atlassian.net/browse/HHH-19879