Understanding Object Field Types¶
For Liferay DXP 7.4 U24+
Object fields represent database columns that store specific types of data for an Object. Fields can be added to both custom and system Objects and can only store one type of data.
Liferay provides a user-friendly name for each field type, which corresponds to a specific data type in the back-end. When making Headless API calls that include fields, you must use the back-end data type names:
Field Types (UI) |
Data Type (HEADLESS) |
Description |
---|---|---|
Attachment |
Relationship > Long |
Stores |
Boolean |
Boolean |
Stores true or false values |
Date |
Date |
Stores date values |
Decimal (previously Double) |
Double |
Stores a decimal number value that supports fractional portions |
Integer |
Integer |
Stores an integer up to 9 digits in length |
Long Integer (previously Long) |
Long |
Stores a large integer up to 19 digits in length |
Long Text (previously Clob) |
Stores a text box value that supports up to 65,000 characters; when configuring this field type, you can limit the number of characters allowed |
|
Picklist |
String |
Stores a Picklist string value |
Precision Decimal (previously BigDecimal) |
BigDecimal |
Stores a high-precision decimal number without rounding |
Relationship |
Long |
Stores the numeric ID for all related Object entries |
Rich Text |
Clob |
Stores text with advanced formatting tools and media elements (e.g., images, videos, audio) |
Text (previously String) |
Stores simple text values up to 280 characters; when configuring this field type, you can limit the number of characters allowed |