Package org.hibernate.orm.tooling.gradle
Class HibernateOrmSpec
java.lang.Object
org.hibernate.orm.tooling.gradle.HibernateOrmSpec
Main DSL extension for Hibernate ORM. Available as `project.hibernate`
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidenhancement(org.gradle.api.Action<EnhancementSpec> action) abstract org.gradle.api.provider.Property<EnhancementSpec> DSL extension for configuring bytecode enhancement.abstract org.gradle.api.internal.file.FileOperationsabstract org.gradle.api.provider.SetProperty<String> The languages used in the projectprotected abstract org.gradle.api.model.ObjectFactoryabstract org.gradle.api.provider.Property<String> The source-set name containing the domain model.abstract org.gradle.api.provider.Property<Boolean> 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.
-
Field Details
-
DSL_NAME
- See Also:
-
-
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
DSL extension for configuring bytecode enhancement. Also acts as the trigger for opting into bytecode enhancement -
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
The source-set name containing the domain model. Defaults to the `main` source-set -
getLanguages
The languages used in the project -
enhancement
- See Also:
-