Class HibernateOrmSpec

java.lang.Object
org.hibernate.orm.tooling.gradle.HibernateOrmSpec

public abstract class HibernateOrmSpec extends Object
Main DSL extension for Hibernate ORM. Available as `project.hibernate`
  • Field Details

  • Constructor Details

    • HibernateOrmSpec

      public HibernateOrmSpec()
  • Method Details

    • getFileOperations

      @Inject public abstract org.gradle.api.internal.file.FileOperations getFileOperations()
    • getObjectFactory

      @Inject protected abstract org.gradle.api.model.ObjectFactory getObjectFactory()
    • getEnhancement

      @Optional public abstract org.gradle.api.provider.Property<EnhancementSpec> getEnhancement()
      DSL extension for configuring bytecode enhancement. Also acts as the trigger for opting into bytecode enhancement
    • getUseSameVersion

      public abstract org.gradle.api.provider.Property<Boolean> getUseSameVersion()
      Should the plugin inject a dependency on the same version of `hibernate-core` as the version of this plugin? The dependency is added to the `implementation` Configuration.

      Defaults to true. If overriding and performing enhancement, be aware that Hibernate generally only supports using classes enhanced using matching versions between tooling and runtime. In other words, be careful.

    • getSourceSet

      public abstract org.gradle.api.provider.Property<String> getSourceSet()
      The source-set name containing the domain model. Defaults to the `main` source-set
    • getLanguages

      public abstract org.gradle.api.provider.SetProperty<String> getLanguages()
      The languages used in the project
    • enhancement

      public void enhancement(org.gradle.api.Action<EnhancementSpec> action)
      See Also:
    • getReveng

      public RevengSpec getReveng()
      DSL extension for configuring reverse engineering
    • reveng

      public void reveng(org.gradle.api.Action<RevengSpec> action)
      See Also: