Transient (attribute of entity)

From JRapid

Jump to: navigation, search

The "transient" attribute for an entity specifies that the entity will not be persisted in the database. Transient entities are common when using "related-entity" actions.

Usage

 <entity name = NAME label = LABEL transient="transient" />

Example

Transient entities are common to be "verb entities" or "action" entities such as Login. A login form doesn‘t need to be stored in the database, just check if the user and password are correct.

Transient entity
 <entity encrypt="encrypt" label="Log In" name="Login" stereotype="Login" transient="transient">
        <row name="data">
            <column>
                <property display="primary" label="Username" name="username" required="required"/>
                <property label="Password" name="password" required="required" type="password"/>
                <property default="'default'" hidden="hidden" label="Schema" name="schema" required="required"/>
            </column>
        </row>
        <next function="window.location = 'Index.htmli';" type="function"/>
  </entity>

See also

transient (attribute of property)

Personal tools