Interface JPAEdmPropertyView
- All Superinterfaces:
JPAEdmBaseView
A view on Java Persistence Entity Attributes and EDM properties. Java
Persistence Attributes of type
- embedded ID - are converted into EDM keys
- ID - are converted into EDM keys
- attributes - are converted into EDM properties
- embeddable type - are converted into EDM complex properties
- relationships - are converted into Associations/Navigation properties
The implementation of the view provides access to EDM properties for a given JPA EDM entity type. The view acts as a container for consistent list of EDM properties of an EDM entity type. EDM property is consistent only if there exists at least one property in the entity type and there is at least one key property.
@org.apache.olingo.odata2.DoNotImplement
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptionThe method returns a list of Properties for the given Entity Type.The method returns a simple EDM property.jakarta.persistence.metamodel.Attribute<?, ?> The method returns a JPA Attribute for the given JPA entity type.The method returns a JPA EDM Complex Type view that holds the property view.The method returns a JPA EDM Entity Type view that holds the property view.The method returns a JPA EDM key view.The method returns a JPA EDM navigation property view.The method returns a list of JPA Join Column Annotations for the given JPA Attributejakarta.persistence.metamodel.Attribute<?, ?> The method returns a JPA Attribute referenced by a JPA Attribute in theannotation for the given JPA entity type .invalid reference
javax.persistence.JoinColumnMethods inherited from interface org.apache.olingo.odata2.jpa.processor.api.model.JPAEdmBaseView
clean, getBuilder, getJPAEdmExtension, getJPAEdmMappingModelAccess, getJPAMetaModel, getpUnitName, isConsistent, isDefaultNamingSkipped
-
Method Details
-
getEdmSimpleProperty
SimpleProperty getEdmSimpleProperty()The method returns a simple EDM property.- Returns:
- an instance of type
SimpleProperty
-
getJPAEdmKeyView
JPAEdmKeyView getJPAEdmKeyView()The method returns a JPA EDM key view.- Returns:
- an instance of type
JPAEdmKeyView
-
getEdmPropertyList
The method returns a list of Properties for the given Entity Type.- Returns:
- a list of
Property
-
getJPAAttribute
jakarta.persistence.metamodel.Attribute<?,?> getJPAAttribute()The method returns a JPA Attribute for the given JPA entity type.- Returns:
- an instance of type
invalid reference
<?, ?>
-
getJPAReferencedAttribute
jakarta.persistence.metamodel.Attribute<?,?> getJPAReferencedAttribute()The method returns a JPA Attribute referenced by a JPA Attribute in theannotation for the given JPA entity type .invalid reference
javax.persistence.JoinColumn- Returns:
- an instance of type
invalid reference
<?, ?>
-
getJPAEdmEntityTypeView
JPAEdmEntityTypeView getJPAEdmEntityTypeView()The method returns a JPA EDM Entity Type view that holds the property view.- Returns:
- an instance of type
JPAEdmEntityTypeView
-
getJPAEdmComplexTypeView
JPAEdmComplexTypeView getJPAEdmComplexTypeView()The method returns a JPA EDM Complex Type view that holds the property view.- Returns:
- an instance of type
JPAEdmComplexTypeView
-
getJPAJoinColumns
The method returns a list of JPA Join Column Annotations for the given JPA Attribute- Returns:
- a list of Array of Strings. First element in the Array represents the join column name and the second element in the array represents the referencedColumn name
-