@Test public void checkAnnotations() throws ODataJPAModelException { final Attribute<?, ?> jpaAttribute = helper.getDeclaredAttribute(helper.getEntityType(BusinessPartner.class), "locationName"); cut = new IntermediateDescriptionProperty(new JPADefaultEdmNameBuilder(PUNIT_NAME), jpaAttribute, helper.schema); final List<CsdlAnnotation> annotations = cut.getEdmItem().getAnnotations(); assertEquals(1, annotations.size()); assertEquals("Core.IsLanguageDependent", annotations.get(0).getTerm()); assertEquals(ConstantExpressionType.Bool, annotations.get(0).getExpression().asConstant().getType()); assertEquals("true", annotations.get(0).getExpression().asConstant().getValue()); assertNull(annotations.get(0).getQualifier()); }
@Override public Class<?> getType() { return descriptionProperty.getType(); }
IntermediateDescriptionProperty extends IntermediateSimpleProperty implements JPADescriptionAttribute { @Override public Class<?> getType() { return descriptionProperty.getType(); } }
IntermediateDescriptionProperty extends IntermediateSimpleProperty implements JPADescriptionAttribute { @Override public Class<?> getType() { return descriptionProperty.getType(); } IntermediateDescriptionProperty(final JPAEdmNameBuilder nameBuilder, final Attribute<?, ?> jpaAttribute,
      final IntermediateSchema schema); }
IntermediateDescriptionProperty extends IntermediateSimpleProperty implements JPADescriptionAttribute { @Override public Class<?> getType() { return descriptionProperty.getType(); } IntermediateDescriptionProperty(final JPAEdmNameBuilder nameBuilder, final Attribute<?, ?> jpaAttribute,
      final IntermediateSchema schema); @Override boolean isAssociation(); @Override boolean isLocationJoin(); @Override JPAAttribute getDescriptionAttribute(); @Override JPAPath getLocaleFieldName(); @Override Class<?> getType(); @Override Map<JPAPath, String> getFixedValueAssignment(); }
IntermediateDescriptionProperty extends IntermediateSimpleProperty implements JPADescriptionAttribute { @Override public Class<?> getType() { return descriptionProperty.getType(); } IntermediateDescriptionProperty(final JPAEdmNameBuilder nameBuilder, final Attribute<?, ?> jpaAttribute,
      final IntermediateSchema schema); @Override boolean isAssociation(); @Override boolean isLocationJoin(); @Override JPAAttribute getDescriptionAttribute(); @Override JPAPath getLocaleFieldName(); @Override Class<?> getType(); @Override Map<JPAPath, String> getFixedValueAssignment();  }