Table of Contents

=Table flexible_element=

Remarks

This table corresponds to an element of the view. In Java, the class related is abstract. Each concrete element inherits of the class FlexibleElement. As inheritance doesn’t exist in the SQL format, Hibernate transforms this inheritance into joint (with the strategy InheritanceType.JOINED). So each element has a foreign-key (called id_flexible_element) to its parent table so the table flexible_element. You can notice that these foreign-keys are also primary-keys for these elements.

Schema

Name Type Not Null Primary Key Foreign Key Remarks
:———:———:————-:—————-:—————-:————
id_flexible_element bigint X X This is the primary key of the table.
amendable bool X This column is a boolean that show if the element is amendable or not.
label text This column corresponds to the sring which will be displayed in the view.
validates bool X It determines if this element is required.
id_privacy_group integer X privacy\_group(id_privacy_group) This is a foreign key to the table privacy_group.

Diagram