Category:Property
From JRapid
Entities are composed of properties which holds the entity's information like values or relationships with other entities (database one-to-many and many-to many relationships).
JRapid properties are defined by their type which can be entity-type or inmutable types (like integer, double, string, etc). Also, JRapid defines own types like "image", "file", "email", etc..
The JRapid's Code Generator reads the properties of the entities to build the corresponding Java class which is then mapped to a database table where each property is a table column. The mapping between the Java class and the database table happens through a generated Hibernate Mapping file (Java-class-name.hbm).
Properties can specify attributes which add extra behaviour to the property.
Example:
- "string" properties.
The "string" type for a property is the default if no type is specified. The default widget for this kind of properties is a textfield without any validations.
| Form widget | Java code | Hibernate mapping file | Database column | |
| String type |
Usage
<property name = NAME label = LABEL style = STYLE description = DESCRIPTION tooltip = TOOLTIP cache = "cache"> unique = "unique" enumset = ENUMSET required = "required" readonly = "readonly" widget = (select|combo|radio|selectmultiple|checkbox) comboproperty = maxlength = LENGTH minlength = MINLENGTH hint = "hint" class = CLASS display = (primary|secondary) type = (id|double|float|short|integer|long|boolean|string|text|longtext |richtext|enum|date|time|datetime|timerange|timequantity|file|password|image|email|phone |url|googledoc) #IMPLIED> entity = ENTITY subset = SUBSET subsetparams = PARAMS collection = COLLECTION transient = "transient" embedded = (inline|detail|grid) labelposition = POSITION dimension = (row|column) childproperty = PROPERTY maxrows = ROWS minrows = ROWS listindex = LIST_INDEX listunique = LIST_UNIQUE setorder = SETORDER sort = SORT sortexpr = EXPR where = WHERE extendable = "extendable" sortable = "sortable" whennotinsubset = (donotshow|show|shownotvalid) default = DEFAULT expr = EXPR calculated = CALCULATED calculatedtrigger = (onload|onchange|onchangenew) formula = FORMULA expr = EXPR displayif = CONDITION visibleif = CONDITION disabledif = CONDITION readonlyif = CONDITION checkif = CONDITION displayproperties = PROPERTIES fixed = "fixed" hidden = "hidden" disabled = "disabled" invisible = "invisible" gridheader = "grideheader" gridvalue = "gridvalue" width = WIDTH height = HEIGHT imagecopyof = IMAGECOPYOF fromyear = FROMYEAR toyear = TOYEAR autosuggest = "autosuggest" (restrict?, enum*, displaycondition?, visiblecondition?, readonlycondition?, disabledcondition?, suggest*, dynamicvalue*, foreach?, dynamicforeach?, action*) </property>
See also:
Subcategories
This category has the following 10 subcategories, out of 10 total.
CE |
OS |
TVW |
Pages in category "Property"
The following 12 pages are in this category, out of 12 total.
DE |
LMNS |
S cont.TW |
