Class TransformationNaming

java.lang.Object
org.hibernate.orm.tooling.gradle.misc.TransformationNaming

public abstract class TransformationNaming extends Object
Defines how we rename a file being transformed.
API Note:
All settings set to null indicates to use the same file name. Note that with no TransformHbmXmlTask.getOutputDirectory() specified, this would mean replacing the original rather than making a copy (effectively, `deleteHbmFiles=true`)
  • Constructor Details

    • TransformationNaming

      public TransformationNaming()
  • Method Details

    • getPrefix

      @Input @Optional public abstract org.gradle.api.provider.Property<String> getPrefix()
      A prefix to apply to the file name.

      E.g. given an `hbm.xml` file named `my-mappings.hbm.xml` and a configured prefix of `transformed-`, the copy file's name would be `transformed-my-mappings.hbm.xml`

      See Also:
    • getSuffix

      @Input @Optional public abstract org.gradle.api.provider.Property<String> getSuffix()
      A suffix to apply to the file name.

      E.g. given an `hbm.xml` file named `my-mappings.hbm.xml` and a configured suffix of `-transformed`, the copy file's name would be `my-mappings-transformed.hbm.xml`

      See Also:
    • getExtension

      @Input @Optional public abstract org.gradle.api.provider.Property<String> getExtension()
    • areNoneDefined

      public boolean areNoneDefined()