All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.hibernate.orm.tooling.gradle.EnhanceExtension.groovy Maven / Gradle / Ivy

There is a newer version: 6.0.0.Alpha6
Show newest version
/*
 * Hibernate, Relational Persistence for Idiomatic Java
 *
 * License: GNU Lesser General Public License (LGPL), version 2.1 or later.
 * See the lgpl.txt file in the root directory or .
 */
package org.hibernate.orm.tooling.gradle

/**
 * Gradle DSL extension for configuring various Hibernate bytecode enhancement.  Registered
 * under "hibernate.enhance".
 *
 * @author Steve Ebersole
 */
class EnhanceExtension implements Serializable {
	def boolean enableLazyInitialization = false
	def boolean enableDirtyTracking = false
	def boolean enableAssociationManagement = false
	def boolean enableExtendedEnhancement = false

	boolean shouldApply() {
		return enableLazyInitialization || enableDirtyTracking || enableAssociationManagement || enableExtendedEnhancement;
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy