This documentation is for the unreleased development version of jOOQ. Click on the above version links to get this documentation for a supported version of jOOQ.
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.
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.