Skip to content

Doma 3.x Migration Guide

Toshihiro Nakamura edited this page Sep 1, 2024 · 1 revision

Upgrading to Version 3.0

Java Version

Please use Java 17 or later.

Removed APIs

org.seasar.doma.jdbc.Naming

The following two elements have been removed:

  • LENIENT_SNAKE_LOWER_CASE
  • LENIENT_SNAKE_UPPER_CASE

Please use SNAKE_LOWER_CASE or SNAKE_UPPER_CASE instead.

org.seasar.doma.jdbc.entity.NamingType

The following two elements have been removed:

  • LENIENT_SNAKE_LOWER_CASE
  • LENIENT_SNAKE_UPPER_CASE

Please use SNAKE_LOWER_CASE or SNAKE_UPPER_CASE instead.

org.seasar.doma.jdbc.entity.EntityType

The following methods have been removed:

  • public String getTableName()
  • public String getQualifiedTableName()
  • public String getQualifiedTableName(Function<String, String> quoteFunction)

Instead, please use the methods with the same names that take BiFunction<NamingType, String, String> namingFunction as a parameter.

org.seasar.doma.jdbc.dialect.StandardDialect

The following methods have been removed:

  • protected Calendar makeRoundedUpClandar(java.util.Date date)
  • protected Calendar makeRoundedDownClandar(java.util.Date date)

Please use makeRoundedUpCalendar or makeRoundedDownCalendar instead.

org.seasar.doma.SingletonConfig

The SingletonConfig annotation, which was used to create singletons, has been removed. If needed, please create singletons manually.

org.seasar.doma.Dao

The config element has been removed.

Please pass the Config instance to the DAO implementation class using the constructor.