@Override public boolean supports(Class<?> entityType) { MappedAttribute mappedAttribute = entityType.getAnnotation(MappedAttribute.class); return mappedAttribute != null && !isNullOrEmpty(mappedAttribute.value()); }
@Override public boolean supports(Class<?> entityType) { MappedAttribute mappedAttribute = entityType.getAnnotation(MappedAttribute.class); return mappedAttribute != null && !isNullOrEmpty(mappedAttribute.value()); }
@Override public EntityMapping configure(Class<?> supportedType, Class<?> entityType) { EntityMapping entityMapping = new EntityMapping(supportedType); MappedAttribute mappedAttribute = entityType.getAnnotation(MappedAttribute.class); Property namedProperty = getNamedProperty(mappedAttribute.value(), supportedType); if (namedProperty == null) { throw MESSAGES.configJpaStoreMappedPropertyNotFound(entityType, mappedAttribute.value(), supportedType); } entityMapping.addOwnerProperty(entityType); return entityMapping; }
@Override public EntityMapping configure(Class<?> supportedType, Class<?> entityType) { EntityMapping entityMapping = new EntityMapping(supportedType); MappedAttribute mappedAttribute = entityType.getAnnotation(MappedAttribute.class); Property namedProperty = getNamedProperty(mappedAttribute.value(), supportedType); if (namedProperty == null) { throw MESSAGES.configJpaStoreMappedPropertyNotFound(entityType, mappedAttribute.value(), supportedType); } entityMapping.addOwnerProperty(entityType); return entityMapping; }
Property<Object> property = PropertyQueries .createQuery(attributedType.getClass()) .addCriteria(new NamedPropertyCriteria(getEntityType().getAnnotation(MappedAttribute.class).value())) .getFirstResult();
Property<Object> property = PropertyQueries .createQuery(attributedType.getClass()) .addCriteria(new NamedPropertyCriteria(getEntityType().getAnnotation(MappedAttribute.class).value())) .getFirstResult();
Property<Object> property = PropertyQueries .createQuery(attributedType.getClass()) .addCriteria(new NamedPropertyCriteria(mappedAttribute.value())) .getFirstResult();
Property<Object> property = PropertyQueries .createQuery(attributedType.getClass()) .addCriteria(new NamedPropertyCriteria(mappedAttribute.value())) .getFirstResult();