Available in versions: Dev (3.21) | Latest (3.20) | 3.19 | 3.18 | 3.17 | 3.16 | 3.15 | 3.14 | 3.13 | 3.12 | 3.11

Converted data types

Supported by ✅ Open Source Edition   ✅ Express Edition   ✅ Professional Edition   ✅ Enterprise Edition

A converted data type is a type that is being converted to some user data structure, which can be independent of any data structures from the database. There are tons of use-cases for converted data types:

  • To attach more semantic types to certain primitives, e.g. Email instead of just String (see also DOMAIN types to do this directly within the database)
  • To increase type safety, and to avoid comparing two seemingly related types (VARCHAR and VARCHAR), which aren't really comparable (e.g. Email and Username)
  • To work with libraries instead of raw data, e.g. JAXB or Jackson bindings instead of raw XML types or raw JSON types

Feedback

Do you have any feedback about this page? We'd love to hear it!

The jOOQ Logo