|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface JpaMetadataProvider
Subclass of the MetadataProvider which contains the additional methods needed.
| Method Summary | |
|---|---|
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). |
| Methods inherited from interface org.kuali.rice.krad.data.provider.MetadataProvider |
|---|
getMetadataForType, getSupportedTypes, handles, provideMetadata, provideMetadataForTypes, requiresListOfExistingTypes |
| Method Detail |
|---|
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.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||