ERP/3.0/Developers Guide/Database Model/org.openbravo.model.ad.domain/ad ref tree
ad_ref_tree
- Name:ad_ref_tree
- Classname:ADReferencedTree
This table contains the following columns:
Name | Nullable | Data Type | Description
|
AD_Ref_Tree_ID | No | VARCHAR (32) | |
Isactive | No | CHAR (1) | There are two methods of making records unavailable in the system: One is to delete the record, the other is to de-activate the record. A de-activated record is not available for selection, but available for reporting. There are two reasons for de-activating and not deleting records:
(1) The system requires the record for auditing purposes. (2) The record is referenced by other records. E.g., you cannot delete a Business Partner, if there are existing invoices for it. By de-activating the Business Partner you prevent it from being used in future transactions. |
AD_Client_ID | No | VARCHAR (32) | A Client is a company or a legal entity. You cannot share data between Clients. |
AD_Column_ID | Yes | VARCHAR (32) | Link to the database column of the table |
Createdby | No | VARCHAR (32) | The Created By field indicates the user who created this record. |
Created | No | TIMESTAMP (7) | The Created field indicates the date that this record was created. |
Displayfield_ID | Yes | VARCHAR (32) | The value of this field will be displayed in the tree reference text input box. |
Whereclauserootnodes | Yes | VARCHAR (2000) | By default the root nodes of the tree are those whose parent is null or 0. When the default case does not apply, a HQL where clause can be set to define which are the root nodes for this tree reference. |
Whereclause | Yes | VARCHAR (2000) | The Where Clause indicates the HQL (Hibernate Query Language) or SQL WHERE clause used for filtering data. In releases until and including 2.50 MP11 this field only accepts a HQL where clause (without the where keyword). In later releases for the AD dataset a SQL clause should be used, other datasets should use the HQL format. |
AD_Module_ID | No | VARCHAR (32) | Indicates the module the element forms part of. |
AD_Org_ID | No | VARCHAR (32) | An organization is a unit of your client or legal entity - examples are store, department. You can share data between organizations. |
AD_Reference_ID | No | VARCHAR (32) | The Reference indicates the type of reference field |
AD_Table_ID | No | VARCHAR (32) | The Table indicates the table in which a field or fields reside. |
AD_Table_Tree_ID | No | VARCHAR (32) | Tree tables can define several tree structures. If a table tree structure is set in this field, the tab will include a tree view that will allow to browse the data hierarchically. |
Updated | No | TIMESTAMP (7) | The Updated field indicates the date that this record was updated. |
Updatedby | No | VARCHAR (32) | The Updated By field indicates the user who updated this record. |
Valuefield_ID | Yes | VARCHAR (32) | The value of this field will be set in the foreign key column. |
Columns
AD_Ref_Tree_ID
- Physical column name: AD_Ref_Tree_ID
- Property Name: id
- Reference: ID
Active
- Physical column name: Isactive
- Property Name: active
- Reference: YesNo
- Default value: Y
Client
- Physical column name: AD_Client_ID
- Property Name: client
- Reference: TableDir
Foreign key column to AD_Client table, (column: AD_Client_ID)
Column
- Physical column name: AD_Column_ID
- Property Name: column
- Reference: TableDir
Foreign key column to AD_Column table, (column: AD_Column_ID)
It has a validation "AD_Column must be in AD_Table", with the following code
AD_Column.AD_Table_ID=@AD_Table_ID@
Created By
- Physical column name: Createdby
- Property Name: createdBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Creation Date
- Physical column name: Created
- Property Name: creationDate
- Reference: DateTime
- Default value: SYSDATE
Displayfield_ID
- Physical column name: Displayfield_ID
- Property Name: displayfield
- Reference: Table
Foreign key column to ad_ref_tree_field table, (column: AD_Ref_Tree_Field_ID)
HQL Where Clause for Root Nodes
- Physical column name: Whereclauserootnodes
- Property Name: hQLWhereClauseForRootNodes
- Reference: String
HQL/SQL Where clause
- Physical column name: Whereclause
- Property Name: hQLSQLWhereClause
- Reference: String
Module
- Physical column name: AD_Module_ID
- Property Name: module
- Reference: TableDir
Foreign key column to AD_Module table, (column: AD_Module_ID)
It has a validation "Ad_Module_ID IsInDevelopment", with the following code
IsInDevelopment = 'Y' and type != 'T'
Organization
- Physical column name: AD_Org_ID
- Property Name: organization
- Reference: TableDir
Foreign key column to AD_Org table, (column: AD_Org_ID)
Reference
- Physical column name: AD_Reference_ID
- Property Name: reference
- Reference: TableDir
- This column is part of the table's identifier
- This column is a child for a business object (is Parent)
Foreign key column to AD_Reference table, (column: AD_Reference_ID)
Table
- Physical column name: AD_Table_ID
- Property Name: table
- Reference: TableDir
Foreign key column to AD_Table table, (column: AD_Table_ID)
Table Tree Category
- Physical column name: AD_Table_Tree_ID
- Property Name: tableTreeCategory
- Reference: Table
Foreign key column to ad_table_tree table, (column: AD_Table_Tree_ID)
Updated
- Physical column name: Updated
- Property Name: updated
- Reference: DateTime
- Default value: SYSDATE
Updated By
- Physical column name: Updatedby
- Property Name: updatedBy
- Reference: Search
Foreign key column to AD_User table, (column: AD_User_ID)
Valuefield_ID
- Physical column name: Valuefield_ID
- Property Name: valuefield
- Reference: Table
Foreign key column to ad_ref_tree_field table, (column: AD_Ref_Tree_Field_ID)
Other Info
Check Constraints
These are the check constraints for this table:
- AD_REF_TREE_ISACTIVE_CHK: ISACTIVE IN ('Y', 'N')
![]() | Back to org.openbravo.model.ad.domain |