HZ_RELATIONSHIP_TYPES
The HZ_RELATIONSHIP_TYPES table defines the business rules that are associated with a relationship type. A non-directional relationship type consists of a single record with the same forward (FORWARD_REL_CODE) and backward (BACKWARD_REL_CODE) relationship codes. A directional relationship type consists of two records: one for the parent (DIRECTION_CODE is P) and the other for a child (DIRECTION_CODE is C) of that parent. Forward and backward relationship codes are validated against the PARTY_RELATIONS_TYPE lookup type.
Details
-
Schema: FUSION
-
Object owner: HZ
-
Object type: TABLE
-
Tablespace: REFERENCE
Primary Key
Name | Columns |
---|---|
HZ_RELATIONSHIP_TYPES_PK |
RELATIONSHIP_TYPE_ID |
Columns
Name | Datatype | Length | Precision | Not-null | Comments |
---|---|---|---|---|---|
RELATIONSHIP_TYPE_ID | NUMBER | 18 | Yes | Relationship type identifier | |
RELATIONSHIP_TYPE | VARCHAR2 | 30 | Yes | The relationship type name. For example, CUSTOMER_SUPPLIER | |
FORWARD_REL_CODE | VARCHAR2 | 30 | Yes | The forward relationship code used to describe relationships. For example, CUSTOMER_OF | |
BACKWARD_REL_CODE | VARCHAR2 | 30 | Yes | The backward relationship code used to describe relationships. For example, SUPPLIER_OF | |
DIRECTION_CODE | VARCHAR2 | 30 | Yes | Validated by DIRECTION_CODE lookup type. P for Parent, C for Child, and N for Not Directional | |
HIERARCHICAL_FLAG | VARCHAR2 | 1 | No Longer used in Fusion V1. | ||
ALLOW_RELATE_TO_SELF_FLAG | VARCHAR2 | 1 | Yes | Indicates if a party can be related to itself | |
SUBJECT_TYPE | VARCHAR2 | 30 | Yes | Subject type of the relationship type | |
OBJECT_TYPE | VARCHAR2 | 30 | Yes | Object type of the relationship type | |
STATUS | VARCHAR2 | 1 | Yes | Indicates if the relationship type is inactive or active. I for Inactive, A for Active | |
CREATED_BY | VARCHAR2 | 64 | Yes | Who column: indicates the user who created the row. | |
CREATION_DATE | TIMESTAMP | Yes | Who column: indicates the date and time of the creation of the row. | ||
LAST_UPDATED_BY | VARCHAR2 | 64 | Yes | Who column: indicates the user who last updated the row. | |
LAST_UPDATE_DATE | TIMESTAMP | Yes | Who column: indicates the date and time of the last update of the row. | ||
LAST_UPDATE_LOGIN | VARCHAR2 | 32 | Who column: indicates the session login associated to the user who last updated the row. | ||
ALLOW_CIRCULAR_RELATIONSHIPS | VARCHAR2 | 1 | Yes | Indicates if circular relationships are allowed using this relationship type. | |
OBJECT_VERSION_NUMBER | NUMBER | 9 | Yes | Used to implement optimistic locking. This number is incremented every time that the row is updated. The number is compared at the start and end of a transaction to detect whether another session has updated the row since it was queried. | |
CREATED_BY_MODULE | VARCHAR2 | 30 | TCA Who column | ||
MULTIPLE_PARENT_ALLOWED | VARCHAR2 | 1 | No Longer used in Fusion V1. | ||
ROLE | VARCHAR2 | 30 | Unique relationship role lookup code based on relationship type and phrase. In the HZ_RELATIONSHIP_ROLE lookup type meaning is the plural role and description is the singular role. | ||
SEED_DATA_SOURCE | VARCHAR2 | 512 | Source of seed data record. A value of 'BULK_SEED_DATA_SCRIPT' indicates that record was bulk loaded. Otherwise, specifies the name of the seed data file. | ||
ORA_SEED_SET1 | VARCHAR2 | 1 | Yes | Oracle internal use only. Indicates the edition-based redefinition (EBR) context of the row for SET1. Context values are Y or N. | |
ORA_SEED_SET2 | VARCHAR2 | 1 | Yes | Oracle internal use only. Indicates the edition-based redefinition (EBR) context of the row for SET2. Context values are Y or N. |
Indexes
Index | Uniqueness | Tablespace | Columns |
---|---|---|---|
HZ_RELATIONSHIP_TYPES_N1 | Non Unique | Default | SUBJECT_TYPE |
HZ_RELATIONSHIP_TYPES_N2 | Non Unique | Default | OBJECT_TYPE |
HZ_RELATIONSHIP_TYPES_N3 | Non Unique | Default | FORWARD_REL_CODE, OBJECT_TYPE, SUBJECT_TYPE |
HZ_RELATIONSHIP_TYPES_N4 | Non Unique | Default | BACKWARD_REL_CODE |
HZ_RELATIONSHIP_TYPES_N5 | Non Unique | Default | RELATIONSHIP_TYPE |
HZ_RELATIONSHIP_TYPES_N6 | Non Unique | Default | ROLE |
HZ_RELATIONSHIP_TYPES_N7 | Non Unique | Default | LAST_UPDATE_DATE |
HZ_RELATIONSHIP_TYPES_PK | Unique | Default | RELATIONSHIP_TYPE_ID, ORA_SEED_SET1 |
HZ_RELATIONSHIP_TYPES_PK1 | Unique | Default | RELATIONSHIP_TYPE_ID, ORA_SEED_SET2 |