-
-
Notifications
You must be signed in to change notification settings - Fork 70
Doma 2.2.0 Migration Guide
This page provides important notes when upgrading Doma from one version to a higher version.
For a complete list of changes, please refer to the release notes.
When upgrading from version 2.1.0, please pay attention to the following points:
The behavior of the following enumerators in NamingType has been modified:
- SNAKE_LOWER_CASE
- SNAKE_UPPER_CASE
If you expect the same behavior as in version 2.1.0, please use the following enumerators instead:
- LENIENT_SNAKE_LOWER_CASE
- LENIENT_SNAKE_UPPER_CASE
Alternatively, specify the name explicitly in @Table
or @Column
.
This change will not affect you unless you are directly calling these methods from your application.
Some methods of EntityType now return values before applying naming conventions:
- getTableName
- getQualifiedTableName
To retrieve values after applying naming conventions, use the methods introduced in version 2.2.0 with the same names.
This change will not affect you unless you are directly calling these methods from your application.
Some methods of EntityPropertyType now return values before applying naming conventions:
- getColumnName
To retrieve values after applying naming conventions, use the methods introduced in version 2.2.0 with the same names.
For SQL files specific to Mssql2008Dialect, please add -mssql
before the .sql
extension. For example, use selectById-mssql.sql
.