public interface JpaMetadataProvider extends MetadataProvider
MetadataProvider
which contains the additional methods needed.Modifier and Type | Method and Description |
---|---|
DataObjectRelationship |
addExtensionRelationship(Class<?> entityClass,
String extensionPropertyName,
Class<?> extensionEntity)
Given the parameters, injects into the JPA repository a 1:1 relationship between the parent entity and the
extension entity via the given property name (which must exist on the entityClass).
|
getMetadataForType, getSupportedTypes, handles, provideMetadata, provideMetadataForTypes, requiresListOfExistingTypes
DataObjectRelationship addExtensionRelationship(Class<?> entityClass, String extensionPropertyName, Class<?> extensionEntity)
entityClass
- The parent (owning) class which must be already known to the JPA persistence unit. This one's metadata
will be modified within the internals of the JPA metadata.extensionPropertyName
- The property on the parent class which will hold the extensionEntity. This property must be of the
type of the extension entity or a superclass. (Object will work.)extensionEntity
- The child/extension class which needs to be linked. It must also already be known to JPA.Copyright © 2005–2015 The Kuali Foundation. All rights reserved.