Skip to content

Conversation

koentsje
Copy link
Member

@koentsje koentsje commented Aug 27, 2025

  • Add JavaDoc style documentation to the plugin parameters to improve the Maven plugin description
  • Change the parameter defaults for 'enableLazyInitialization' and 'enableDirtyTracking' to bring it in line with the former behaviour
  • Modify the 'groupId' and 'artifactId' in the documentation
  • Provide complete documentation in the User Guide in line with the Ant task for bytecode enhancement
  • Rename 'HibernateEnhancerMojo' to 'EnhancerMojo'
  • Rename 'HibernateEnhancerMojoTest' to 'EnhancerMojoTest'
  • Add integration test 'HibernateEnhancerMojoTestIT' to test the different configuration options
  • Make sure that the enhancer is not doing anything if all the enablement parameters are false

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license
and can be relicensed under the terms of the LGPL v2.1 license in the future at the maintainers' discretion.
For more information on licensing, please check here.


https://hibernate.atlassian.net/browse/HHH-19519

  - Add JavaDoc style documentation to the plugin parameters to improve the Maven plugin description
  - Change the parameter defaults for 'enableLazyInitialization' and 'enableDirtyTracking' to bring it in line with the former behaviour
  - Modify the 'groupId' and 'artifactId' in the documentation
  - Provide complete documentation in the User Guide in line with the Ant task for bytecode enhancement
  - Rename 'HibernateEnhancerMojo' to 'EnhancerMojo'
  - Rename 'HibernateEnhancerMojoTest' to 'EnhancerMojoTest'
  - Add integration test 'HibernateEnhancerMojoTestIT' to test the different configuration options
  - Make sure that the enhancer is not doing anything if all the enablement parameters are false

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add dependencies on 'maven-resolver-transport-http' and 'maven-resolver-connector-basic' for MavenCli to be able to download dependencies

Signed-off-by: Koen Aers <koen.aers@gmail.com>
@koentsje
Copy link
Member Author

koentsje commented Sep 2, 2025

This finally has built fine... Thanks @marko-bekhta for your help!

@yrodiere yrodiere self-assigned this Sep 11, 2025
Copy link
Member

@yrodiere yrodiere left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! I added a few comments below.

build-time enhancement of the domain model as they are compiled as part of a Maven
build. See the section on <<BytecodeEnhancement>> for details
on the configuration settings. By default, all enhancements are disabled.
on the configuration settings.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

As discussed, if anything changed, we will need the changes documented in migration-guide.adoc at the root of the repository. That needs to happen on the branch where the changes happened, though -- which I think would be 7.0.

From the top of my head, the changes are:

  1. Renaming of the plugin
  2. Default settings
  3. Maybe some Maven plugin configuration e.g. filesets?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I believe this is only the renaming of the plugin. I included this in the other PR I just opened but I'll need to account for your other comments in that one as well.

Comment on lines +36 to +37
While this parameter is mandatory, its value will be ignored if the <<maven-enhance-filesets-parameter, fileSets>>
parameter is specified.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It is not mandatory if it has a default.

Suggested change
While this parameter is mandatory, its value will be ignored if the <<maven-enhance-filesets-parameter, fileSets>>
parameter is specified.
If both `classesDirectory` and <<maven-enhance-filesets-parameter,fileSets>> are set, `fileSets` takes precedence.

Comment on lines +58 to +59
This is an optional parameter but if it is specified the
<<maven-enhance-classesDirectory-parameter, classesDirectory>> parameter described above is ignored.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
This is an optional parameter but if it is specified the
<<maven-enhance-classesDirectory-parameter, classesDirectory>> parameter described above is ignored.
If both <<maven-enhance-classesDirectory-parameter, classesDirectory>> and `fileSets` are set, `fileSets` takes precedence.

@koentsje koentsje closed this Sep 16, 2025
@koentsje koentsje deleted the HHH-19519 branch September 16, 2025 12:42
@koentsje
Copy link
Member Author

@yrodiere I completely messed this up... For some reason I didn't see your comments and I thought it was merged so I created a backport and opened a new PR deleting this topic branch...

@koentsje koentsje restored the HHH-19519 branch September 25, 2025 14:32
@koentsje koentsje reopened this Sep 29, 2025
@yrodiere
Copy link
Member

I think this was intended to be closed in favor of #11013

So... closing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants