This is not a question but I just wanted to share my findings from using the TransformHbmXmlTask on gradle to convert .hbm.xml to .orm.xml files as the documentation seems to be limited currently and I just find a lot of confused users when I search
//build.gradle
import org.hibernate.orm.tooling.gradle.misc.TransformHbmXmlTask
plugins {
...
id("org.hibernate.orm") version "6.6.40.Final" // replace version as appropriate
}
tasks.register("transformHbmXml", TransformHbmXmlTask) {
group = "hibernate"
source = fileTree("path/to/your/xml/mappings") {
include "**/*.hbm.xml"
}
it.renaming.get().prefix.set("")
it.renaming.get().suffix.set("")
it.renaming.get().extension.set("orm.xml")
outputDirectory = file("generated/orm")
}