propertyAccessor, PropertyPath.IDENTIFIER_MAPPER_PROPERTY, compositeClass ); Component mapper = fillComponent( propertyHolder, inferredData,
MetadataBuildingContext buildingContext, Map<XClass, InheritanceState> inheritanceStatePerClass) { return fillComponent( propertyHolder, inferredData,
Component component = AnnotationBinder.fillComponent( holder, inferredData,
comp = fillComponent( propertyHolder, inferredData, propertyAccessor, !isId, entityBinder, isComponentEmbedded, isIdentifierMapper,
final String propertyName = inferredData.getPropertyName(); if ( isComposite ) { id = fillComponent( propertyHolder, inferredData,
Component component = AnnotationBinder.fillComponent( holder, inferredData,
@SuppressWarnings({ "ClassExplicitlyAnnotation" }) private static class LocalCacheAnnotationImpl implements Cache { private final String region; private final CacheConcurrencyStrategy usage; private LocalCacheAnnotationImpl(String region, CacheConcurrencyStrategy usage) { this.region = region; this.usage = usage; } public CacheConcurrencyStrategy usage() { return usage; } public String region() { return region; } public String include() { return "all"; } public Class<? extends Annotation> annotationType() { return Cache.class; } }
@SuppressWarnings({ "ClassExplicitlyAnnotation" }) private static class LocalCacheAnnotationImpl implements Cache { private final String region; private final CacheConcurrencyStrategy usage; private LocalCacheAnnotationImpl(String region, CacheConcurrencyStrategy usage) { this.region = region; this.usage = usage; } public CacheConcurrencyStrategy usage() { return usage; } public String region() { return region; } public String include() { return "all"; } public Class<? extends Annotation> annotationType() { return Cache.class; } }
public static Component fillComponent( PropertyHolder propertyHolder, PropertyData inferredData, PropertyData baseInferredData, //base inferred data correspond to the entity reproducing inferredData's properties (ie IdClass) AccessType propertyAccessor, boolean isNullable, EntityBinder entityBinder, boolean isComponentEmbedded, boolean isIdentifierMapper, boolean inSecondPass, ExtendedMappings mappings, Map<XClass, InheritanceState> inheritanceStatePerClass ) { /** * inSecondPass can only be used to apply right away the second pass of a composite-element * Because it's a value type, there is no bidirectional association, hence second pass * ordering does not matter */ Component comp = createComponent( propertyHolder, inferredData, isComponentEmbedded, isIdentifierMapper ); String subpath = BinderHelper.getPath( propertyHolder, inferredData ); log.trace( "Binding component with path: {}", subpath ); PropertyHolder subHolder = PropertyHolderBuilder.buildPropertyHolder( comp, subpath, inferredData, propertyHolder, mappings ); final XClass xClassProcessed = inferredData.getPropertyClass(); List<PropertyData> classElements = new ArrayList<PropertyData>(); XClass returnedClassOrElement = inferredData.getClassOrElement(); List<PropertyData> baseClassElements = null; Map<String, PropertyData> orderedBaseClassElements = new HashMap<String, PropertyData>(); XClass baseReturnedClassOrElement; if ( baseInferredData != null ) { baseClassElements = new ArrayList<PropertyData>();
Component component = AnnotationBinder.fillComponent( holder, inferredData, isPropertyAnnotated ? AccessType.PROPERTY : AccessType.FIELD, true, entityBinder, false, false,
propertyAccessor, "_identifierMapper", compositeClass ); Component mapper = fillComponent( propertyHolder, inferredData,
Component component = AnnotationBinder.fillComponent( holder, inferredData, isPropertyAnnotated ? AccessType.PROPERTY : AccessType.FIELD, true, entityBinder, false, false,
HashMap<String, IdGenerator> localGenerators = new HashMap<String, IdGenerator>(); if ( isComposite ) { id = fillComponent( propertyHolder, inferredData, baseInferredData, propertyAccessor, false, entityBinder, isEmbedded, isIdentifierMapper, false, mappings, inheritanceStatePerClass
comp = fillComponent( propertyHolder, inferredData, propertyAccessor, !isId, entityBinder, isComponentEmbedded, isIdentifierMapper,
propertyAccessor, NavigablePath.IDENTIFIER_MAPPER_PROPERTY, compositeClass ); Component mapper = fillComponent( propertyHolder, inferredData,
comp = fillComponent( propertyHolder, inferredData, propertyAccessor, !isId, entityBinder, isComponentEmbedded, isIdentifierMapper,
comp = fillComponent( propertyHolder, inferredData, propertyAccessor, !isId, entityBinder, isComponentEmbedded, isIdentifierMapper,
comp = fillComponent( propertyHolder, inferredData, propertyAccessor, !isId, entityBinder, isComponentEmbedded, isIdentifierMapper,
HashMap<String, IdGenerator> localGenerators = new HashMap<String, IdGenerator>(); if ( isComposite ) { id = fillComponent( propertyHolder, inferredData, baseInferredData, propertyAccessor, false, entityBinder, isEmbedded, isIdentifierMapper, false, mappings, inheritanceStatePerClass
HashMap<String, IdGenerator> localGenerators = new HashMap<String, IdGenerator>(); if ( isComposite ) { id = fillComponent( propertyHolder, inferredData, baseInferredData, propertyAccessor, false, entityBinder, isEmbedded, isIdentifierMapper, false, mappings, inheritanceStatePerClass