Class ToTableMapping

  • All Implemented Interfaces:
    MappingDefinition

    public final class ToTableMapping
    extends Object
    implements MappingDefinition
    Java representation of the EDML toTableMapping. This mapping is used for normalizing documents to table structures. It creates a new table in the resulting virtual schema named: <NAME_OF_PARENT>_<GIVEN_NAME>.

    You can define the columns of this table using the mapping property. If the parent table defines a key using one or more toVarcharMappings for a key or secondary index in the document database, this will be used as foreign key.

    • Method Detail

      • getDestinationTable

        public String getDestinationTable()
        Get the destination table.
        Returns:
        destination table
      • getMapping

        public MappingDefinition getMapping()
        Get the mapping for the columns of the new table. If the document list contains non-objects (like strings) here, you can directly use toVarcharMapping here. Otherwise, if the list contains objects, you can define mappings for the nested properties using fields.
        Returns:
        mapping
      • getDescription

        public String getDescription()
        Get the optional description. Using this property you can provide documentation.
        Returns:
        description
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object