Skip to content

Conversation

@koentsje
Copy link
Member

@koentsje koentsje commented Dec 4, 2025

No description provided.

  - Pull up the MappingBinder passed around to an instance variable

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Inline 'performTransformation' into 'start'
  - Initialize the 'hbmXmlFiles' instance variable
  - Remove unneeded parameter 'formatResult' from 'marshall'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Rename 'getHbmMappings' to 'getHbmBindings'
  - Rename 'bindMapping' to 'bindHbmXml'
  - Remove unneeded argument 'mappingBinder' from 'bindHbmXml'
  - Adapt the related tests to the above changes

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Remove unneeded 'mappingBinder' argument from 'createMarshaller'
  - Create 'marshaller' instance variable and populate it in the constructor
  - Remove the 'marshaller' local variable in the 'start' method
  - Remove the 'marshaller' argument from the 'marshall' method

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Add method 'transformBindings' and add a test method for it
  - Complete the 'start' method to perform the transformation logic
  - Enable 'testStart' and complete the test method

Signed-off-by: Koen Aers <koen.aers@gmail.com>
  - Collapse HbmXmlOrigin as an inner class into MappingExporter
  - Move 'testHbmXmlOrigin' to 'MappingExporterTest'
  - Remove 'HbmXmlOrigin' and 'HbmXmlOriginTest'

Signed-off-by: Koen Aers <koen.aers@gmail.com>
@hibernate-github-bot
Copy link

hibernate-github-bot bot commented Dec 4, 2025

Thanks for your pull request!

This pull request appears to follow the contribution rules.

› This message was automatically generated.

@koentsje koentsje changed the title Hbx 3249 HBX-3249: Refactor class MappingExporter and improve tests Dec 4, 2025
@koentsje koentsje merged commit 2345627 into hibernate:7.0 Dec 4, 2025
3 checks passed
@koentsje koentsje deleted the HBX-3249 branch December 4, 2025 13:48
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.

1 participant