Embeddable types
Applies to ✅ Open Source Edition ✅ Express Edition ✅ Professional Edition ✅ Enterprise Edition
Only few SQL databases support ORDBMS extensions, such as user-defined types (UDTs). When working with strong domain semantics, it is often desired to wrap the primitive, technical database type (e.g. VARCHAR
) in a more semantic type (e.g. com.example.Email
).
Embeddable types are generated, synthetic data types that wrap one or more database columns in a generated org.jooq.EmbeddableRecord
, as if the column group were an actual UDT.
This is particularly useful for embedded keys, to help with type safe comparison between PRIMARY KEY
/ FOREIGN KEY
columns, specifically when the keys are composite keys.
Embeddable types are a very complex feature that has been added to jOOQ 3.14. A list of known issues for embeddable types is available here: #10527.
Table of contents
- 5.18.1.
- Configuration (new)
- 5.18.2.
- Overlapping embeddable types (new)
- 5.18.3.
- Field replacement (new)
- 5.18.4.
- Embedded keys (new)
- 5.18.5.
- Embedded domains (new)
previous : next |
Feedback
Do you have any feedback about this page? We'd love to hear it!