/
PropertyAccessEnhancedImpl.java
35 lines (30 loc) · 1.2 KB
/
PropertyAccessEnhancedImpl.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
/*
* 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 <http://www.gnu.org/licenses/lgpl-2.1.html>.
*/
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 );
}
}