---
title: "Exposed: Custom column types"
url: https://daily.dev/posts/exposed-custom-column-types-lndnuzlvx
source_url: https://habr.com/en/articles/959426/
type: article
source: "habr"
published: 2025-10-23T10:49:05.146Z
updated: 2025-10-23T10:49:30.761Z
tags: ["java", "postgresql", "kotlin"]
reading_time: 8
upvotes: 1
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Exposed: Custom column types

**[habr](https://daily.dev/sources/habr)** · 8 min read · 1 upvotes · 0 comments

## Summary

A detailed guide on extending Exposed, Kotlin's SQL library, by implementing custom column types. Using PostgreSQL enums as an example, the article demonstrates how to create type-safe database mappings by extending ColumnType, implementing value conversion methods, handling default values, and creating SQL literals. Covers the complete flow from JDBC-level understanding through to practical implementation with code examples.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://habr.com/en/articles/959426/>

## Similar posts on daily.dev

- [Getting Started with Exposed: Kotlin ORM Made Simple](https://daily.dev/posts/getting-started-with-exposed-kotlin-orm-made-simple-woqm6ybuj) · Foojay.io · 2 upvotes · 0 comments
- [Exposed 1.0 Is Now Available](https://daily.dev/posts/exposed-1-0-is-now-available-loeugb7zw) · JetBrains · 31 upvotes · 1 comments
- [Using Spring Data JDBC With Kotlin](https://daily.dev/posts/using-spring-data-jdbc-with-kotlin-jtkj8jwli) · JetBrains · 0 upvotes · 0 comments

---

Tags: [#java](https://daily.dev/tags/java), [#postgresql](https://daily.dev/tags/postgresql), [#kotlin](https://daily.dev/tags/kotlin)

[View this post on daily.dev](https://daily.dev/posts/exposed-custom-column-types-lndnuzlvx)
