Skip to content

Simple types

Simple types are platform-neutral primitive datatypes provided by common-base.

1. Built-in simple types

  • String
  • Integer
  • Long
  • Boolean
  • Date
  • DateTime
  • Id (semantic type)

2. Custom simple types

cmn
type<string> CurrencyCode

3. Constants

cmn
type<string> LanguageCode = "EN", "DE"

4. Default properties & propagation

Simple types can define default constraints (e.g., maxLength).