Package org.teiid.translator.jpa
Class JPAMetadataProcessor
- java.lang.Object
-
- org.teiid.translator.jpa.JPAMetadataProcessor
-
- All Implemented Interfaces:
MetadataProcessor<javax.persistence.EntityManager>
public class JPAMetadataProcessor extends Object implements MetadataProcessor<javax.persistence.EntityManager>
TODO: - support of abstract entities is an issue, should we represent base and extended types, just extended types?
-
-
Field Summary
Fields Modifier and Type Field Description static String
ENTITYCLASS
static String
KEY_ASSOSIATED_WITH_FOREIGN_TABLE
static String
RELATION_KEY
static String
RELATION_PROPERTY
-
Fields inherited from interface org.teiid.translator.MetadataProcessor
FQN, SOURCE_PREFIX
-
-
Constructor Summary
Constructors Constructor Description JPAMetadataProcessor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
process(MetadataFactory mf, javax.persistence.EntityManager entityManager)
-
-
-
Field Detail
-
KEY_ASSOSIATED_WITH_FOREIGN_TABLE
@ExtensionMetadataProperty(applicable=Column.class, datatype=java.lang.String.class, display="Foreign Table Name", description="Applicable on Foreign Key columns") public static final String KEY_ASSOSIATED_WITH_FOREIGN_TABLE
- See Also:
- Constant Field Values
-
RELATION_PROPERTY
@ExtensionMetadataProperty(applicable=Column.class, datatype=java.lang.String.class, display="Relation Property", description="Applicable on Foreign Key columns") public static final String RELATION_PROPERTY
- See Also:
- Constant Field Values
-
RELATION_KEY
@ExtensionMetadataProperty(applicable=Column.class, datatype=java.lang.String.class, display="Relation Key", description="Applicable on Foreign Key columns") public static final String RELATION_KEY
- See Also:
- Constant Field Values
-
ENTITYCLASS
@ExtensionMetadataProperty(applicable=Table.class, datatype=java.lang.String.class, display="Entity Class", description="Java Entity Class that represents this table", required=true) public static final String ENTITYCLASS
- See Also:
- Constant Field Values
-
-
Method Detail
-
process
public void process(MetadataFactory mf, javax.persistence.EntityManager entityManager) throws TranslatorException
- Specified by:
process
in interfaceMetadataProcessor<javax.persistence.EntityManager>
- Throws:
TranslatorException
-
-