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

org.hibernate.property.access.internal.PropertyAccessEnhancedImpl Maven / Gradle / Ivy

There is a newer version: 7.0.0.Alpha1
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.property.access.internal;

import org.hibernate.property.access.spi.EnhancedSetterImpl;
import org.hibernate.property.access.spi.PropertyAccessStrategy;
import org.hibernate.property.access.spi.Setter;

import java.lang.reflect.Field;

/**
 * A PropertyAccess for byte code enhanced entities. Enhanced setter methods ( if available ) are used for
 * property writes. Regular getter methods/fields are used for property access. Based upon PropertyAccessMixedImpl.
 *
 * @author Steve Ebersole
 * @author Luis Barreiro
 */
public class PropertyAccessEnhancedImpl extends PropertyAccessMixedImpl {

	public PropertyAccessEnhancedImpl(
			PropertyAccessStrategy strategy,
			Class containerJavaType,
			String propertyName) {
		super( strategy, containerJavaType, propertyName );
	}

	@Override
	protected Setter fieldSetter(Class containerJavaType, String propertyName, Field field) {
		return new EnhancedSetterImpl( containerJavaType, propertyName, field );
	}
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy