Purpose: To provide a trivial implementation of MetadataSource. You may subclass this class rather than implement the MetadataSource interface allowing insulation from future additions to the interface.
MetadataSource
| Access | Constructor and Description |
|---|---|
| protected |
| Modifier and Type | Method and Description |
|---|---|
| public XMLEntityMappings | getEntityMappings(Map<String, Object> properties, ClassLoader classLoader, SessionLog log)
Implements org. |
| MetadataSourceAdapter | back to summary |
|---|---|
| protected MetadataSourceAdapter() Default constructor. | |
| getEntityMappings | back to summary |
|---|---|
| public XMLEntityMappings getEntityMappings(Map<String, Object> properties, ClassLoader classLoader, SessionLog log) Implements org. Doc from org. PUBLIC: This method is responsible for returning the object representation of the object-relational mapping overrides. It is called on initial deployment of the persistence unit and when the persistence unit is reloaded to allow customization of the persistence unit above and beyond what is packaged in the persistence.xml and what is code into the application Important Note This method is called during the predeploy stage that is used both for weaving and runtime EMF deployment. Runtime properties might not be available during weaving, and mapping options that require weaving changes should not be used. For example adding a lazy OneToOne mapping after weaving has already occurred will result in an exception if they are expected to have been woven into the class.
| |