org.springframework.data.annotation.AccessType.Type Java Examples
The following examples show how to use
org.springframework.data.annotation.AccessType.Type.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: MybatisPersistentPropertyImpl.java From spring-data-mybatis with Apache License 2.0 | 5 votes |
@Nullable private Boolean detectPropertyAccess() { org.springframework.data.annotation.AccessType accessType = findAnnotation( org.springframework.data.annotation.AccessType.class); if (accessType != null) { return Type.PROPERTY.equals(accessType.value()); } Access access = findAnnotation(Access.class); if (access != null) { return AccessType.PROPERTY.equals(access.value()); } accessType = findPropertyOrOwnerAnnotation( org.springframework.data.annotation.AccessType.class); if (accessType != null) { return Type.PROPERTY.equals(accessType.value()); } access = findPropertyOrOwnerAnnotation(Access.class); if (access != null) { return AccessType.PROPERTY.equals(access.value()); } return null; }