skip to content

Moving a Room 2.x codebase to Room 3.0, what changes for its column type converters, and what stays the same?

level: middleimportance: should knowfreq 32%

answer

  1. a new word in every name
  2. 3.0.0-rc01
  3. the builder call renamed too
  4. same scopes, same stored data

basics

~10 s

Room 3.0 renames the converter family: @TypeConverter becomes @ColumnTypeConverter, with @ColumnTypeConverters, @ProvidedColumnTypeConverter, @BuiltInColumnTypeConverters and addColumnTypeConverter in androidx.room3. Scopes, built-ins, validation and stored data stay the same.

solid answer

~40 s

The converter mechanism is unchanged; the names are not. Room 3.0.0-rc01 renamed `@TypeConverter` to `@ColumnTypeConverter`, and the 3.0 API in `androidx.room3` has `@ColumnTypeConverters`, `@BuiltInColumnTypeConverters`, `@ProvidedColumnTypeConverter` and `RoomDatabase.Builder.addColumnTypeConverter()`, with no aliases for the old names. Converter functions still take one parameter, registration works at the same scopes, built-in enum and UUID handling keep their flags, and provided converters are still checked when `build()` runs. The stored values are identical, so the rename needs no schema migration. The new name marks a boundary: column converters change column values and parameters only, while Room 3.0's separate DAO return type converters handle return types such as `LiveData` or `PagingSource`.

go deeper

for a junior

Know the Room 3.0 names: @ColumnTypeConverter for functions and @ColumnTypeConverters for registration.

for a middle

Map each Room 2.x converter identifier to its Room 3.0 name, and explain why the stored data and the scopes are unaffected.

for a senior

Plan the rename across app code and test builders, and keep column converters apart from the new DAO return type converters.

for a principal

Weigh doing the converter rename as part of one Room 3.0 move versus staging it, given that the old names have no alias in androidx.room3.

## The rename, and why it happened **Room 3.0** moved to a new package, `androidx.room3`, and along the way renamed the converter family. The release notes for **3.0.0-rc01** (June 17, 2026) record the core change: `@TypeConverter` became `@ColumnTypeConverter`, "to better distinguish the scope of the conversion and to have symmetry with `@DaoReturnTypeConverter`". The stable 3.0 API names the rest of the family to match. | Room 2.x (`androidx.room`) | Room 3.0 (`androidx.room3`) | |---|---| | `@TypeConverter` | `@ColumnTypeConverter` | | `@TypeConverters(value, builtInTypeConverters)` | `@ColumnTypeConverters(value, builtInColumnTypeConverters)` | | `@BuiltInTypeConverters` | `@BuiltInColumnTypeConverters` | | `@ProvidedTypeConverter` | `@ProvidedColumnTypeConverter` | | `RoomDatabase.Builder.addTypeConverter()` | `RoomDatabase.Builder.addColumnTypeConverter()` | The old names do not exist in `androidx.room3`. There is no deprecated alias to lean on, so the move is a rename everywhere the annotations and the builder call appear. Code written against a Room 3.0 alpha, before rc01, still says `@TypeConverter` and needs the same rename. ## What stays the same The mechanism itself did not change: - A converter function still takes **one parameter** and returns a non-`Unit` value. - Registration still works at the same **scopes**: database, DAO, entity, data class, a single property, a DAO function and a single parameter. - The **built-in converters** for enums, `UUID` and `ByteBuffer` keep their flags (`enums`, `uuid`, `byteBuffer`) and their `ENABLED`, `DISABLED` and `INHERITED` states, and still lose to converters you register. - A **provided** converter is still validated when `build()` runs: a missing instance, or an instance nothing needs, throws an `IllegalArgumentException`. - The **stored data** is untouched. A converter that wrote epoch milliseconds under Room 2.x writes the same values under Room 3.0, so the rename alone needs no database migration. ## What the new name is distinguishing The word *Column* marks a boundary that Room 3.0 makes explicit. A column type converter changes **one value**: a column being read or written, or a parameter being bound. It never transforms what a DAO function returns. Room 3.0 adds a second, separate family for that: **DAO return type converters** (`@DaoReturnTypeConverter`, registered with `@DaoReturnTypeConverters`). They are how return types such as `LiveData`, `PagingSource` and the RxJava types now reach a DAO, through artifacts like `room3-livedata` and `room3-paging`. That family belongs with Room's coroutine and observable-query layer; for converters, the point is only that the two never substitute for each other. ## A practical migration checklist 1. Move the imports from `androidx.room` to `androidx.room3` (part of the wider Room 3.0 move covered with entities and setup). 2. Rename `@TypeConverter` to `@ColumnTypeConverter` and `@TypeConverters` to `@ColumnTypeConverters`. 3. Rename the `builtInTypeConverters` argument and its `BuiltInTypeConverters` value, if you set either. 4. Rename `@ProvidedTypeConverter` and replace every `addTypeConverter()` call, including the ones in test builders. 5. Build: a property type left without a usable converter still fails in Room's KSP processor, as it did on Room 2.x, so the compiler finds any spot the rename missed. ## Mistakes seen during the move - **Renaming the annotations but not the builder.** `addTypeConverter()` no longer exists on Room 3.0's builder, and a test helper that still calls it fails to compile, which is the good outcome; a helper that silently drops the call fails at `build()` instead. - **Confusing the two converter families.** Reaching for `@DaoReturnTypeConverters` to store an `Instant` column, or for `@ColumnTypeConverters` to get a `LiveData` result, mixes a value converter with a return type converter. - **Changing encodings in the same commit.** Bundling "while we are here, store enums as codes" into the rename turns a mechanical change into a data migration. Keep the rename pure and change formats separately. ## What arrives after 3.0 The development branch keeps moving. **Room 3.1.0-alpha01** (September 2026) adds `AnnotationTarget.PROPERTY` to `@ColumnTypeConverters`, so it can sit on a Kotlin property without a backing field, and a built-in converter for `kotlin.uuid.Uuid`. Neither is in the 3.0 API, which lists the targets as function, value parameter, field and class.

  • Does renaming the converters during the Room 3.0 move require a database migration?
    No, not by itself. The annotations only tell Room's generator which functions to call; if the functions still produce the same values, every stored row reads back as before. A migration is needed only if you also change what a converter writes, for example from enum names to integer codes.
  • Why can't a column type converter turn a DAO query into a LiveData or PagingSource result?
    Column converters work on single values: a column or a bound parameter. Their documentation says they cannot convert a function's row result. In Room 3.0 those return types come from DAO return type converters, a separate family registered with `@DaoReturnTypeConverters`, which the rename was partly meant to keep distinct.

  • Room 3.0 keeps @TypeConverter as a deprecated alias
  • The converter rename forces a migration of every converted column
  • @ColumnTypeConverters can also adapt DAO return types like LiveData
  • Room 3.0 removed field and parameter scopes for converters

Compares Room 2.8.5 (androidx.room) with Room 3.0 (androidx.room3), where 3.0.0-rc01 renamed @TypeConverter to @ColumnTypeConverter; 3.1.0-alpha01 additions are noted separately.